Advertisement
Guest User

Untitled

a guest
Apr 3rd, 2020
599
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.96 KB | None | 0 0
  1. package test;
  2.  
  3. import net.minecraft.client.model.ModelBase;
  4. import net.minecraft.client.model.ModelRenderer;
  5. import net.minecraft.entity.Entity;
  6.  
  7. /**
  8.  * CrystalModel - Either Mojang or a mod author
  9.  * Created using Tabula 7.0.0
  10.  */
  11. public class UniconeHorn extends ModelBase {
  12.     public ModelRenderer icecreambase;
  13.     public ModelRenderer icecream1;
  14.     public ModelRenderer icecream2;
  15.     public ModelRenderer icecream3;
  16.     public ModelRenderer icecream4;
  17.     public ModelRenderer conebase;
  18.     public ModelRenderer conemiddle;
  19.     public ModelRenderer conetop;
  20.  
  21.     public UniconeHorn() {
  22.         this.textureWidth = 128;
  23.         this.textureHeight = 128;
  24.         this.icecream2 = new ModelRenderer(this, 14, 72);
  25.         this.icecream2.setRotationPoint(2.0F, -1.0F, 1.0F);
  26.         this.icecream2.addBox(0.0F, 0.0F, 0.0F, 1, 3, 2, 0.0F);
  27.         this.conemiddle = new ModelRenderer(this, 94, 77);
  28.         this.conemiddle.setRotationPoint(0.0F, -5.0F, 1.1F);
  29.         this.conemiddle.addBox(0.0F, 0.0F, 0.0F, 2, 3, 2, 0.0F);
  30.         this.conetop = new ModelRenderer(this, 85, 90);
  31.         this.conetop.setRotationPoint(0.5F, -8.0F, 1.5F);
  32.         this.conetop.addBox(0.0F, 0.0F, 0.0F, 1, 3, 1, 0.0F);
  33.         this.icecream4 = new ModelRenderer(this, 38, 85);
  34.         this.icecream4.setRotationPoint(-1.0F, 0.0F, 1.0F);
  35.         this.icecream4.addBox(0.0F, -1.0F, 0.0F, 1, 3, 2, 0.0F);
  36.         this.icecreambase = new ModelRenderer(this, 25, 95);
  37.         this.icecreambase.setRotationPoint(0.0F, 0.0F, 0.0F);
  38.         this.icecreambase.addBox(0.0F, 2.0F, 0.9F, 2, 1, 2, 0.0F);
  39.         this.icecream1 = new ModelRenderer(this, 6, 74);
  40.         this.icecream1.setRotationPoint(0.0F, 0.0F, 0.0F);
  41.         this.icecream1.addBox(0.0F, -1.0F, 0.0F, 2, 3, 1, 0.0F);
  42.         this.conebase = new ModelRenderer(this, 83, 68);
  43.         this.conebase.setRotationPoint(-0.5F, -2.0F, 0.5F);
  44.         this.conebase.addBox(0.0F, 0.0F, 0.0F, 3, 2, 3, 0.0F);
  45.         this.icecream3 = new ModelRenderer(this, 16, 83);
  46.         this.icecream3.setRotationPoint(0.0F, -1.0F, 3.0F);
  47.         this.icecream3.addBox(0.0F, 0.0F, 0.0F, 2, 3, 1, 0.0F);
  48.         this.icecreambase.addChild(this.icecream2);
  49.         this.icecreambase.addChild(this.conemiddle);
  50.         this.icecreambase.addChild(this.conetop);
  51.         this.icecreambase.addChild(this.icecream4);
  52.         this.icecreambase.addChild(this.icecream1);
  53.         this.icecreambase.addChild(this.conebase);
  54.         this.icecreambase.addChild(this.icecream3);
  55.     }
  56.  
  57.     @Override
  58.     public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
  59.         this.icecreambase.render(f5);
  60.     }
  61.  
  62.     /**
  63.      * This is a helper function from Tabula to set the rotation of model parts
  64.      */
  65.     public void setRotateAngle(ModelRenderer modelRenderer, float x, float y, float z) {
  66.         modelRenderer.rotateAngleX = x;
  67.         modelRenderer.rotateAngleY = y;
  68.         modelRenderer.rotateAngleZ = z;
  69.     }
  70. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement