Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Date: 19/06/2013 9:53:44 PM
- // Template version 1.1
- // Java generated by Techne
- // Keep in mind that you still need to fill in some blanks
- // - ZeuX
- package Melontank.mod.Meloncraft.model;
- import net.minecraft.client.model.ModelBase;
- import net.minecraft.client.model.ModelRenderer;
- import net.minecraft.entity.Entity;
- public class MelonMobModel extends ModelBase
- {
- //fields
- ModelRenderer Body;
- ModelRenderer Left_Leg;
- ModelRenderer Right_Leg;
- ModelRenderer Head;
- ModelRenderer Left_Arm;
- ModelRenderer Right_Arm;
- public MelonMobModel()
- {
- textureWidth = 64;
- textureHeight = 32;
- Body = new ModelRenderer(this, 40, 0);
- Body.addBox(-4F, -15F, -2F, 8, 15, 4);
- Body.setRotationPoint(0F, 12F, 1F);
- Body.setTextureSize(64, 32);
- Body.mirror = true;
- setRotation(Body, 0F, 0F, 0F);
- Left_Leg = new ModelRenderer(this, 14, 0);
- Left_Leg.addBox(-1.6F, -3F, -0.5F, 3, 15, 3);
- Left_Leg.setRotationPoint(-1.5F, 12F, 0F);
- Left_Leg.setTextureSize(64, 32);
- Left_Leg.mirror = true;
- setRotation(Left_Leg, 0F, 0F, 0F);
- Right_Leg = new ModelRenderer(this, 27, 0);
- Right_Leg.addBox(-2F, -3F, -0.5F, 3, 15, 3);
- Right_Leg.setRotationPoint(2F, 12F, 0F);
- Right_Leg.setTextureSize(64, 32);
- Right_Leg.mirror = true;
- setRotation(Right_Leg, 0F, 0F, 0F);
- Head = new ModelRenderer(this, 0, 19);
- Head.addBox(-3.4F, -6F, -2.8F, 7, 7, 6);
- Head.setRotationPoint(0F, -4F, 1F);
- Head.setTextureSize(64, 32);
- Head.mirror = true;
- setRotation(Head, 0.0174533F, 0.0743572F, -0.0371786F);
- Left_Arm = new ModelRenderer(this, 0, 0);
- Left_Arm.addBox(-2F, -1F, 0F, 3, 12, 3);
- Left_Arm.setRotationPoint(-4F, -2F, 0F);
- Left_Arm.setTextureSize(64, 32);
- Left_Arm.mirror = true;
- setRotation(Left_Arm, 0F, 0F, 0F);
- Right_Arm = new ModelRenderer(this, 30, 22);
- Right_Arm.addBox(0F, -1F, -1F, 2, 8, 2);
- Right_Arm.setRotationPoint(4F, -2F, 1F);
- Right_Arm.setTextureSize(64, 32);
- Right_Arm.mirror = true;
- setRotation(Right_Arm, -0.0743572F, 0.0743572F, -0.0743572F);
- }
- public void render(Entity par1Entity, float par2, float par3, float par4, float par5, float par6, float par7)
- {
- setRotationAngles(par2, par3, par4, par5, par6, par7, par1Entity);
- Body.render(par7);
- Left_Leg.render(par7);
- Right_Leg.render(par7);
- Head.render(par7);
- Left_Arm.render(par7);
- Right_Arm.render(par7);
- }
- private void setRotation(ModelRenderer model, float x, float y, float z)
- {
- model.rotateAngleX = x;
- model.rotateAngleY = y;
- model.rotateAngleZ = z;
- }
- public void setRotationAngles(float par1, float par2, float par3, float par4, float par5, float par6, Entity par7Entity)
- {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment