Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package test;
- import net.minecraft.client.model.ModelBase;
- import net.minecraft.client.model.ModelRenderer;
- import net.minecraft.entity.Entity;
- /**
- * CrystalModel - Either Mojang or a mod author
- * Created using Tabula 7.0.0
- */
- public class UniconeHorn extends ModelBase {
- public ModelRenderer icecreambase;
- public ModelRenderer icecream1;
- public ModelRenderer icecream2;
- public ModelRenderer icecream3;
- public ModelRenderer icecream4;
- public ModelRenderer conebase;
- public ModelRenderer conemiddle;
- public ModelRenderer conetop;
- public UniconeHorn() {
- this.textureWidth = 128;
- this.textureHeight = 128;
- this.icecream2 = new ModelRenderer(this, 14, 72);
- this.icecream2.setRotationPoint(2.0F, -1.0F, 1.0F);
- this.icecream2.addBox(0.0F, 0.0F, 0.0F, 1, 3, 2, 0.0F);
- this.conemiddle = new ModelRenderer(this, 94, 77);
- this.conemiddle.setRotationPoint(0.0F, -5.0F, 1.1F);
- this.conemiddle.addBox(0.0F, 0.0F, 0.0F, 2, 3, 2, 0.0F);
- this.conetop = new ModelRenderer(this, 85, 90);
- this.conetop.setRotationPoint(0.5F, -8.0F, 1.5F);
- this.conetop.addBox(0.0F, 0.0F, 0.0F, 1, 3, 1, 0.0F);
- this.icecream4 = new ModelRenderer(this, 38, 85);
- this.icecream4.setRotationPoint(-1.0F, 0.0F, 1.0F);
- this.icecream4.addBox(0.0F, -1.0F, 0.0F, 1, 3, 2, 0.0F);
- this.icecreambase = new ModelRenderer(this, 25, 95);
- this.icecreambase.setRotationPoint(0.0F, 0.0F, 0.0F);
- this.icecreambase.addBox(0.0F, 2.0F, 0.9F, 2, 1, 2, 0.0F);
- this.icecream1 = new ModelRenderer(this, 6, 74);
- this.icecream1.setRotationPoint(0.0F, 0.0F, 0.0F);
- this.icecream1.addBox(0.0F, -1.0F, 0.0F, 2, 3, 1, 0.0F);
- this.conebase = new ModelRenderer(this, 83, 68);
- this.conebase.setRotationPoint(-0.5F, -2.0F, 0.5F);
- this.conebase.addBox(0.0F, 0.0F, 0.0F, 3, 2, 3, 0.0F);
- this.icecream3 = new ModelRenderer(this, 16, 83);
- this.icecream3.setRotationPoint(0.0F, -1.0F, 3.0F);
- this.icecream3.addBox(0.0F, 0.0F, 0.0F, 2, 3, 1, 0.0F);
- this.icecreambase.addChild(this.icecream2);
- this.icecreambase.addChild(this.conemiddle);
- this.icecreambase.addChild(this.conetop);
- this.icecreambase.addChild(this.icecream4);
- this.icecreambase.addChild(this.icecream1);
- this.icecreambase.addChild(this.conebase);
- this.icecreambase.addChild(this.icecream3);
- }
- @Override
- public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
- this.icecreambase.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;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement