mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-12-01 00:08:00 +01:00
15 lines
568 B
Java
15 lines
568 B
Java
|
package com.minelittlepony.transformation;
|
||
|
|
||
|
import com.minelittlepony.model.AbstractPonyModel;
|
||
|
|
||
|
import net.minecraft.client.renderer.GlStateManager;
|
||
|
import net.minecraft.entity.EntityLivingBase;
|
||
|
|
||
|
public class PostureElytra implements PonyPosture<EntityLivingBase> {
|
||
|
@Override
|
||
|
public void transform(AbstractPonyModel model, EntityLivingBase entity, double motionX, double motionY, double motionZ, float pitch, float yaw, float ticks) {
|
||
|
GlStateManager.rotate(90, 1, 0, 0);
|
||
|
GlStateManager.translate(0, entity.isSneaking() ? 0.2F : -1, 0);
|
||
|
}
|
||
|
}
|