Advertisement
MrScautHD

Untitled

Jun 11th, 2021
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. public void setRotationAngles(Entity e, float f, float f1, float f2, float f3, float f4) {
  2. // Animation1
  3. this.Wheel1.rotateAngleX = f2 / (180F / (float) Math.PI);
  4. this.Wheel2.rotateAngleX = f2 / (180F / (float) Math.PI);
  5. this.Wheel3.rotateAngleX = f2 / (180F / (float) Math.PI);
  6. this.Wheel4.rotateAngleX = f2 / (180F / (float) Math.PI);
  7. if (e instanceof LivingEntity) {
  8. if (e.getPersistentData().getDouble("Wheel") == 1) {
  9. this.Wheel1.rotateAngleX = (float) (f / 3);
  10. this.Wheel2.rotateAngleX = (float) (f / 3);
  11. this.Wheel3.rotateAngleX = (float) (f / 3);
  12. this.Wheel4.rotateAngleX = (float) (f / 3);
  13. }
  14. if (e.getPersistentData().getDouble("Wheel") == 0) {
  15. this.Wheel1.rotateAngleX = (float) - (f / 4);
  16. this.Wheel2.rotateAngleX = (float) - (f / 4);
  17. this.Wheel3.rotateAngleX = (float) - (f / 4);
  18. this.Wheel4.rotateAngleX = (float) - (f / 4);
  19. }
  20. System.out.println(this.Wheel1.rotateAngleX + " "+ f);
  21. }
  22. // sat
  23. this.sat.rotateAngleY = (float) f2 / 20f;
  24. // this.wellfront1.rotateAngleY = f2 / (180F / (float) Math.PI);
  25. // this.wellfront2.rotateAngleY = f2 / (180F / (float) Math.PI);
  26. if (e instanceof LivingEntity) {
  27. // this.wellfront1.rotateAngleY = (float) 0.3 /*((LivingEntity)
  28. // e).getPersistentData().getDouble("Wheel")*/;
  29. // this.wellfront2.rotateAngleY = (float) 0.3 /*((LivingEntity)
  30. // e).getPersistentData().getDouble("Wheel")*/;
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement