Advertisement
Guest User

Untitled

a guest
Apr 24th, 2014
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 4.89 KB | None | 0 0
  1. // Date: 4/24/2014 10:36:16 AM
  2. // Template version 1.1
  3. // Java generated by Techne
  4.  
  5. package net.spideynn.moddedmod.wasteland.blocks;
  6.  
  7. import net.minecraft.client.model.ModelBase;
  8. import net.minecraft.client.model.ModelRenderer;
  9. import net.minecraft.entity.Entity;
  10.  
  11. public class ModelTrashCan extends ModelBase
  12. {
  13.   //fields
  14.     ModelRenderer Shape1;
  15.     ModelRenderer Shape2;
  16.     ModelRenderer Shape3;
  17.  
  18.  
  19.   public ModelTrashCan()
  20.   {
  21.     textureWidth = 128;
  22.     textureHeight = 32;
  23.    
  24.       Shape1 = new ModelRenderer(this, 13, 10);
  25.       Shape1.addBox(0F, 0F, 0F, 2, 14, 2);
  26.       Shape1.setRotationPoint(4F, 10F, -6F);
  27.       Shape1.setTextureSize(128, 32);
  28.       Shape1.mirror = true;
  29.       setRotation(Shape1, 0F, 0F, 0F);
  30.       Shape2 = new ModelRenderer(this, 76, 0);
  31.       Shape2.addBox(0F, 0F, 0F, 13, 1, 13);
  32.       Shape2.setRotationPoint(-6.5F, 9F, -6.5F);
  33.       Shape2.setTextureSize(128, 32);
  34.       Shape2.mirror = true;
  35.       setRotation(Shape2, 0F, 0F, 0F);
  36.       Shape3 = new ModelRenderer(this, 0, 0);
  37.       Shape3.addBox(0F, 0F, 0F, 2, 1, 1);
  38.       Shape3.setRotationPoint(1.5F, 8F, -0.5F);
  39.       Shape3.setTextureSize(128, 32);
  40.       Shape3.mirror = true;
  41.       setRotation(Shape3, 0F, 0F, 0F);
  42.       Shape3 = new ModelRenderer(this, 93, 0);
  43.       Shape3.addBox(0F, 0F, 0F, 5, 1, 1);
  44.       Shape3.setRotationPoint(-2.5F, 7F, -0.5F);
  45.       Shape3.setTextureSize(128, 32);
  46.       Shape3.mirror = true;
  47.       setRotation(Shape3, 0F, 0F, 0F);
  48.       Shape3 = new ModelRenderer(this, 0, 0);
  49.       Shape3.addBox(0F, 0F, 0F, 2, 1, 1);
  50.       Shape3.setRotationPoint(-3.5F, 8F, -0.5F);
  51.       Shape3.setTextureSize(128, 32);
  52.       Shape3.mirror = true;
  53.       setRotation(Shape3, 0F, 0F, 0F);
  54.       Shape1 = new ModelRenderer(this, 0, 6);
  55.       Shape1.addBox(0F, 0F, 0F, 12, 1, 12);
  56.       Shape1.setRotationPoint(-6F, 10F, -6F);
  57.       Shape1.setTextureSize(128, 32);
  58.       Shape1.mirror = true;
  59.       setRotation(Shape1, 0F, 0F, 0F);
  60.       Shape1 = new ModelRenderer(this, 0, 6);
  61.       Shape1.addBox(0F, 0F, 0F, 12, 1, 12);
  62.       Shape1.setRotationPoint(-6F, 23F, -6F);
  63.       Shape1.setTextureSize(128, 32);
  64.       Shape1.mirror = true;
  65.       setRotation(Shape1, 0F, 0F, 0F);
  66.       Shape1 = new ModelRenderer(this, 13, 10);
  67.       Shape1.addBox(0F, 0F, 0F, 4, 14, 1);
  68.       Shape1.setRotationPoint(-2F, 10F, 5F);
  69.       Shape1.setTextureSize(128, 32);
  70.       Shape1.mirror = true;
  71.       setRotation(Shape1, 0F, 0F, 0F);
  72.       Shape1 = new ModelRenderer(this, 2, 9);
  73.       Shape1.addBox(0F, 0F, 0F, 11, 12, 11);
  74.       Shape1.setRotationPoint(-5.5F, 11F, -5.5F);
  75.       Shape1.setTextureSize(128, 32);
  76.       Shape1.mirror = true;
  77.       setRotation(Shape1, 0F, 0F, 0F);
  78.       Shape1 = new ModelRenderer(this, 13, 10);
  79.       Shape1.addBox(0F, 0F, 0F, 2, 14, 2);
  80.       Shape1.setRotationPoint(-6F, 10F, 4F);
  81.       Shape1.setTextureSize(128, 32);
  82.       Shape1.mirror = true;
  83.       setRotation(Shape1, 0F, 0F, 0F);
  84.       Shape1 = new ModelRenderer(this, 13, 10);
  85.       Shape1.addBox(0F, 0F, 0F, 2, 14, 2);
  86.       Shape1.setRotationPoint(4F, 10F, 4F);
  87.       Shape1.setTextureSize(128, 32);
  88.       Shape1.mirror = true;
  89.       setRotation(Shape1, 0F, 0F, 0F);
  90.       Shape1 = new ModelRenderer(this, 13, 10);
  91.       Shape1.addBox(0F, 0F, 0F, 1, 14, 4);
  92.       Shape1.setRotationPoint(5F, 10F, -2F);
  93.       Shape1.setTextureSize(128, 32);
  94.       Shape1.mirror = true;
  95.       setRotation(Shape1, 0F, 0F, 0F);
  96.       Shape1 = new ModelRenderer(this, 13, 10);
  97.       Shape1.addBox(0F, 0F, 0F, 2, 14, 2);
  98.       Shape1.setRotationPoint(-6F, 10F, -6F);
  99.       Shape1.setTextureSize(128, 32);
  100.       Shape1.mirror = true;
  101.       setRotation(Shape1, 0F, 0F, 0F);
  102.       Shape1 = new ModelRenderer(this, 13, 10);
  103.       Shape1.addBox(0F, 0F, 0F, 4, 14, 1);
  104.       Shape1.setRotationPoint(-2F, 10F, -6F);
  105.       Shape1.setTextureSize(128, 32);
  106.       Shape1.mirror = true;
  107.       setRotation(Shape1, 0F, 0F, 0F);
  108.       Shape1 = new ModelRenderer(this, 13, 10);
  109.       Shape1.addBox(0F, 0F, 0F, 1, 14, 4);
  110.       Shape1.setRotationPoint(-6F, 10F, -2F);
  111.       Shape1.setTextureSize(128, 32);
  112.       Shape1.mirror = true;
  113.       setRotation(Shape1, 0F, 0F, 0F);
  114.   }
  115.  
  116.   public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5)
  117.   {
  118.     super.render(entity, f, f1, f2, f3, f4, f5);
  119.     setRotationAngles(f, f1, f2, f3, f4, f5, entity);
  120.     Shape1.render(f5);
  121.     Shape2.render(f5);
  122.     Shape3.render(f5);
  123.   }
  124.  
  125.   public void renderModel(float f) {
  126.         Shape1.render(f);
  127.         Shape2.render(f);
  128.         Shape3.render(f);
  129.   }
  130.  
  131.   private void setRotation(ModelRenderer model, float x, float y, float z)
  132.   {
  133.     model.rotateAngleX = x;
  134.     model.rotateAngleY = y;
  135.     model.rotateAngleZ = z;
  136.   }
  137.  
  138.   public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity entity)
  139.   {
  140.     super.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
  141.   }
  142.  
  143. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement