mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2025-02-13 16:24:23 +01:00
Remove unused constants
This commit is contained in:
parent
6c50f40881
commit
d71aa20ced
2 changed files with 6 additions and 9 deletions
|
@ -58,14 +58,13 @@ public interface PonyModelConstants {
|
||||||
TAIL_RP_Z_NOTSNEAK = 14,
|
TAIL_RP_Z_NOTSNEAK = 14,
|
||||||
TAIL_RP_Z_SNEAK = 15,
|
TAIL_RP_Z_SNEAK = 15,
|
||||||
|
|
||||||
FIRSTP_ARM_CENTRE_X = -3,
|
|
||||||
|
|
||||||
THIRDP_ARM_CENTRE_X = 0,
|
THIRDP_ARM_CENTRE_X = 0,
|
||||||
THIRDP_ARM_CENTRE_Y = 4,
|
THIRDP_ARM_CENTRE_Y = 4,
|
||||||
THIRDP_ARM_CENTRE_Z = -1,
|
|
||||||
|
|
||||||
WING_FOLDED_RP_Y = 13,
|
WING_FOLDED_RP_Y = 13,
|
||||||
WING_FOLDED_RP_Z = -3,
|
WING_FOLDED_RP_Z = -3,
|
||||||
|
|
||||||
NECK_ROT_X = 0.166F;
|
NECK_ROT_X = 0.166F,
|
||||||
|
|
||||||
|
FIN_ROT_Y = PI / 6;
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,8 +11,6 @@ import net.minecraft.util.math.MathHelper;
|
||||||
|
|
||||||
public class ModelSeapony extends ModelUnicorn {
|
public class ModelSeapony extends ModelUnicorn {
|
||||||
|
|
||||||
private static final float FIN_ROTY = PI / 6;
|
|
||||||
|
|
||||||
PonyRenderer bodyCenter;
|
PonyRenderer bodyCenter;
|
||||||
|
|
||||||
PlaneRenderer leftFin;
|
PlaneRenderer leftFin;
|
||||||
|
@ -38,11 +36,11 @@ public class ModelSeapony extends ModelUnicorn {
|
||||||
.addEastPlane(0, -6, 0, 12, 6, stretch);
|
.addEastPlane(0, -6, 0, 12, 6, stretch);
|
||||||
|
|
||||||
leftFin = new PlaneRenderer(this, 56, 16)
|
leftFin = new PlaneRenderer(this, 56, 16)
|
||||||
.rotate(0, FIN_ROTY, 0).around(3, -6, 3)
|
.rotate(0, FIN_ROT_Y, 0).around(3, -6, 3)
|
||||||
.flipZ().addEastPlane(0, 0, 0, 12, 8, stretch);
|
.flipZ().addEastPlane(0, 0, 0, 12, 8, stretch);
|
||||||
|
|
||||||
rightFin = new PlaneRenderer(this, 56, 16)
|
rightFin = new PlaneRenderer(this, 56, 16)
|
||||||
.rotate(0, -FIN_ROTY, 0).around(-3, -6, 3)
|
.rotate(0, -FIN_ROT_Y, 0).around(-3, -6, 3)
|
||||||
.addWestPlane(0, 0, 0, 12, 8, stretch);
|
.addWestPlane(0, 0, 0, 12, 8, stretch);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -64,7 +62,7 @@ public class ModelSeapony extends ModelUnicorn {
|
||||||
public void setRotationAngles(float move, float swing, float ticks, float headYaw, float headPitch, float scale, Entity entity) {
|
public void setRotationAngles(float move, float swing, float ticks, float headYaw, float headPitch, float scale, Entity entity) {
|
||||||
super.setRotationAngles(move, swing, ticks, headYaw, headPitch, scale, entity);
|
super.setRotationAngles(move, swing, ticks, headYaw, headPitch, scale, entity);
|
||||||
|
|
||||||
float finAngle = FIN_ROTY + MathHelper.cos(ticks / 10) / 5;
|
float finAngle = FIN_ROT_Y + MathHelper.cos(ticks / 10) / 5;
|
||||||
|
|
||||||
leftFin.rotateAngleY = finAngle;
|
leftFin.rotateAngleY = finAngle;
|
||||||
rightFin.rotateAngleY = -finAngle;
|
rightFin.rotateAngleY = -finAngle;
|
||||||
|
|
Loading…
Reference in a new issue