Esempio n. 1
0
  public void setRotationAngles(
      float f, float f1, float f2, float f3, float f4, float f5, Entity entity) {
    super.setRotationAngles(f, f1, f2, f3, f4, f5, entity);

    if (((EntityPixelmon) entity).animationCounter2 * 3 - 180 < 0) {
      LeftWing.rotateAngleZ =
          2F + (((EntityPixelmon) entity).animationCounter2 + 90) * 0.034906585F;
    } else if (((EntityPixelmon) entity).animationCounter2 * 3 >= 0) {
      LeftWing.rotateAngleZ =
          0F + -((((EntityPixelmon) entity).animationCounter2 - 90) * 0.034906585F);
    }

    if (((EntityPixelmon) entity).animationCounter2 * 3 - 180 < 0) {
      RightWing.rotateAngleZ =
          -2F + -(((EntityPixelmon) entity).animationCounter2 + 90) * 0.034906585F;
    } else if (((EntityPixelmon) entity).animationCounter2 * 3 >= 0) {
      RightWing.rotateAngleZ =
          0F + ((((EntityPixelmon) entity).animationCounter2 - 90) * 0.034906585F);
    }

    if (((EntityPixelmon) entity).animationCounter2 * 3 - 180 < 0) {
      Body.rotationPointY = 20 - (((EntityPixelmon) entity).animationCounter2 + 180) * 0.174532925F;
    } else if (((EntityPixelmon) entity).animationCounter2 * 3 >= 0) {
      Body.rotationPointY = 0 + (((EntityPixelmon) entity).animationCounter2 - 180) * 0.174532925F;
    }

    if (((EntityPixelmon) entity).animationCounter2 >= 120) {
      ((EntityPixelmon) entity).animationCounter2 = 0;
    }
  }
Esempio n. 2
0
 private void setRotation(PixelmonModelRenderer model, float x, float y, float z) {
   model.rotateAngleX = x;
   model.rotateAngleY = y;
   model.rotateAngleZ = z;
 }