mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-12-02 08:48:00 +01:00
44 lines
1.2 KiB
Java
44 lines
1.2 KiB
Java
package com.minelittlepony.model.ponies;
|
|
|
|
import com.minelittlepony.model.ModelMobPony;
|
|
import com.minelittlepony.model.armour.ModelZombiePonyArmor;
|
|
import com.minelittlepony.model.armour.PonyArmor;
|
|
|
|
public class ModelZombiePony extends ModelMobPony {
|
|
|
|
public ModelZombiePony() {
|
|
super();
|
|
}
|
|
|
|
@Override
|
|
public PonyArmor createArmour() {
|
|
return new PonyArmor(new ModelZombiePonyArmor(), new ModelZombiePonyArmor());
|
|
}
|
|
|
|
@Override
|
|
protected void rotateRightArm(float move, float tick) {
|
|
if (rightArmPose != ArmPose.EMPTY) return;
|
|
|
|
if (islookAngleRight(move)) {
|
|
rotateArmHolding(bipedRightArm, 1, swingProgress, tick);
|
|
} else {
|
|
rotateArmHolding(bipedLeftArm, -1, swingProgress, tick);
|
|
}
|
|
}
|
|
|
|
@Override
|
|
protected void rotateLeftArm(float move, float tick) {
|
|
// zombies are unidexterous.
|
|
}
|
|
|
|
@Override
|
|
protected void fixSpecialRotationPoints(float move) {
|
|
if (rightArmPose != ArmPose.EMPTY) return;
|
|
|
|
if (islookAngleRight(move)) {
|
|
shiftRotationPoint(bipedRightArm, 0.5F, 1.5F, 3);
|
|
} else {
|
|
shiftRotationPoint(bipedLeftArm, -0.5F, 1.5F, 3);
|
|
}
|
|
}
|
|
}
|