From 70b4aa9bbd9ae1deb9b59ec4e0af236a9c0939c1 Mon Sep 17 00:00:00 2001 From: wiiv Date: Tue, 22 Sep 2015 01:20:00 +0100 Subject: [PATCH] a little something something --- .../textures/model/unused/teruTeruBozu.java | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 src/main/resources/assets/botania/textures/model/unused/teruTeruBozu.java diff --git a/src/main/resources/assets/botania/textures/model/unused/teruTeruBozu.java b/src/main/resources/assets/botania/textures/model/unused/teruTeruBozu.java new file mode 100644 index 000000000..cafd98b74 --- /dev/null +++ b/src/main/resources/assets/botania/textures/model/unused/teruTeruBozu.java @@ -0,0 +1,53 @@ +package model; + +import net.minecraft.client.model.ModelBase; +import net.minecraft.client.model.ModelRenderer; +import net.minecraft.entity.Entity; + +/** + * teruTeruBozu - wiiv + * Created using Tabula 4.1.1 + */ +public class teruTeruBozu extends ModelBase { + public ModelRenderer shape1; + public ModelRenderer shape1_1; + public ModelRenderer shape1_2; + public ModelRenderer shape1_3; + + public teruTeruBozu() { + this.textureWidth = 48; + this.textureHeight = 32; + this.shape1_3 = new ModelRenderer(this, 0, 12); + this.shape1_3.setRotationPoint(0.0F, 14.5F, 0.0F); + this.shape1_3.addBox(0.0F, 0.0F, 0.0F, 6, 6, 6, 0.0F); + this.setRotateAngle(shape1_3, -2.1816615649929116F, -0.9599310885968813F, 1.3962634015954636F); + this.shape1_1 = new ModelRenderer(this, 0, 24); + this.shape1_1.setRotationPoint(0.0F, 14.0F, 0.0F); + this.shape1_1.addBox(-1.0F, 0.0F, -1.0F, 2, 1, 2, 0.0F); + this.shape1 = new ModelRenderer(this, 0, 0); + this.shape1.setRotationPoint(0.0F, 14.5F, 0.0F); + this.shape1.addBox(-3.0F, -6.0F, -3.0F, 6, 6, 6, 0.0F); + this.setRotateAngle(shape1, -0.17453292519943295F, 0.0F, 0.0F); + this.shape1_2 = new ModelRenderer(this, 0, 0); + this.shape1_2.setRotationPoint(0.0F, 14.5F, 0.0F); + this.shape1_2.addBox(-3.0F, -6.0F, -3.0F, 6, 6, 6, 0.0F); + this.setRotateAngle(shape1_2, -0.17453292519943295F, 0.0F, 0.0F); + } + + @Override + public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) { + this.shape1_3.render(f5); + this.shape1_1.render(f5); + this.shape1.render(f5); + this.shape1_2.render(f5); + } + + /** + * This is a helper function from Tabula to set the rotation of model parts + */ + public void setRotateAngle(ModelRenderer modelRenderer, float x, float y, float z) { + modelRenderer.rotateAngleX = x; + modelRenderer.rotateAngleY = y; + modelRenderer.rotateAngleZ = z; + } +}