Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ModelFarmer extends ModelBase {
- public ModelRenderer Base;
- public ModelRenderer Pole;
- public ModelRenderer Ymov;
- public ModelRenderer Arm1;
- public ModelRenderer Arm2;
- public ModelRenderer Head1;
- public ModelRenderer Head2;
- public ModelRenderer Head3;
- public ModelFarmer() {
- this.textureWidth = 64;
- this.textureHeight = 128;
- this.Ymov = new ModelRenderer(this, 25, 33);
- this.Ymov.setRotationPoint(0.0F, -18.5F, 0.0F);
- this.Ymov.addBox(-4.0F, -3.0F, -4.0F, 8, 7, 8, 0.0F);
- this.Head1 = new ModelRenderer(this, 0, 72);
- this.Head1.setRotationPoint(0.0F, 0.0F, -12.0F);
- this.Head1.addBox(-3.0F, -3.0F, -6.0F, 6, 7, 6, 0.0F);
- this.Arm1 = new ModelRenderer(this, 25, 49);
- this.Arm1.setRotationPoint(0.0F, -18.0F, 0.0F);
- this.Arm1.addBox(-2.5F, -2.5F, -16.0F, 5, 5, 14, 0.0F);
- this.Base = new ModelRenderer(this, 0, 0);
- this.Base.setRotationPoint(0.0F, 16.0F, 0.0F);
- this.Base.addBox(-8.0F, -8.0F, -8.0F, 16, 16, 16, 0.0F);
- this.Head3 = new ModelRenderer(this, 12, 86);
- this.Head3.setRotationPoint(0.0F, 5.0F, 0.0F);
- this.Head3.addBox(-0.5F, 0.0F, -0.5F, 1, 4, 1, 0.0F);
- this.Arm2 = new ModelRenderer(this, 25, 69);
- this.Arm2.setRotationPoint(0.0F, 0.0F, -16.0F);
- this.Arm2.addBox(-2.0F, -2.0F, -12.0F, 4, 4, 12, 0.0F);
- this.Head2 = new ModelRenderer(this, -1, 86);
- this.Head2.setRotationPoint(0.0F, 4.0F, -3.0F);
- this.Head2.addBox(-1.5F, 0.0F, -1.5F, 3, 5, 3, 0.0F);
- this.Pole = new ModelRenderer(this, 0, 33);
- this.Pole.setRotationPoint(0.0F, 8.0F, 0.0F);
- this.Pole.addBox(-3.0F, -32.0F, -3.0F, 6, 32, 6, 0.0F);
- this.Arm2.addChild(this.Head1);
- this.Head2.addChild(this.Head3);
- this.Arm1.addChild(this.Arm2);
- this.Head1.addChild(this.Head2);
- }
- @Override
- public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
- this.Base.render(f5);
- this.Pole.render(f5);
- this.Ymov.render(f5);
- this.Arm1.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