public void func_187054_b(Entity p_187054_1_, float p_187054_2_, float p_187054_3_, float p_187054_4_, float p_187054_5_, float p_187054_6_, float p_187054_7_) { GlStateManager.rotate(90.0F, 0.0F, 1.0F, 0.0F); GlStateManager.colorMask(false, false, false, false); this.field_187058_c.render(p_187054_7_); GlStateManager.colorMask(true, true, true, true); }
/** * 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.pushMatrix(); GlStateManager.scale(2.0F, 2.0F, 2.0F); GlStateManager.translate(0.0F, -0.5F, 0.0F); if (this.base != null) { this.base.render(scale); } GlStateManager.rotate(p_78088_3_, 0.0F, 1.0F, 0.0F); GlStateManager.translate(0.0F, 0.8F + p_78088_4_, 0.0F); GlStateManager.rotate(60.0F, 0.7071F, 0.0F, 0.7071F); this.glass.render(scale); float f = 0.875F; GlStateManager.scale(f, f, f); GlStateManager.rotate(60.0F, 0.7071F, 0.0F, 0.7071F); GlStateManager.rotate(p_78088_3_, 0.0F, 1.0F, 0.0F); this.glass.render(scale); GlStateManager.scale(f, f, f); GlStateManager.rotate(60.0F, 0.7071F, 0.0F, 0.7071F); GlStateManager.rotate(p_78088_3_, 0.0F, 1.0F, 0.0F); this.cube.render(scale); GlStateManager.popMatrix(); }
public void renderWithRotation(float p_78791_1_) { if (!this.isHidden) { if (this.showModel) { if (!this.compiled) { this.compileDisplayList(p_78791_1_); } GlStateManager.pushMatrix(); GlStateManager.translate(this.rotationPointX * p_78791_1_, this.rotationPointY * p_78791_1_, this.rotationPointZ * p_78791_1_); if (this.rotateAngleY != 0.0F) { GlStateManager.rotate(this.rotateAngleY * (180F / (float)Math.PI), 0.0F, 1.0F, 0.0F); } if (this.rotateAngleX != 0.0F) { GlStateManager.rotate(this.rotateAngleX * (180F / (float)Math.PI), 1.0F, 0.0F, 0.0F); } if (this.rotateAngleZ != 0.0F) { GlStateManager.rotate(this.rotateAngleZ * (180F / (float)Math.PI), 0.0F, 0.0F, 1.0F); } GlStateManager.callList(this.displayList); GlStateManager.popMatrix(); } } }
/** * 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_); }
/** * Allows the changing of Angles after a box has been rendered */ public void postRender(float scale) { if (!this.isHidden) { if (this.showModel) { if (!this.compiled) { this.compileDisplayList(scale); } if (this.rotateAngleX == 0.0F && this.rotateAngleY == 0.0F && this.rotateAngleZ == 0.0F) { if (this.rotationPointX != 0.0F || this.rotationPointY != 0.0F || this.rotationPointZ != 0.0F) { GlStateManager.translate(this.rotationPointX * scale, this.rotationPointY * scale, this.rotationPointZ * scale); } } else { GlStateManager.translate(this.rotationPointX * scale, this.rotationPointY * scale, this.rotationPointZ * scale); if (this.rotateAngleZ != 0.0F) { GlStateManager.rotate(this.rotateAngleZ * (180F / (float)Math.PI), 0.0F, 0.0F, 1.0F); } if (this.rotateAngleY != 0.0F) { GlStateManager.rotate(this.rotateAngleY * (180F / (float)Math.PI), 0.0F, 1.0F, 0.0F); } if (this.rotateAngleX != 0.0F) { GlStateManager.rotate(this.rotateAngleX * (180F / (float)Math.PI), 1.0F, 0.0F, 0.0F); } } } } }
public void render(float p_78785_1_) { if (!this.isHidden) { if (this.showModel) { if (!this.compiled) { this.compileDisplayList(p_78785_1_); } GlStateManager.translate(this.offsetX, this.offsetY, this.offsetZ); if (this.rotateAngleX == 0.0F && this.rotateAngleY == 0.0F && this.rotateAngleZ == 0.0F) { if (this.rotationPointX == 0.0F && this.rotationPointY == 0.0F && this.rotationPointZ == 0.0F) { GlStateManager.callList(this.displayList); if (this.childModels != null) { for (int k = 0; k < this.childModels.size(); ++k) { ((ModelRenderer)this.childModels.get(k)).render(p_78785_1_); } } } else { GlStateManager.translate(this.rotationPointX * p_78785_1_, this.rotationPointY * p_78785_1_, this.rotationPointZ * p_78785_1_); GlStateManager.callList(this.displayList); if (this.childModels != null) { for (int j = 0; j < this.childModels.size(); ++j) { ((ModelRenderer)this.childModels.get(j)).render(p_78785_1_); } } GlStateManager.translate(-this.rotationPointX * p_78785_1_, -this.rotationPointY * p_78785_1_, -this.rotationPointZ * p_78785_1_); } } else { GlStateManager.pushMatrix(); GlStateManager.translate(this.rotationPointX * p_78785_1_, this.rotationPointY * p_78785_1_, this.rotationPointZ * p_78785_1_); if (this.rotateAngleZ != 0.0F) { GlStateManager.rotate(this.rotateAngleZ * (180F / (float)Math.PI), 0.0F, 0.0F, 1.0F); } if (this.rotateAngleY != 0.0F) { GlStateManager.rotate(this.rotateAngleY * (180F / (float)Math.PI), 0.0F, 1.0F, 0.0F); } if (this.rotateAngleX != 0.0F) { GlStateManager.rotate(this.rotateAngleX * (180F / (float)Math.PI), 1.0F, 0.0F, 0.0F); } GlStateManager.callList(this.displayList); if (this.childModels != null) { for (int i = 0; i < this.childModels.size(); ++i) { ((ModelRenderer)this.childModels.get(i)).render(p_78785_1_); } } GlStateManager.popMatrix(); } GlStateManager.translate(-this.offsetX, -this.offsetY, -this.offsetZ); } } }