Melontank

Melon Mob Model

Jul 5th, 2013
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 3.00 KB | None | 0 0
  1. // Date: 19/06/2013 9:53:44 PM
  2. // Template version 1.1
  3. // Java generated by Techne
  4. // Keep in mind that you still need to fill in some blanks
  5. // - ZeuX
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12. package Melontank.mod.Meloncraft.model;
  13.  
  14. import net.minecraft.client.model.ModelBase;
  15. import net.minecraft.client.model.ModelRenderer;
  16. import net.minecraft.entity.Entity;
  17.  
  18. public class MelonMobModel extends ModelBase
  19. {
  20.   //fields
  21.     ModelRenderer Body;
  22.     ModelRenderer Left_Leg;
  23.     ModelRenderer Right_Leg;
  24.     ModelRenderer Head;
  25.     ModelRenderer Left_Arm;
  26.     ModelRenderer Right_Arm;
  27.  
  28.   public MelonMobModel()
  29.   {
  30.     textureWidth = 64;
  31.     textureHeight = 32;
  32.    
  33.       Body = new ModelRenderer(this, 40, 0);
  34.       Body.addBox(-4F, -15F, -2F, 8, 15, 4);
  35.       Body.setRotationPoint(0F, 12F, 1F);
  36.       Body.setTextureSize(64, 32);
  37.       Body.mirror = true;
  38.       setRotation(Body, 0F, 0F, 0F);
  39.       Left_Leg = new ModelRenderer(this, 14, 0);
  40.       Left_Leg.addBox(-1.6F, -3F, -0.5F, 3, 15, 3);
  41.       Left_Leg.setRotationPoint(-1.5F, 12F, 0F);
  42.       Left_Leg.setTextureSize(64, 32);
  43.       Left_Leg.mirror = true;
  44.       setRotation(Left_Leg, 0F, 0F, 0F);
  45.       Right_Leg = new ModelRenderer(this, 27, 0);
  46.       Right_Leg.addBox(-2F, -3F, -0.5F, 3, 15, 3);
  47.       Right_Leg.setRotationPoint(2F, 12F, 0F);
  48.       Right_Leg.setTextureSize(64, 32);
  49.       Right_Leg.mirror = true;
  50.       setRotation(Right_Leg, 0F, 0F, 0F);
  51.       Head = new ModelRenderer(this, 0, 19);
  52.       Head.addBox(-3.4F, -6F, -2.8F, 7, 7, 6);
  53.       Head.setRotationPoint(0F, -4F, 1F);
  54.       Head.setTextureSize(64, 32);
  55.       Head.mirror = true;
  56.       setRotation(Head, 0.0174533F, 0.0743572F, -0.0371786F);
  57.       Left_Arm = new ModelRenderer(this, 0, 0);
  58.       Left_Arm.addBox(-2F, -1F, 0F, 3, 12, 3);
  59.       Left_Arm.setRotationPoint(-4F, -2F, 0F);
  60.       Left_Arm.setTextureSize(64, 32);
  61.       Left_Arm.mirror = true;
  62.       setRotation(Left_Arm, 0F, 0F, 0F);
  63.       Right_Arm = new ModelRenderer(this, 30, 22);
  64.       Right_Arm.addBox(0F, -1F, -1F, 2, 8, 2);
  65.       Right_Arm.setRotationPoint(4F, -2F, 1F);
  66.       Right_Arm.setTextureSize(64, 32);
  67.       Right_Arm.mirror = true;
  68.       setRotation(Right_Arm, -0.0743572F, 0.0743572F, -0.0743572F);
  69.   }
  70.  
  71.   public void render(Entity par1Entity, float par2, float par3, float par4, float par5, float par6, float par7)
  72.   {
  73.    
  74.     setRotationAngles(par2, par3, par4, par5, par6, par7, par1Entity);
  75.     Body.render(par7);
  76.     Left_Leg.render(par7);
  77.     Right_Leg.render(par7);
  78.     Head.render(par7);
  79.     Left_Arm.render(par7);
  80.     Right_Arm.render(par7);
  81.   }
  82.  
  83.   private void setRotation(ModelRenderer model, float x, float y, float z)
  84.   {
  85.     model.rotateAngleX = x;
  86.     model.rotateAngleY = y;
  87.     model.rotateAngleZ = z;
  88.   }
  89.  
  90.   public void setRotationAngles(float par1, float par2, float par3, float par4, float par5, float par6, Entity par7Entity)                                                                              
  91.   {
  92.    
  93.      
  94.      
  95.      
  96.      
  97.      
  98.      
  99.      
  100.      
  101.      
  102.   }
  103.  
  104. }
Advertisement
Add Comment
Please, Sign In to add comment