/** * Sets the models various rotation angles then renders the model. */ public void render(Entity entityIn, float p_78088_2_, float p_78088_3_, float p_78088_4_, float p_78088_5_, float p_78088_6_, float scale) { GlStateManager.rotate(90.0F, 0.0F, 1.0F, 0.0F); EntityBoat entityboat = (EntityBoat)entityIn; this.setRotationAngles(p_78088_2_, p_78088_3_, p_78088_4_, p_78088_5_, p_78088_6_, scale, entityIn); for (int i = 0; i < 5; ++i) { this.boatSides[i].render(scale); } this.func_187055_a(entityboat, 0, scale, p_78088_2_); this.func_187055_a(entityboat, 1, scale, p_78088_2_); }
void func_187055_a(EntityBoat p_187055_1_, int p_187055_2_, float p_187055_3_, float p_187055_4_) { float f = 40.0F; float f1 = p_187055_1_.func_184448_a(p_187055_2_, p_187055_4_) * f; ModelRenderer modelrenderer = this.field_187057_b[p_187055_2_]; modelrenderer.rotateAngleX = (float)MathHelper.denormalizeClamp(-1.0471975803375244D, -0.2617993950843811D, (double)((MathHelper.sin(-f1) + 1.0F) / 2.0F)); modelrenderer.rotateAngleY = (float)MathHelper.denormalizeClamp(-(Math.PI / 4D), (Math.PI / 4D), (double)((MathHelper.sin(-f1 + 1.0F) + 1.0F) / 2.0F)); if (p_187055_2_ == 1) { modelrenderer.rotateAngleY = (float)Math.PI - modelrenderer.rotateAngleY; } modelrenderer.render(p_187055_3_); }