From d71aa20ced34dc5503ea38fa4e3408c13d9831b1 Mon Sep 17 00:00:00 2001 From: Sollace Date: Fri, 17 Aug 2018 23:23:50 +0200 Subject: [PATCH] Remove unused constants --- .../java/com/minelittlepony/model/PonyModelConstants.java | 7 +++---- .../com/minelittlepony/model/ponies/ModelSeapony.java | 8 +++----- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/src/main/java/com/minelittlepony/model/PonyModelConstants.java b/src/main/java/com/minelittlepony/model/PonyModelConstants.java index a2b58879..432be781 100644 --- a/src/main/java/com/minelittlepony/model/PonyModelConstants.java +++ b/src/main/java/com/minelittlepony/model/PonyModelConstants.java @@ -58,14 +58,13 @@ public interface PonyModelConstants { TAIL_RP_Z_NOTSNEAK = 14, TAIL_RP_Z_SNEAK = 15, - FIRSTP_ARM_CENTRE_X = -3, - THIRDP_ARM_CENTRE_X = 0, THIRDP_ARM_CENTRE_Y = 4, - THIRDP_ARM_CENTRE_Z = -1, WING_FOLDED_RP_Y = 13, WING_FOLDED_RP_Z = -3, - NECK_ROT_X = 0.166F; + NECK_ROT_X = 0.166F, + + FIN_ROT_Y = PI / 6; } diff --git a/src/main/java/com/minelittlepony/model/ponies/ModelSeapony.java b/src/main/java/com/minelittlepony/model/ponies/ModelSeapony.java index 61cb4c66..f53508aa 100644 --- a/src/main/java/com/minelittlepony/model/ponies/ModelSeapony.java +++ b/src/main/java/com/minelittlepony/model/ponies/ModelSeapony.java @@ -11,8 +11,6 @@ import net.minecraft.util.math.MathHelper; public class ModelSeapony extends ModelUnicorn { - private static final float FIN_ROTY = PI / 6; - PonyRenderer bodyCenter; PlaneRenderer leftFin; @@ -38,11 +36,11 @@ public class ModelSeapony extends ModelUnicorn { .addEastPlane(0, -6, 0, 12, 6, stretch); 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); 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); } @@ -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) { 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; rightFin.rotateAngleY = -finAngle;