mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-12-01 16:27:59 +01:00
Manually fix the problem childs
This commit is contained in:
parent
bee8d0556d
commit
ea2c78d14a
17 changed files with 114 additions and 113 deletions
|
@ -88,9 +88,8 @@ public class GuiSkinsMineLP extends GuiSkins {
|
|||
} else {
|
||||
text = "minelp.mode.wet";
|
||||
}
|
||||
this.drawHoveringText(I18n.format(text), mouseX, y);
|
||||
drawHoveringText(I18n.format(text), mouseX, y);
|
||||
}
|
||||
;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -111,8 +111,8 @@ public abstract class AbstractPonyModel extends ModelPlayer implements IModel {
|
|||
float headRotateAngleY = isSleeping ? 1.4f : headYaw / 57.29578F;
|
||||
float headRotateAngleX = isSleeping ? 0.1f : headPitch / 57.29578F;
|
||||
|
||||
headRotateAngleX = Math.min(headRotateAngleX, (float)(0.5f - Math.toRadians(motionPitch)));
|
||||
headRotateAngleX = Math.max(headRotateAngleX, (float)(-1.25f - Math.toRadians(motionPitch)));
|
||||
headRotateAngleX = Math.min(headRotateAngleX, (float)( 0.5F - Math.toRadians(motionPitch)));
|
||||
headRotateAngleX = Math.max(headRotateAngleX, (float)(-1.25F - Math.toRadians(motionPitch)));
|
||||
|
||||
updateHeadRotation(headRotateAngleX, headRotateAngleY);
|
||||
|
||||
|
@ -555,7 +555,7 @@ public abstract class AbstractPonyModel extends ModelPlayer implements IModel {
|
|||
.around(HEAD_RP_X, HEAD_RP_Y + yOffset, HEAD_RP_Z - 2)
|
||||
.box(-4, -4, -4, 8, 8, 8, stretch)
|
||||
.tex(12, 16).box(-4, -6, 1, 2, 2, 2, stretch)
|
||||
.flip().box(2, -6, 1, 2, 2, 2, stretch);
|
||||
.flip().box( 2, -6, 1, 2, 2, 2, stretch);
|
||||
|
||||
bipedHeadwear = new PonyRenderer(this, 32, 0)
|
||||
.offset(HEAD_CENTRE_X, HEAD_CENTRE_Y, HEAD_CENTRE_Z)
|
||||
|
@ -590,20 +590,20 @@ public abstract class AbstractPonyModel extends ModelPlayer implements IModel {
|
|||
upperTorso = new PlaneRenderer(this, 24, 0);
|
||||
upperTorso.offset(BODY_CENTRE_X, BODY_CENTRE_Y, BODY_CENTRE_Z)
|
||||
.around(HEAD_RP_X, HEAD_RP_Y + yOffset, HEAD_RP_Z)
|
||||
.tex(24, 0).addEastPlane(4, -4, -4, 8, 8, stretch)
|
||||
.tex(4, 0).addEastPlane(4, -4, 4, 8, 4, stretch)
|
||||
.tex(56, 0).addBottomPlane(-4, 4, -4, 8, 8, stretch)
|
||||
.tex(36, 16).addBackPlane(-4, -4, 8, 8, 4, stretch)
|
||||
.addBackPlane(-4, 0, 8, 8, 4, stretch)
|
||||
.tex(24, 0) .addEastPlane( 4, -4, -4, 8, 8, stretch)
|
||||
.tex(4, 0) .addEastPlane( 4, -4, 4, 8, 4, stretch)
|
||||
.tex(56, 0) .addBottomPlane(-4, 4, -4, 8, 8, stretch)
|
||||
.tex(36, 16).addBackPlane( -4, -4, 8, 8, 4, stretch)
|
||||
.addBackPlane( -4, 0, 8, 8, 4, stretch)
|
||||
.addBottomPlane(-4, 4, 4, 8, 4, stretch)
|
||||
.flipZ().tex(32, 20).addTopPlane(-4, -4, -4, 8, 12, stretch)
|
||||
.tex(24, 0).addWestPlane(-4, -4, -4, 8, 8, stretch)
|
||||
.tex(4, 0).addWestPlane(-4, -4, 4, 8, 4, stretch)
|
||||
.tex(24, 0).addWestPlane( -4, -4, -4, 8, 8, stretch)
|
||||
.tex(4, 0) .addWestPlane( -4, -4, 4, 8, 4, stretch)
|
||||
// Tail stub
|
||||
.child(0)
|
||||
.tex(32, 0).addTopPlane(-1, 2, 2, 2, 6, stretch)
|
||||
.addBottomPlane(-1, 4, 2, 2, 6, stretch)
|
||||
.addEastPlane(1, 2, 2, 2, 6, stretch)
|
||||
.addEastPlane( 1, 2, 2, 2, 6, stretch)
|
||||
.addBackPlane(-1, 2, 8, 2, 2, stretch)
|
||||
.flipZ().addWestPlane(-1, 2, 2, 2, 6, stretch)
|
||||
.rotate(0.5F, 0, 0);
|
||||
|
@ -612,9 +612,9 @@ public abstract class AbstractPonyModel extends ModelPlayer implements IModel {
|
|||
.at(NECK_CENTRE_X, NECK_CENTRE_Y, NECK_CENTRE_Z)
|
||||
.rotate(NECK_ROT_X, 0, 0).around(HEAD_RP_X, HEAD_RP_Y + yOffset, HEAD_RP_Z)
|
||||
.addFrontPlane(0, 0, 0, 4, 4, stretch)
|
||||
.addBackPlane(0, 0, 4, 4, 4, stretch)
|
||||
.addEastPlane(4, 0, 0, 4, 4, stretch)
|
||||
.addWestPlane(0, 0, 0, 4, 4, stretch);
|
||||
.addBackPlane( 0, 0, 4, 4, 4, stretch)
|
||||
.addEastPlane( 4, 0, 0, 4, 4, stretch)
|
||||
.addWestPlane( 0, 0, 0, 4, 4, stretch);
|
||||
}
|
||||
|
||||
protected void preInitLegs() {
|
||||
|
|
|
@ -63,8 +63,8 @@ public class ModelPonyArmor extends AbstractPonyModel implements IModelArmor {
|
|||
@Override
|
||||
protected void initHead(float yOffset, float stretch) {
|
||||
super.initHead(yOffset, stretch * 1.1F);
|
||||
((PonyRenderer)bipedHead).child()
|
||||
.tex(0, 4).box(2, -6, 1, 2, 2, 2, stretch / 2)
|
||||
((PonyRenderer)bipedHead).child().tex(0, 4)
|
||||
.box( 2, -6, 1, 2, 2, 2, stretch / 2)
|
||||
.box(-4, -6, 1, 2, 2, 2, stretch / 2);
|
||||
}
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ public class ModelPonyHead extends ModelHumanoidHead implements ICapitated {
|
|||
ears = new PonyRenderer(this, 0, 0)
|
||||
.offset(0, -3, 2).around(0, 0, -2)
|
||||
.tex(12, 16).box(-4, -6, 1, 2, 2, 2, 0)
|
||||
.flip().box(2, -6, 1, 2, 2, 2, 0);
|
||||
.flip().box( 2, -6, 1, 2, 2, 2, 0);
|
||||
|
||||
skeletonHead.addChild(ears);
|
||||
}
|
||||
|
|
|
@ -19,8 +19,8 @@ public class PonyElytra extends ModelBase {
|
|||
private PonyRenderer leftWing = new PonyRenderer(this, 22, 0);
|
||||
|
||||
public PonyElytra() {
|
||||
leftWing.box(-10, 0, 0, 10, 20, 2, 1);
|
||||
rightWing.flip().box(0, 0, 0, 10, 20, 2, 1);
|
||||
leftWing .box(-10, 0, 0, 10, 20, 2, 1);
|
||||
rightWing.flip().box( 0, 0, 0, 10, 20, 2, 1);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -40,22 +40,22 @@ public class PonySnout {
|
|||
|
||||
public void init(float yOffset, float stretch) {
|
||||
mare.around(HEAD_RP_X, HEAD_RP_Y + yOffset, HEAD_RP_Z)
|
||||
.tex(10, 14).addBackPlane(-2, 2, -5, 4, 2, stretch)
|
||||
.tex(11, 13).addBackPlane(-1, 1, -5, 2, 1, stretch)
|
||||
.tex(9, 14).addTopPlane(-2, 2, -5, 1, 1, stretch)
|
||||
.tex(14, 14).addTopPlane(1, 2, -5, 1, 1, stretch)
|
||||
.tex(11, 12).addTopPlane(-1, 1, -5, 2, 1, stretch)
|
||||
.tex(10, 14).addBackPlane( -2, 2, -5, 4, 2, stretch)
|
||||
.tex(11, 13).addBackPlane( -1, 1, -5, 2, 1, stretch)
|
||||
.tex(9, 14).addTopPlane( -2, 2, -5, 1, 1, stretch)
|
||||
.tex(14, 14).addTopPlane( 1, 2, -5, 1, 1, stretch)
|
||||
.tex(11, 12).addTopPlane( -1, 1, -5, 2, 1, stretch)
|
||||
.tex(18, 7).addBottomPlane(-2, 4, -5, 4, 1, stretch)
|
||||
.tex(9, 14).addWestPlane(-2, 2, -5, 2, 1, stretch)
|
||||
.tex(14, 14).addEastPlane(2, 2, -5, 2, 1, stretch)
|
||||
.tex(11, 12).addWestPlane(-1, 1, -5, 1, 1, stretch)
|
||||
.tex(12, 12).addEastPlane(1, 1, -5, 1, 1, stretch);
|
||||
.tex(9, 14).addWestPlane( -2, 2, -5, 2, 1, stretch)
|
||||
.tex(14, 14).addEastPlane( 2, 2, -5, 2, 1, stretch)
|
||||
.tex(11, 12).addWestPlane( -1, 1, -5, 1, 1, stretch)
|
||||
.tex(12, 12).addEastPlane( 1, 1, -5, 1, 1, stretch);
|
||||
stallion.around(HEAD_RP_X, HEAD_RP_Y + yOffset, HEAD_RP_Z)
|
||||
.tex(10, 13).addBackPlane(-2, 1, -5, 4, 3, stretch)
|
||||
.tex(10, 13).addTopPlane(-2, 1, -5, 4, 1, stretch)
|
||||
.tex(10, 13).addBackPlane( -2, 1, -5, 4, 3, stretch)
|
||||
.tex(10, 13).addTopPlane( -2, 1, -5, 4, 1, stretch)
|
||||
.tex(18, 7).addBottomPlane(-2, 4, -5, 4, 1, stretch)
|
||||
.tex(10, 13).addWestPlane(-2, 1, -5, 3, 1, stretch)
|
||||
.tex(13, 13).addEastPlane(2, 1, -5, 3, 1, stretch);
|
||||
.tex(10, 13).addWestPlane( -2, 1, -5, 3, 1, stretch)
|
||||
.tex(13, 13).addEastPlane( 2, 1, -5, 3, 1, stretch);
|
||||
}
|
||||
|
||||
public void setGender(PonyGender gender) {
|
||||
|
|
|
@ -106,11 +106,11 @@ public class PonyTail extends PlaneRenderer implements IModelPart {
|
|||
tex(32, 0).addTopPlane(-2, 0, 2, 4, 4, stretch);
|
||||
}
|
||||
|
||||
tex(36, texX).addEastPlane(2, 0, 2, 4, 4, stretch)
|
||||
.addWestPlane(-2, 0, 2, 4, 4, stretch);
|
||||
tex(32, texX).addBackPlane(-2, 0, 2, 4, 4, stretch)
|
||||
.addFrontPlane(-2, 0, 6, 4, 4, stretch);
|
||||
tex(32, 0).addBottomPlane(-2, 4, 2, 4, 4, stretch);
|
||||
tex(36, texX).addEastPlane( 2, 0, 2, 4, 4, stretch)
|
||||
.addWestPlane( -2, 0, 2, 4, 4, stretch);
|
||||
tex(32, texX).addBackPlane( -2, 0, 2, 4, 4, stretch)
|
||||
.addFrontPlane( -2, 0, 6, 4, 4, stretch);
|
||||
tex(32, 0) .addBottomPlane( -2, 4, 2, 4, 4, stretch);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -39,12 +39,12 @@ public class SaddleBags implements IModelPart {
|
|||
|
||||
strap.offset(-x, y + 0.2F, z + 3).around(0, 4, 4)
|
||||
.tex(56, 31).addTopPlane(0, 0, 0, 8, 1, stretch)
|
||||
.addTopPlane(0, 0, 1, 8, 1, stretch)
|
||||
.addBackPlane(0, 0, 2, 8, 1, stretch)
|
||||
.addTopPlane( 0, 0, 1, 8, 1, stretch)
|
||||
.addBackPlane( 0, 0, 2, 8, 1, stretch)
|
||||
.addFrontPlane(0, 0, 0, 8, 1, stretch)
|
||||
.child(0).offset(0, -3, -0.305F).tex(56, 31)
|
||||
.addWestPlane(4.0002F, 0, 0, 1, 3, stretch) // 0.0001 is there
|
||||
.addWestPlane(4.0002F, -1, 0, 1, 3, stretch) // otherwise straps
|
||||
.addWestPlane( 4.0002F, 0, 0, 1, 3, stretch) // 0.0001 is there
|
||||
.addWestPlane( 4.0002F, -1, 0, 1, 3, stretch) // otherwise straps
|
||||
.addWestPlane(-4.0002F, 0, 0, 1, 3, stretch) // clip into the body
|
||||
.addWestPlane(-4.0002F, -1, 0, 1, 3, stretch).rotateAngleX = ROTATE_270;
|
||||
|
||||
|
@ -54,7 +54,7 @@ public class SaddleBags implements IModelPart {
|
|||
.tex(56, 19).addWestPlane(3, 0, 0, 6, 8, stretch)
|
||||
.addWestPlane(0, 0, 0, 6, 8, stretch)
|
||||
.child(0).offset(z, y, -x).tex(56, 16)
|
||||
.addTopPlane(0, 0, -3, 8, 3, stretch)
|
||||
.addTopPlane( 0, 0, -3, 8, 3, stretch)
|
||||
.tex(56, 22).flipZ()
|
||||
.addBottomPlane(0, 6, -3, 8, 3, stretch).rotateAngleY = ROTATE_270;
|
||||
|
||||
|
@ -67,7 +67,8 @@ public class SaddleBags implements IModelPart {
|
|||
.addWestPlane(0, 0, 0, 6, 8, stretch)
|
||||
.child(0).offset(z, y, x).tex(56, 16)
|
||||
.flipZ().addTopPlane(0, 0, -3, 8, 3, stretch)
|
||||
.tex(56, 22).flipZ().addBottomPlane(0, 6, -3, 8, 3, stretch).rotateAngleY = ROTATE_270;
|
||||
.tex(56, 22).flipZ()
|
||||
.addBottomPlane(0, 6, -3, 8, 3, stretch).rotateAngleY = ROTATE_270;
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -38,7 +38,7 @@ public class SeaponyTail implements IModelPart {
|
|||
|
||||
tailFins.offset(1, 0, 4).rotate(-TAIL_ROTX, 0, 0)
|
||||
.addTopPlane(-8, 0, 0, 8, 8, stretch)
|
||||
.flip().addTopPlane(0, 0, 0, 8, 8, stretch);
|
||||
.flip().addTopPlane( 0, 0, 0, 8, 8, stretch);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -156,7 +156,7 @@ public class ModelUnicorn extends ModelEarthPony implements IModelUnicorn {
|
|||
unicornArmLeft = new PonyRenderer(this, 40, 32).size(64, 64);
|
||||
unicornArmRight = new PonyRenderer(this, 40, 32).size(64, 64);
|
||||
|
||||
unicornArmLeft.box(FIRSTP_ARM_CENTRE_X, THIRDP_ARM_CENTRE_Y, THIRDP_ARM_CENTRE_Z, 4, 12, 4, stretch + .25F).around(5, yOffset + 2, 0);
|
||||
unicornArmRight.box(FIRSTP_ARM_CENTRE_X, THIRDP_ARM_CENTRE_Y, THIRDP_ARM_CENTRE_Z, 4, 12, 4, stretch + .25F).around(-5, yOffset + 2, 0);
|
||||
unicornArmLeft .box(FIRSTP_ARM_CENTRE_X, THIRDP_ARM_CENTRE_Y, THIRDP_ARM_CENTRE_Z, 4, 12, 4, stretch + 0.25F).around(5, yOffset + 2, 0);
|
||||
unicornArmRight.box(FIRSTP_ARM_CENTRE_X, THIRDP_ARM_CENTRE_Y, THIRDP_ARM_CENTRE_Z, 4, 12, 4, stretch + 0.25F).around(-5, yOffset + 2, 0);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -27,21 +27,21 @@ public class ModelBreezie extends ModelBiped {
|
|||
bipedHead = new PonyRenderer(this)
|
||||
.child(new PonyRenderer(this)
|
||||
.addBox(-3, -6, -3, 6, 6, 6).around(0, 0, -4)
|
||||
.tex(28, 0).addBox(2, -7, 1, 1, 1, 1)
|
||||
.tex(28, 0).addBox( 2, -7, 1, 1, 1, 1)
|
||||
.tex(24, 0).addBox(-3, -7, 1, 1, 1, 1)
|
||||
.tex(24, 9).addBox(-1, -2, -4, 2, 2, 1))
|
||||
.child(new PonyRenderer(this)
|
||||
.tex(28, 2).addBox(1, -11, -2, 1, 6, 1)
|
||||
.tex(28, 2).addBox( 1, -11, -2, 1, 6, 1)
|
||||
.tex(24, 2).addBox(-2, -11, -2, 1, 6, 1)
|
||||
.rotate(-0.2617994F, 0, 0));
|
||||
|
||||
bipedBody = new PonyRenderer(this, 2, 12)
|
||||
.addBox(0, 0, 0, 6, 7, 14).rotate(-0.5235988F, 0, 0).around(-3, 1, -3);
|
||||
|
||||
bipedLeftArm = new PonyRenderer(this, 28, 12).addBox(0, 0, 0, 2, 12, 2).around(1, 8, -5);
|
||||
bipedLeftArm = new PonyRenderer(this, 28, 12) .addBox(0, 0, 0, 2, 12, 2).around( 1, 8, -5);
|
||||
bipedRightArm = new PonyRenderer(this, 36, 12).addBox(0, 0, 0, 2, 12, 2).around(-3, 8, -5);
|
||||
bipedLeftLeg = new PonyRenderer(this, 8, 12).addBox(0, 0, 0, 2, 12, 2).around(1, 12, 3);
|
||||
bipedRightLeg = new PonyRenderer(this, 0, 12).addBox(0, 0, 0, 2, 12, 2).around(-3, 12, 3);
|
||||
bipedLeftLeg = new PonyRenderer(this, 8, 12) .addBox(0, 0, 0, 2, 12, 2).around( 1, 12, 3);
|
||||
bipedRightLeg = new PonyRenderer(this, 0, 12) .addBox(0, 0, 0, 2, 12, 2).around(-3, 12, 3);
|
||||
|
||||
neck = new PonyRenderer(this, 40, 0)
|
||||
.addBox(0, 0, 0, 2, 5, 2)
|
||||
|
@ -86,7 +86,7 @@ public class ModelBreezie extends ModelBiped {
|
|||
bipedLeftArm.rotateAngleZ = 0;
|
||||
|
||||
((PonyRenderer)bipedRightArm).rotate(swing * MathHelper.cos(move * 0.6662F + PI), 0, 0);
|
||||
((PonyRenderer)bipedLeftLeg).rotate(swing * MathHelper.cos(move * 0.6662F + PI) * 1.4F, 0, 0);
|
||||
((PonyRenderer)bipedLeftLeg) .rotate(swing * MathHelper.cos(move * 0.6662F + PI) * 1.4F, 0, 0);
|
||||
((PonyRenderer)bipedRightLeg).rotate(swing * MathHelper.cos(move * 0.6662F) * 1.4F, 0, 0);
|
||||
|
||||
if (isRiding) {
|
||||
|
|
|
@ -62,9 +62,10 @@ public enum PonyRace implements ITriggerPixelMapped<PonyRace> {
|
|||
}
|
||||
|
||||
/**
|
||||
* Gets the actual race determined by the given pony level. PonyLevel.HUMANS would force all races
|
||||
* to be humans. PonyLevel.BOTH is no change. PonyLevel.PONIES (should) return a pony if this is a
|
||||
* human. Don't be fooled, though. It doesn't.
|
||||
* Gets the actual race determined by the given pony level.
|
||||
* PonyLevel.HUMANS would force all races to be humans.
|
||||
* PonyLevel.BOTH is no change.
|
||||
* PonyLevel.PONIES (should) return a pony if this is a human. Don't be fooled, though. It doesn't.
|
||||
*/
|
||||
public PonyRace getEffectiveRace(PonyLevel level) {
|
||||
if (level == PonyLevel.HUMANS) {
|
||||
|
|
|
@ -42,12 +42,12 @@ public class HornGlow extends Box<HornGlowRenderer> {
|
|||
// w:west e:east d:down u:up s:south n:north
|
||||
Vertex wds = vert(tipXmin, yMin, tipZmin, 0, 0);
|
||||
Vertex eds = vert(tipXMax, yMin, tipZmin, 0, 8);
|
||||
Vertex eus = vert(xMax, yMax, zMin, 8, 8);
|
||||
Vertex wus = vert(xMin, yMax, zMin, 8, 0);
|
||||
Vertex eus = vert( xMax, yMax, zMin, 8, 8);
|
||||
Vertex wus = vert( xMin, yMax, zMin, 8, 0);
|
||||
Vertex wdn = vert(tipXmin, yMin, tipZMax, 0, 0);
|
||||
Vertex edn = vert(tipXMax, yMin, tipZMax, 0, 8);
|
||||
Vertex eun = vert(xMax, yMax, zMax, 8, 8);
|
||||
Vertex wun = vert(xMin, yMax, zMax, 8, 0);
|
||||
Vertex eun = vert( xMax, yMax, zMax, 8, 8);
|
||||
Vertex wun = vert( xMin, yMax, zMax, 8, 0);
|
||||
|
||||
quadList = new Quad[] {
|
||||
quad(texX + d + w, d, texY + d, h, edn, eds, eus, eun),
|
||||
|
|
Loading…
Reference in a new issue