Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package sypher.mps.models;
- //The Arm Cannon model
- import net.minecraft.client.model.ModelBase;
- import net.minecraft.client.model.ModelRenderer;
- import net.minecraft.entity.Entity;
- public class ArmCannonModel1 extends ModelBase
- {
- //fields
- public ModelRenderer Front1;
- public ModelRenderer Front2;
- public ModelRenderer Front3;
- public ModelRenderer Front4;
- public ModelRenderer Front5;
- public ModelRenderer Front6;
- public ModelRenderer Front7;
- public ModelRenderer Front8;
- public ModelRenderer LFront1;
- public ModelRenderer LFront2;
- public ModelRenderer LFront3;
- public ModelRenderer LFront4;
- public ModelRenderer LFront5;
- public ModelRenderer LFront6;
- public ModelRenderer LFront7;
- public ModelRenderer LFront8;
- public ModelRenderer LFront9;
- public ModelRenderer LFront10;
- public ModelRenderer LFront11;
- public ModelRenderer LFront12;
- public ModelRenderer Body9;
- public ModelRenderer Body10;
- public ModelRenderer Body11;
- public ModelRenderer Body12;
- public ModelRenderer Body13;
- public ModelRenderer Body2;
- public ModelRenderer Body3;
- public ModelRenderer Body4;
- public ModelRenderer Body5;
- public ModelRenderer Body6;
- public ModelRenderer Body7;
- public ModelRenderer Body8;
- public ModelRenderer BBody1;
- public ModelRenderer BBody2;
- public ModelRenderer BBody3;
- public ModelRenderer BBody4;
- public ModelRenderer BBody5;
- public ModelRenderer BBody6;
- public ModelRenderer BBody7;
- public ModelRenderer BBody8;
- public ModelRenderer BBody9;
- public ModelRenderer BBody10;
- public ModelRenderer BBody11;
- public ModelRenderer BBody12;
- public ModelRenderer BBody13;
- public ModelRenderer BBody14;
- public ModelRenderer BBody15;
- public ModelRenderer BBody16;
- public ModelRenderer RSide1;
- public ModelRenderer RSide2;
- public ModelRenderer RSide3;
- public ModelRenderer LSide1;
- public ModelRenderer LSide2;
- public ModelRenderer LSide3;
- public ArmCannonModel1()
- {
- textureWidth = 64;
- textureHeight = 32;
- Front1 = new ModelRenderer(this, 0, 30);
- Front1.addBox(11F, 0F, 1F, 3, 1, 1);
- Front1.setRotationPoint(0F, 0F, 0F);
- Front1.setTextureSize(64, 32);
- Front1.mirror = true;
- setRotation(Front1, 0F, 1.570796F, 0F);
- Front2.mirror = true;
- Front2 = new ModelRenderer(this, 0, 30);
- Front2.addBox(11F, 1F, 0F, 3, 1, 1);
- Front2.setRotationPoint(0F, 0F, 0F);
- Front2.setTextureSize(64, 32);
- Front2.mirror = true; <-This is line 79
- setRotation(Front2, 1.570796F, 1.570796F, 0F);
- Front2.mirror = false;
- Front3 = new ModelRenderer(this, 0, 30);
- Front3.addBox(11F, -1F, 1F, 3, 1, 1);
- Front3.setRotationPoint(0F, 0F, 0F);
- Front3.setTextureSize(64, 32);
- Front3.mirror = true;
- setRotation(Front3, 1.570796F, 1.570796F, 0F);
- Front4 = new ModelRenderer(this, 0, 30);
- Front4.addBox(11F, 0F, 1F, 3, 1, 1);
- Front4.setRotationPoint(0F, 0F, 0F);
- Front4.setTextureSize(64, 32);
- Front4.mirror = true;
- setRotation(Front4, 1.570796F, 1.570796F, 0F);
- Front5 = new ModelRenderer(this, 0, 30);
- Front5.addBox(11F, -2F, 0F, 3, 1, 1);
- Front5.setRotationPoint(0F, 0F, 0F);
- Front5.setTextureSize(64, 32);
- Front5.mirror = true;
- setRotation(Front5, 1.570796F, 1.570796F, 0F);
- Front6 = new ModelRenderer(this, 0, 30);
- Front6.addBox(11F, -2F, -1F, 3, 1, 1);
- Front6.setRotationPoint(0F, 0F, 0F);
- Front6.setTextureSize(64, 32);
- Front6.mirror = true;
- setRotation(Front6, 1.570796F, 1.570796F, 0F);
- Front7 = new ModelRenderer(this, 0, 30);
- Front7.addBox(11F, -1F, -2F, 3, 1, 1);
- Front7.setRotationPoint(0F, 0F, 0F);
- Front7.setTextureSize(64, 32);
- Front7.mirror = true;
- setRotation(Front7, 1.570796F, 1.570796F, 0F);
- Front8 = new ModelRenderer(this, 0, 30);
- Front8.addBox(11F, 0F, -2F, 3, 1, 1);
- Front8.setRotationPoint(0F, 0F, 0F);
- Front8.setTextureSize(64, 32);
- Front8.mirror = true;
- setRotation(Front8, 1.570796F, 1.570796F, 0F);
- LFront1 = new ModelRenderer(this, 0, 30);
- LFront1.addBox(9F, 1F, 1F, 2, 1, 1);
- LFront1.setRotationPoint(0F, 0F, 0F);
- LFront1.setTextureSize(64, 32);
- LFront1.mirror = true;
- setRotation(LFront1, 1.570796F, 1.570796F, 0F);
- LFront2 = new ModelRenderer(this, 0, 30);
- LFront2.addBox(9F, 2F, 0F, 2, 1, 1);
- LFront2.setRotationPoint(0F, 0F, 0F);
- LFront2.setTextureSize(64, 32);
- LFront2.mirror = true;
- setRotation(LFront2, 1.570796F, 1.570796F, 0F);
- LFront3 = new ModelRenderer(this, 0, 30);
- LFront3.addBox(9F, 0F, 2F, 2, 1, 1);
- LFront3.setRotationPoint(0F, 0F, 0F);
- LFront3.setTextureSize(64, 32);
- LFront3.mirror = true;
- setRotation(LFront3, 1.570796F, 1.570796F, 0F);
- LFront4 = new ModelRenderer(this, 0, 30);
- LFront4.addBox(9F, -1F, 2F, 2, 1, 1);
- LFront4.setRotationPoint(0F, 0F, 0F);
- LFront4.setTextureSize(64, 32);
- LFront4.mirror = true;
- setRotation(LFront4, 1.570796F, 1.570796F, 0F);
- LFront5 = new ModelRenderer(this, 0, 30);
- LFront5.addBox(9F, 2F, -1F, 2, 1, 1);
- LFront5.setRotationPoint(0F, 0F, 0F);
- LFront5.setTextureSize(64, 32);
- LFront5.mirror = true;
- setRotation(LFront5, 1.570796F, 1.570796F, 0F);
- LFront6 = new ModelRenderer(this, 0, 30);
- LFront6.addBox(9F, 1F, -2F, 2, 1, 1);
- LFront6.setRotationPoint(0F, 0F, 0F);
- LFront6.setTextureSize(64, 32);
- LFront6.mirror = true;
- setRotation(LFront6, 1.570796F, 1.570796F, 0F);
- LFront7 = new ModelRenderer(this, 0, 30);
- LFront7.addBox(9F, -3F, 0F, 2, 1, 1);
- LFront7.setRotationPoint(0F, 0F, 0F);
- LFront7.setTextureSize(64, 32);
- LFront7.mirror = true;
- setRotation(LFront7, 1.570796F, 1.570796F, 0F);
- LFront8 = new ModelRenderer(this, 0, 30);
- LFront8.addBox(9F, -3F, -1F, 2, 1, 1);
- LFront8.setRotationPoint(0F, 0F, 0F);
- LFront8.setTextureSize(64, 32);
- LFront8.mirror = true;
- setRotation(LFront8, 1.570796F, 1.570796F, 0F);
- LFront9 = new ModelRenderer(this, 0, 30);
- LFront9.addBox(9F, -2F, 1F, 2, 1, 1);
- LFront9.setRotationPoint(0F, 0F, 0F);
- LFront9.setTextureSize(64, 32);
- LFront9.mirror = true;
- setRotation(LFront9, 1.570796F, 1.570796F, 0F);
- LFront10 = new ModelRenderer(this, 0, 30);
- LFront10.addBox(9F, 0F, -3F, 2, 1, 1);
- LFront10.setRotationPoint(0F, 0F, 0F);
- LFront10.setTextureSize(64, 32);
- LFront10.mirror = true;
- setRotation(LFront10, 1.570796F, 1.570796F, 0F);
- LFront11 = new ModelRenderer(this, 0, 30);
- LFront11.addBox(9F, -1F, -3F, 2, 1, 1);
- LFront11.setRotationPoint(0F, 0F, 0F);
- LFront11.setTextureSize(64, 32);
- LFront11.mirror = true;
- setRotation(LFront11, 1.570796F, 1.570796F, 0F);
- LFront12 = new ModelRenderer(this, 0, 30);
- LFront12.addBox(9F, -2F, -2F, 2, 1, 1);
- LFront12.setRotationPoint(0F, 0F, 0F);
- LFront12.setTextureSize(64, 32);
- LFront12.mirror = true;
- setRotation(LFront12, 1.570796F, 1.570796F, 0F);
- Body9 = new ModelRenderer(this, 0, 0);
- Body9.addBox(-4F, 1F, 1F, 13, 1, 1);
- Body9.setRotationPoint(0F, 0F, 0F);
- Body9.setTextureSize(64, 32);
- Body9.mirror = true;
- setRotation(Body9, 0F, 1.570796F, 0F);
- Body10 = new ModelRenderer(this, 0, 0);
- Body10.addBox(-4F, -2F, 1F, 13, 1, 1);
- Body10.setRotationPoint(0F, 0F, 0F);
- Body10.setTextureSize(64, 32);
- Body10.mirror = true;
- setRotation(Body10, 0F, 1.570796F, 0F);
- Body11 = new ModelRenderer(this, 0, 0);
- Body11.addBox(-4F, 0F, 2F, 13, 1, 1);
- Body11.setRotationPoint(0F, 0F, 0F);
- Body11.setTextureSize(64, 32);
- Body11.mirror = true;
- setRotation(Body11, 0F, 1.570796F, 0F);
- Body12 = new ModelRenderer(this, 0, 0);
- Body12.addBox(-4F, -2F, -2F, 13, 1, 1);
- Body12.setRotationPoint(0F, 0F, 0F);
- Body12.setTextureSize(64, 32);
- Body12.mirror = true;
- setRotation(Body12, 0F, 1.570796F, 0F);
- Body13 = new ModelRenderer(this, 0, 0);
- Body13.addBox(-4F, -1F, 2F, 13, 1, 1);
- Body13.setRotationPoint(0F, 0F, 0F);
- Body13.setTextureSize(64, 32);
- Body13.mirror = true;
- setRotation(Body13, 0F, 1.570796F, 0F);
- Body2 = new ModelRenderer(this, 0, 2);
- Body2.addBox(-4F, -3F, 0F, 13, 1, 1);
- Body2.setRotationPoint(0F, 0F, 0F);
- Body2.setTextureSize(64, 32);
- Body2.mirror = true;
- setRotation(Body2, 0F, 1.570796F, 0F);
- Body3 = new ModelRenderer(this, 0, 4);
- Body3.addBox(-4F, -3F, -1F, 13, 1, 1);
- Body3.setRotationPoint(0F, 0F, 0F);
- Body3.setTextureSize(64, 32);
- Body3.mirror = true;
- setRotation(Body3, 0F, 1.570796F, 0F);
- Body4 = new ModelRenderer(this, 0, 0);
- Body4.addBox(-4F, 2F, -1F, 13, 1, 1);
- Body4.setRotationPoint(0F, 0F, 0F);
- Body4.setTextureSize(64, 32);
- Body4.mirror = true;
- setRotation(Body4, 0F, 1.570796F, 0F);
- Body5 = new ModelRenderer(this, 0, 0);
- Body5.addBox(-4F, 2F, 0F, 13, 1, 1);
- Body5.setRotationPoint(0F, 0F, 0F);
- Body5.setTextureSize(64, 32);
- Body5.mirror = true;
- setRotation(Body5, 0F, 1.570796F, 0F);
- Body6 = new ModelRenderer(this, 0, 0);
- Body6.addBox(-4F, 1F, -2F, 13, 1, 1);
- Body6.setRotationPoint(0F, 0F, 0F);
- Body6.setTextureSize(64, 32);
- Body6.mirror = true;
- setRotation(Body6, 0F, 1.570796F, 0F);
- Body7 = new ModelRenderer(this, 0, 0);
- Body7.addBox(-4F, -1F, -3F, 13, 1, 1);
- Body7.setRotationPoint(0F, 0F, 0F);
- Body7.setTextureSize(64, 32);
- Body7.mirror = true;
- setRotation(Body7, 0F, 1.570796F, 0F);
- Body8 = new ModelRenderer(this, 0, 0);
- Body8.addBox(-4F, 0F, -3F, 13, 1, 1);
- Body8.setRotationPoint(0F, 0F, 0F);
- Body8.setTextureSize(64, 32);
- Body8.mirror = true;
- setRotation(Body8, 0F, 1.570796F, 0F);
- BBody1 = new ModelRenderer(this, 0, 20);
- BBody1.addBox(-3F, 0F, 4F, 1, 1, 4);
- BBody1.setRotationPoint(0F, 0F, 0F);
- BBody1.setTextureSize(64, 32);
- BBody1.mirror = true;
- setRotation(BBody1, 0F, 0F, 0F);
- BBody2 = new ModelRenderer(this, 0, 20);
- BBody2.addBox(-3F, -1F, 4F, 1, 1, 4);
- BBody2.setRotationPoint(0F, 0F, 0F);
- BBody2.setTextureSize(64, 32);
- BBody2.mirror = true;
- setRotation(BBody2, 0F, 0F, 0F);
- BBody3 = new ModelRenderer(this, 0, 20);
- BBody3.addBox(-2F, 1F, 4F, 1, 1, 4);
- BBody3.setRotationPoint(0F, 0F, 0F);
- BBody3.setTextureSize(64, 32);
- BBody3.mirror = true;
- setRotation(BBody3, 0F, 0F, 0F);
- BBody4 = new ModelRenderer(this, 0, 20);
- BBody4.addBox(-2F, -2F, 4F, 1, 1, 4);
- BBody4.setRotationPoint(0F, 0F, 0F);
- BBody4.setTextureSize(64, 32);
- BBody4.mirror = true;
- setRotation(BBody4, 0F, 0F, 0F);
- BBody5 = new ModelRenderer(this, 0, 20);
- BBody5.addBox(1F, 1F, 4F, 1, 1, 4);
- BBody5.setRotationPoint(0F, 0F, 0F);
- BBody5.setTextureSize(64, 32);
- BBody5.mirror = true;
- setRotation(BBody5, 0F, 0F, 0F);
- BBody6 = new ModelRenderer(this, 0, 20);
- BBody6.addBox(1F, -2F, 4F, 1, 1, 4);
- BBody6.setRotationPoint(0F, 0F, 0F);
- BBody6.setTextureSize(64, 32);
- BBody6.mirror = true;
- setRotation(BBody6, 0F, 0F, 0F);
- BBody7 = new ModelRenderer(this, 0, 20);
- BBody7.addBox(-1F, 2F, 4F, 1, 1, 4);
- BBody7.setRotationPoint(0F, 0F, 0F);
- BBody7.setTextureSize(64, 32);
- BBody7.mirror = true;
- setRotation(BBody7, 0F, 0F, 0F);
- BBody8 = new ModelRenderer(this, 0, 20);
- BBody8.addBox(0F, 2F, 4F, 1, 1, 4);
- BBody8.setRotationPoint(0F, 0F, 0F);
- BBody8.setTextureSize(64, 32);
- BBody8.mirror = true;
- setRotation(BBody8, 0F, 0F, 0F);
- BBody9 = new ModelRenderer(this, 0, 20);
- BBody9.addBox(2F, -1F, 4F, 1, 1, 4);
- BBody9.setRotationPoint(0F, 0F, 0F);
- BBody9.setTextureSize(64, 32);
- BBody9.mirror = true;
- setRotation(BBody9, 0F, 0F, 0F);
- BBody10 = new ModelRenderer(this, 0, 20);
- BBody10.addBox(2F, 0F, 4F, 1, 1, 4);
- BBody10.setRotationPoint(0F, 0F, 0F);
- BBody10.setTextureSize(64, 32);
- BBody10.mirror = true;
- setRotation(BBody10, 0F, 0F, 0F);
- BBody11 = new ModelRenderer(this, 0, 20);
- BBody11.addBox(-1F, -3F, 4F, 1, 1, 4);
- BBody11.setRotationPoint(0F, 0F, 0F);
- BBody11.setTextureSize(64, 32);
- BBody11.mirror = true;
- setRotation(BBody11, 0F, 0F, 0F);
- BBody12 = new ModelRenderer(this, 0, 20);
- BBody12.addBox(0F, -3F, 4F, 1, 1, 4);
- BBody12.setRotationPoint(0F, 0F, 0F);
- BBody12.setTextureSize(64, 32);
- BBody12.mirror = true;
- setRotation(BBody12, 0F, 0F, 0F);
- BBody13 = new ModelRenderer(this, 10, 10);
- BBody13.addBox(-1F, 1F, 8F, 2, 1, 1);
- BBody13.setRotationPoint(0F, 0F, 0F);
- BBody13.setTextureSize(64, 32);
- BBody13.mirror = true;
- setRotation(BBody13, 0F, 0F, 0F);
- BBody14 = new ModelRenderer(this, 10, 10);
- BBody14.addBox(-1F, -2F, 8F, 2, 1, 1);
- BBody14.setRotationPoint(0F, 0F, 0F);
- BBody14.setTextureSize(64, 32);
- BBody14.mirror = true;
- setRotation(BBody14, 0F, 0F, 0F);
- BBody15 = new ModelRenderer(this, 10, 10);
- BBody15.addBox(1F, -1F, 8F, 1, 2, 1);
- BBody15.setRotationPoint(0F, 0F, 0F);
- BBody15.setTextureSize(64, 32);
- BBody15.mirror = true;
- setRotation(BBody15, 0F, 0F, 0F);
- BBody15 = new ModelRenderer(this, 10, 10);
- BBody15.addBox(-2F, -1F, 8F, 1, 2, 1);
- BBody15.setRotationPoint(0F, 0F, 0F);
- BBody15.setTextureSize(64, 32);
- BBody15.mirror = true;
- setRotation(BBody15, 0F, 0F, 0F);
- RSide1 = new ModelRenderer(this, 0, 14);
- RSide1.addBox(-4F, -1F, 4F, 1, 2, 2);
- RSide1.setRotationPoint(0F, 0F, 0F);
- RSide1.setTextureSize(64, 32);
- RSide1.mirror = true;
- setRotation(RSide1, 0F, 0F, 0F);
- RSide2 = new ModelRenderer(this, 0, 20);
- RSide2.addBox(2F, -2F, 4F, 1, 1, 2);
- RSide2.setRotationPoint(0F, 0F, 0F);
- RSide2.setTextureSize(64, 32);
- RSide2.mirror = true;
- setRotation(RSide2, 0F, 0F, 0F);
- RSide3 = new ModelRenderer(this, 0, 20);
- RSide3.addBox(2F, 1F, 4F, 1, 1, 2);
- RSide3.setRotationPoint(0F, 0F, 0F);
- RSide3.setTextureSize(64, 32);
- RSide3.mirror = true;
- setRotation(RSide3, 0F, 0F, 0F);
- LSide1 = new ModelRenderer(this, 0, 10);
- LSide1.addBox(3F, -1F, 4F, 1, 2, 2);
- LSide1.setRotationPoint(0F, 0F, 0F);
- LSide1.setTextureSize(64, 32);
- LSide1.mirror = true;
- setRotation(LSide1, 0F, 0F, 0F);
- LSide2 = new ModelRenderer(this, 0, 20);
- LSide2.addBox(-3F, -2F, 4F, 1, 1, 2);
- LSide2.setRotationPoint(0F, 0F, 0F);
- LSide2.setTextureSize(64, 32);
- LSide2.mirror = true;
- setRotation(LSide2, 0F, 0F, 0F);
- LSide3 = new ModelRenderer(this, 0, 20);
- LSide3.addBox(-3F, 1F, 4F, 1, 1, 2);
- LSide3.setRotationPoint(0F, 0F, 0F);
- LSide3.setTextureSize(64, 32);
- LSide3.mirror = true;
- setRotation(LSide3, 0F, 0F, 0F);
- }
- public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5)
- {
- super.render(entity, f, f1, f2, f3, f4, f5);
- setRotationAngles(f, f1, f2, f3, f4, f5, entity);
- Front1.render(f5);
- Front2.render(f5);
- Front3.render(f5);
- Front4.render(f5);
- Front5.render(f5);
- Front6.render(f5);
- Front7.render(f5);
- Front8.render(f5);
- LFront1.render(f5);
- LFront2.render(f5);
- LFront3.render(f5);
- LFront4.render(f5);
- LFront5.render(f5);
- LFront6.render(f5);
- LFront7.render(f5);
- LFront8.render(f5);
- LFront9.render(f5);
- LFront10.render(f5);
- LFront11.render(f5);
- LFront12.render(f5);
- Body9.render(f5);
- Body9.render(f5);
- Body9.render(f5);
- Body9.render(f5);
- Body9.render(f5);
- Body2.render(f5);
- Body3.render(f5);
- Body4.render(f5);
- Body5.render(f5);
- Body6.render(f5);
- Body7.render(f5);
- Body8.render(f5);
- BBody1.render(f5);
- BBody2.render(f5);
- BBody3.render(f5);
- BBody4.render(f5);
- BBody5.render(f5);
- BBody6.render(f5);
- BBody7.render(f5);
- BBody8.render(f5);
- BBody9.render(f5);
- BBody10.render(f5);
- BBody11.render(f5);
- BBody12.render(f5);
- BBody13.render(f5);
- BBody14.render(f5);
- BBody15.render(f5);
- BBody15.render(f5);
- RSide1.render(f5);
- RSide2.render(f5);
- RSide3.render(f5);
- LSide1.render(f5);
- LSide2.render(f5);
- LSide3.render(f5);
- }
- private void setRotation(ModelRenderer model, float x, float y, float z)
- {
- model.rotateAngleX = x;
- model.rotateAngleY = y;
- model.rotateAngleZ = z;
- }
- public void setRotationAngles(float f, float f1, float f2, float f3, float f4, float f5, Entity ent)
- {
- super.setRotationAngles(f, f1, f2, f3, f4, f5, ent);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement