MineLittlePony/src/main/java/com/minelittlepony/model/ponies/ModelZombiePony.java

38 lines
1.2 KiB
Java
Raw Normal View History

package com.minelittlepony.model.ponies;
2015-08-02 00:36:33 +02:00
import com.minelittlepony.model.ModelMobPony;
import com.minelittlepony.model.armour.ModelZombiePonyArmor;
import com.minelittlepony.model.armour.PonyArmor;
2018-04-29 11:56:26 +02:00
import com.minelittlepony.render.AbstractPonyRenderer;
2015-08-02 00:36:33 +02:00
public class ModelZombiePony extends ModelMobPony {
2015-08-02 00:36:33 +02:00
@Override
public PonyArmor createArmour() {
return new PonyArmor(new ModelZombiePonyArmor(), new ModelZombiePonyArmor());
}
2015-08-02 00:36:33 +02:00
@Override
protected void adjustLegs(float move, float swing, float tick) {
super.adjustLegs(move, swing, tick);
if (rightArmPose != ArmPose.EMPTY) return;
2018-04-26 16:01:31 +02:00
if (islookAngleRight(move)) {
rotateArmHolding(bipedRightArm, 1, swingProgress, tick);
2015-08-02 00:36:33 +02:00
} else {
rotateArmHolding(bipedLeftArm, -1, swingProgress, tick);
2015-08-02 00:36:33 +02:00
}
}
2018-04-26 16:01:31 +02:00
2015-08-02 00:36:33 +02:00
@Override
protected void fixSpecialRotationPoints(float move) {
if (rightArmPose != ArmPose.EMPTY) return;
2018-04-26 16:01:31 +02:00
if (islookAngleRight(move)) {
2018-04-29 11:56:26 +02:00
AbstractPonyRenderer.shiftRotationPoint(bipedRightArm, 0.5F, 1.5F, 3);
} 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
}
}
}