MineLittlePony/src/main/java/com/minelittlepony/transform/PostureFalling.java

13 lines
425 B
Java
Raw Normal View History

2018-06-22 00:42:13 +02:00
package com.minelittlepony.transform;
import com.minelittlepony.model.AbstractPonyModel;
import net.minecraft.entity.EntityLivingBase;
public class PostureFalling implements PonyPosture<EntityLivingBase> {
@Override
public void transform(AbstractPonyModel model, EntityLivingBase entity, double motionX, double motionY, double motionZ, float pitch, float yaw, float ticks) {
model.motionPitch = 0;
}
}