2018-04-25 16:40:47 +02:00
|
|
|
package com.minelittlepony.model.ponies;
|
2015-08-02 00:36:33 +02:00
|
|
|
|
2018-04-25 16:40:47 +02:00
|
|
|
import com.minelittlepony.model.ModelMobPony;
|
2018-04-29 11:56:26 +02:00
|
|
|
import com.minelittlepony.render.AbstractPonyRenderer;
|
2015-08-02 00:36:33 +02:00
|
|
|
|
2018-06-03 16:38:03 +02:00
|
|
|
import net.minecraft.entity.Entity;
|
|
|
|
|
2018-04-25 12:59:18 +02:00
|
|
|
public class ModelZombiePony extends ModelMobPony {
|
2015-08-02 00:36:33 +02:00
|
|
|
@Override
|
2018-06-03 16:38:03 +02:00
|
|
|
protected void rotateLegs(float move, float swing, float ticks, Entity entity) {
|
|
|
|
super.rotateLegs(move, swing, ticks, entity);
|
2018-04-25 16:40:47 +02:00
|
|
|
if (rightArmPose != ArmPose.EMPTY) return;
|
2018-04-26 16:01:31 +02:00
|
|
|
|
2018-04-28 16:39:32 +02:00
|
|
|
if (islookAngleRight(move)) {
|
2018-05-01 12:38:13 +02:00
|
|
|
rotateArmHolding(bipedRightArm, 1, swingProgress, ticks);
|
2015-08-02 00:36:33 +02:00
|
|
|
} else {
|
2018-05-01 12:38:13 +02:00
|
|
|
rotateArmHolding(bipedLeftArm, -1, swingProgress, ticks);
|
2015-08-02 00:36:33 +02:00
|
|
|
}
|
2018-04-25 12:59:18 +02:00
|
|
|
}
|
2018-04-26 16:01:31 +02:00
|
|
|
|
2015-08-02 00:36:33 +02:00
|
|
|
@Override
|
|
|
|
protected void fixSpecialRotationPoints(float move) {
|
2018-04-25 12:59:18 +02:00
|
|
|
if (rightArmPose != ArmPose.EMPTY) return;
|
2018-04-26 16:01:31 +02:00
|
|
|
|
2018-04-28 16:39:32 +02:00
|
|
|
if (islookAngleRight(move)) {
|
2018-04-29 11:56:26 +02:00
|
|
|
AbstractPonyRenderer.shiftRotationPoint(bipedRightArm, 0.5F, 1.5F, 3);
|
2018-04-25 12:59:18 +02:00
|
|
|
} else {
|
2018-04-29 11:56:26 +02:00
|
|
|
AbstractPonyRenderer.shiftRotationPoint(bipedLeftArm, -0.5F, 1.5F, 3);
|
2015-08-02 00:36:33 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|