ModelHuman.java 1.1 KB

1234567891011121314151617181920212223242526272829
  1. package me.km.entities;
  2. import net.minecraft.client.renderer.entity.model.PlayerModel;
  3. public class ModelHuman extends PlayerModel<EntityHuman> {
  4. public ModelHuman(float modelSize, boolean smallArmsIn) {
  5. super(modelSize, smallArmsIn);
  6. }
  7. @Override
  8. public void setRotationAngles(EntityHuman h, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch) {
  9. super.setRotationAngles(h, limbSwing, limbSwingAmount, ageInTicks, netHeadYaw, headPitch);
  10. if(h.isStatue()) {
  11. bipedLeftArm.rotateAngleX = 0.0f;
  12. bipedLeftArm.rotateAngleY = 0.0f;
  13. bipedLeftArm.rotateAngleZ = 0.0f;
  14. bipedRightArm.rotateAngleX = 0.0f;
  15. bipedRightArm.rotateAngleY = 0.0f;
  16. bipedRightArm.rotateAngleZ = 0.0f;
  17. bipedLeftArmwear.rotateAngleX = 0.0f;
  18. bipedLeftArmwear.rotateAngleY = 0.0f;
  19. bipedLeftArmwear.rotateAngleZ = 0.0f;
  20. bipedRightArmwear.rotateAngleX = 0.0f;
  21. bipedRightArmwear.rotateAngleY = 0.0f;
  22. bipedRightArmwear.rotateAngleZ = 0.0f;
  23. }
  24. }
  25. }