public ModelTinyPotato() { textureWidth = 16; textureHeight = 16; potato = new ModelRenderer(this, 0, 0); potato.addBox(0F, 0F, 0F, 4, 6, 4); potato.setRotationPoint(-2F, 18F, -2F); potato.setTextureSize(64, 32); }
public LayerSlimeGelColored(RenderSlime slimeRendererIn, int color) { this.slimeRenderer = slimeRendererIn; this.color = color; slimeModel = new ModelSlime(0); }
public ModelBellows() { textureWidth = 64; textureHeight = 32; top = new ModelRenderer(this, 0, 0); top.setRotationPoint(0.0F, 16.0F, 0.0F); top.addBox(-4.0F, -2.0F, -4.0F, 8, 1, 8, 0.0F); base = new ModelRenderer(this, 0, 9); base.setRotationPoint(0.0F, 16.0F, 0.0F); base.addBox(-5.0F, 6.0F, -5.0F, 10, 2, 10, 0.0F); pipe = new ModelRenderer(this, 0, 21); pipe.setRotationPoint(0.0F, 16.0F, 0.0F); pipe.addBox(-1.0F, 6.0F, -8.0F, 2, 2, 3, 0.0F); funnel = new ModelRenderer(this, 40, 0); funnel.setRotationPoint(0.0F, 0.0F, 0.0F); funnel.addBox(0.0F, 0.0F, 0.0F, 6, 7, 6, 0.0F); }
@Override public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) { super.render(entity, f, f1, f2, f3, f4, f5); setRotationAngles(f, f1, f2, f3, f4, f5, entity); body.render(f5); leftWingT.render(f5); leftWingB.render(f5); rightWingT.render(f5); rightWingB.render(f5); }
@Override 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); rightWingT.rotateAngleY = -(MathHelper.cos(f2 * 1.7F) * (float)Math.PI * 0.5F); leftWingT.rotateAngleY = MathHelper.cos(f2 * 1.7F) * (float)Math.PI * 0.5F; rightWingB.rotateAngleY = -(MathHelper.cos(f2 * 1.7F) * (float)Math.PI * 0.25F); leftWingB.rotateAngleY = MathHelper.cos(f2 * 1.7F) * (float)Math.PI * 0.25F; }
public RenderDoppleganger(RenderManager renderManager) { super(renderManager, new ModelPlayer(0.0F, false), 0F); }
public ModelSpinningCubes() { spinningCube = new ModelRenderer(this, 42, 0); spinningCube.addBox(0F, 0F, 0F, 1, 1, 1); spinningCube.setRotationPoint(0F, 0F, 0F); spinningCube.setTextureSize(64, 64); }
public ModelBrewery() { textureWidth = 32; textureHeight = 16; top = new ModelRenderer(this, 8, 0); top.setRotationPoint(0.0F, 16.0F, 0.0F); top.addBox(-2.0F, -7.0F, -2.0F, 4, 1, 4, 0.0F); pole = new ModelRenderer(this, 0, 0); pole.setRotationPoint(0.0F, 16.0F, 0.0F); pole.addBox(-1.0F, -6.0F, -1.0F, 2, 10, 2, 0.0F); bottom = new ModelRenderer(this, 8, 5); bottom.setRotationPoint(0.0F, 16.0F, 0.0F); bottom.addBox(-2.0F, 4.0F, -2.0F, 4, 1, 4, 0.0F); plate = new ModelRenderer(this, 8, 5); plate.setRotationPoint(0.0F, 17.0F, 0.0F); plate.addBox(5.0F, 0.0F, -2.0F, 4, 1, 4, 0.0F); }
public RenderTinkerSlime(RenderManager renderManager, int color, ResourceLocation texture) { this(renderManager, color, color, new ModelSlime(16), 0.25f, texture); }
public void renderCube() { float f = 1F / 16F; inside.render(f); } }
public void render() { potato.render(1F / 16F); }