Exemplo n.º 1
0
  /**
   * Used for easily adding entity-dependent animations. The second and third float params here are
   * the same second and third as in the setRotationAngles method.
   */
  public void setLivingAnimations(
      EntityLivingBase par1EntityLivingBase, float par2, float par3, float par4) {
    EntityWither var5 = (EntityWither) par1EntityLivingBase;

    for (int var6 = 1; var6 < 3; ++var6) {
      this.field_82904_b[var6].rotateAngleY =
          (var5.func_82207_a(var6 - 1) - par1EntityLivingBase.renderYawOffset)
              / (180F / (float) Math.PI);
      this.field_82904_b[var6].rotateAngleX =
          var5.func_82210_r(var6 - 1) / (180F / (float) Math.PI);
    }
  }