Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void setRotationAngles(Entity e, float f, float f1, float f2, float f3, float f4) {
- // Animation1
- this.Wheel1.rotateAngleX = f2 / (180F / (float) Math.PI);
- this.Wheel2.rotateAngleX = f2 / (180F / (float) Math.PI);
- this.Wheel3.rotateAngleX = f2 / (180F / (float) Math.PI);
- this.Wheel4.rotateAngleX = f2 / (180F / (float) Math.PI);
- if (e instanceof LivingEntity) {
- if (e.getPersistentData().getDouble("Wheel") == 1) {
- this.Wheel1.rotateAngleX = (float) (f / 3);
- this.Wheel2.rotateAngleX = (float) (f / 3);
- this.Wheel3.rotateAngleX = (float) (f / 3);
- this.Wheel4.rotateAngleX = (float) (f / 3);
- }
- if (e.getPersistentData().getDouble("Wheel") == 0) {
- this.Wheel1.rotateAngleX = (float) - (f / 4);
- this.Wheel2.rotateAngleX = (float) - (f / 4);
- this.Wheel3.rotateAngleX = (float) - (f / 4);
- this.Wheel4.rotateAngleX = (float) - (f / 4);
- }
- System.out.println(this.Wheel1.rotateAngleX + " "+ f);
- }
- // sat
- this.sat.rotateAngleY = (float) f2 / 20f;
- // this.wellfront1.rotateAngleY = f2 / (180F / (float) Math.PI);
- // this.wellfront2.rotateAngleY = f2 / (180F / (float) Math.PI);
- if (e instanceof LivingEntity) {
- // this.wellfront1.rotateAngleY = (float) 0.3 /*((LivingEntity)
- // e).getPersistentData().getDouble("Wheel")*/;
- // this.wellfront2.rotateAngleY = (float) 0.3 /*((LivingEntity)
- // e).getPersistentData().getDouble("Wheel")*/;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement