public EntityAIOcelotSit(EntityOcelot par1EntityOcelot, float par2) { Field_50084_c = 0; Field_52011_h = 0; Field_50081_d = 0; Field_50082_e = 0; Field_50079_f = 0; Field_50080_g = 0; Field_50085_a = par1EntityOcelot; Field_50083_b = par2; SetMutexBits(5); }
/** * 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 entitylivingbaseIn, float p_78086_2_, float p_78086_3_, float partialTickTime) { EntityOcelot entityocelot = (EntityOcelot)entitylivingbaseIn; this.ocelotBody.rotationPointY = 12.0F; this.ocelotBody.rotationPointZ = -10.0F; this.ocelotHead.rotationPointY = 15.0F; this.ocelotHead.rotationPointZ = -9.0F; this.ocelotTail.rotationPointY = 15.0F; this.ocelotTail.rotationPointZ = 8.0F; this.ocelotTail2.rotationPointY = 20.0F; this.ocelotTail2.rotationPointZ = 14.0F; this.ocelotFrontLeftLeg.rotationPointY = this.ocelotFrontRightLeg.rotationPointY = 13.8F; this.ocelotFrontLeftLeg.rotationPointZ = this.ocelotFrontRightLeg.rotationPointZ = -5.0F; this.ocelotBackLeftLeg.rotationPointY = this.ocelotBackRightLeg.rotationPointY = 18.0F; this.ocelotBackLeftLeg.rotationPointZ = this.ocelotBackRightLeg.rotationPointZ = 5.0F; this.ocelotTail.rotateAngleX = 0.9F; if (entityocelot.isSneaking()) { ++this.ocelotBody.rotationPointY; this.ocelotHead.rotationPointY += 2.0F; ++this.ocelotTail.rotationPointY; this.ocelotTail2.rotationPointY += -4.0F; this.ocelotTail2.rotationPointZ += 2.0F; this.ocelotTail.rotateAngleX = ((float)Math.PI / 2F); this.ocelotTail2.rotateAngleX = ((float)Math.PI / 2F); this.field_78163_i = 0; } else if (entityocelot.isSprinting()) { this.ocelotTail2.rotationPointY = this.ocelotTail.rotationPointY; this.ocelotTail2.rotationPointZ += 2.0F; this.ocelotTail.rotateAngleX = ((float)Math.PI / 2F); this.ocelotTail2.rotateAngleX = ((float)Math.PI / 2F); this.field_78163_i = 2; } else if (entityocelot.isSitting()) { this.ocelotBody.rotateAngleX = ((float)Math.PI / 4F); this.ocelotBody.rotationPointY += -4.0F; this.ocelotBody.rotationPointZ += 5.0F; this.ocelotHead.rotationPointY += -3.3F; ++this.ocelotHead.rotationPointZ; this.ocelotTail.rotationPointY += 8.0F; this.ocelotTail.rotationPointZ += -2.0F; this.ocelotTail2.rotationPointY += 2.0F; this.ocelotTail2.rotationPointZ += -0.8F; this.ocelotTail.rotateAngleX = 1.7278761F; this.ocelotTail2.rotateAngleX = 2.670354F; this.ocelotFrontLeftLeg.rotateAngleX = this.ocelotFrontRightLeg.rotateAngleX = -0.15707964F; this.ocelotFrontLeftLeg.rotationPointY = this.ocelotFrontRightLeg.rotationPointY = 15.8F; this.ocelotFrontLeftLeg.rotationPointZ = this.ocelotFrontRightLeg.rotationPointZ = -7.0F; this.ocelotBackLeftLeg.rotateAngleX = this.ocelotBackRightLeg.rotateAngleX = -((float)Math.PI / 2F); this.ocelotBackLeftLeg.rotationPointY = this.ocelotBackRightLeg.rotationPointY = 21.0F; this.ocelotBackLeftLeg.rotationPointZ = this.ocelotBackRightLeg.rotationPointZ = 1.0F; this.field_78163_i = 3; } else { this.field_78163_i = 1; } }