Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.mod.topazmod.models;
- import net.minecraft.client.model.ModelBiped;
- import net.minecraft.client.model.ModelRenderer;
- import net.minecraft.entity.Entity;
- public class ArmorTopaze extends ModelBiped
- {
- ModelRenderer body;
- ModelRenderer rightarm;
- ModelRenderer leftarm;
- ModelRenderer rightleg;
- ModelRenderer leftleg;
- ModelRenderer Shape1;
- ModelRenderer Shape2;
- ModelRenderer Shape2le2;
- ModelRenderer Shape3;
- ModelRenderer Shape4;
- ModelRenderer Shape5;
- ModelRenderer Shape6;
- ModelRenderer Shape7;
- ModelRenderer Shape8;
- ModelRenderer Shape9;
- ModelRenderer Shape10;
- ModelRenderer Shape11;
- ModelRenderer Shape12;
- ModelRenderer Shape122;
- ModelRenderer Shape13;
- ModelRenderer Shape132;
- ModelRenderer Shape14;
- ModelRenderer Shape142;
- ModelRenderer Shape15;
- ModelRenderer Shape152;
- ModelRenderer Shape16;
- ModelRenderer Shape162;
- public ArmorTopaze(float expand) {
- super(expand, 0, 128, 128);
- Shape1 = new ModelRenderer(this, 88, 0);
- Shape1.addBox(0F, 0F, 0F, 10, 1, 10);
- Shape1.setRotationPoint(-5F, 0F, -5F);
- Shape1.setTextureSize(128, 128);
- Shape1.mirror = true;
- setRotation(Shape1, 0F, 0F, 0F);
- Shape2 = new ModelRenderer(this, 66, 0);
- Shape2.addBox(0F, 0F, 0F, 1, 9, 10);
- Shape2.setRotationPoint(4F, -9F, -5F);
- Shape2.setTextureSize(128, 128);
- Shape2.mirror = true;
- setRotation(Shape2, 0F, 0F, 0F);
- Shape2le2 = new ModelRenderer(this, 106, 11);
- Shape2le2.addBox(0F, 0F, 0F, 1, 9, 10);
- Shape2le2.setRotationPoint(-5F, -9F, -5F);
- Shape2le2.setTextureSize(128, 128);
- Shape2le2.mirror = true;
- setRotation(Shape2le2, 0F, 0F, 0F);
- Shape3 = new ModelRenderer(this, 88, 11);
- Shape3.addBox(0F, 0F, 0F, 8, 9, 1);
- Shape3.setRotationPoint(-4F, -9F, 4F);
- Shape3.setTextureSize(128, 128);
- Shape3.mirror = true;
- setRotation(Shape3, 0F, 0F, 0F);
- Shape4 = new ModelRenderer(this, 32, 0);
- Shape4.addBox(0F, 0F, 0F, 8, 1, 9);
- Shape4.setRotationPoint(-4F, -9F, -5F);
- Shape4.setTextureSize(128, 128);
- Shape4.mirror = true;
- setRotation(Shape4, 0F, 0F, 0F);
- Shape5 = new ModelRenderer(this, 34, 10);
- Shape5.addBox(0F, 0F, 0F, 8, 2, 1);
- Shape5.setRotationPoint(-4F, -8F, -5F);
- Shape5.setTextureSize(128, 128);
- Shape5.mirror = true;
- setRotation(Shape5, 0F, 0F, 0F);
- Shape6 = new ModelRenderer(this, 60, 10);
- Shape6.addBox(0F, 0F, 0F, 2, 2, 1);
- Shape6.setRotationPoint(-1F, -6F, -5F);
- Shape6.setTextureSize(128, 128);
- Shape6.mirror = true;
- setRotation(Shape6, 0F, 0F, 0F);
- Shape7 = new ModelRenderer(this, 56, 10);
- Shape7.addBox(0F, 0F, 0F, 0, 2, 2);
- Shape7.setRotationPoint(0F, -10F, 4F);
- Shape7.setTextureSize(128, 128);
- Shape7.mirror = true;
- setRotation(Shape7, 0F, 0F, 0F);
- Shape8 = new ModelRenderer(this, 54, 10);
- Shape8.addBox(0F, 0F, 0F, 0, 1, 1);
- Shape8.setRotationPoint(0F, -10F, 1F);
- Shape8.setTextureSize(128, 128);
- Shape8.mirror = true;
- setRotation(Shape8, 0F, 0F, 0F);
- Shape9 = new ModelRenderer(this, 52, 10);
- Shape9.addBox(0F, 0F, 0F, 0, 1, 1);
- Shape9.setRotationPoint(0F, -6F, 5F);
- Shape9.setTextureSize(128, 128);
- Shape9.mirror = true;
- setRotation(Shape9, 0F, 0F, 0F);
- Shape10 = new ModelRenderer(this, 4, 0);
- Shape10.addBox(0F, 0F, 0F, 2, 3, 7);
- Shape10.setRotationPoint(-1F, -13F, 0F);
- Shape10.setTextureSize(128, 128);
- Shape10.mirror = true;
- setRotation(Shape10, 0F, 0F, 0F);
- Shape11 = new ModelRenderer(this, 22, 0);
- Shape11.addBox(0F, 0F, 0F, 2, 7, 3);
- Shape11.setRotationPoint(-1F, -11F, 6F);
- Shape11.setTextureSize(128, 128);
- Shape11.mirror = true;
- setRotation(Shape11, 0F, 0F, 0F);
- Shape12 = new ModelRenderer(this, 24, 61);
- Shape12.addBox(0F, 0F, 0F, 4, 1, 4);
- Shape12.setRotationPoint(4F, 10F, -2F);
- Shape12.setTextureSize(128, 128);
- Shape12.mirror = true;
- setRotation(Shape12, 0F, 0F, 0F);
- Shape122 = new ModelRenderer(this, 24, 56);
- Shape122.addBox(0F, 0F, 0F, 4, 1, 4);
- Shape122.setRotationPoint(-8F, 10F, -2F);
- Shape122.setTextureSize(128, 128);
- Shape122.mirror = true;
- setRotation(Shape122, 0F, 0F, 0F);
- Shape13 = new ModelRenderer(this, 0, 56);
- Shape13.addBox(0F, 0F, 0F, 6, 1, 6);
- Shape13.setRotationPoint(3F, 11F, -3F);
- Shape13.setTextureSize(128, 128);
- Shape13.mirror = true;
- setRotation(Shape13, 0F, 0F, 0F);
- Shape132 = new ModelRenderer(this, 0, 63);
- Shape132.addBox(0F, 0F, 0F, 6, 1, 6);
- Shape132.setRotationPoint(-9F, 11F, -3F);
- Shape132.setTextureSize(128, 128);
- Shape132.mirror = true;
- setRotation(Shape132, 0F, 0F, 0F);
- Shape14 = new ModelRenderer(this, 0, 70);
- Shape14.addBox(0F, 0F, 0F, 4, 8, 4);
- Shape14.setRotationPoint(0F, 12F, -2F);
- Shape14.setTextureSize(128, 128);
- Shape14.mirror = true;
- setRotation(Shape14, 0F, 0F, 0F);
- Shape142 = new ModelRenderer(this, 0, 82);
- Shape142.addBox(0F, 0F, 0F, 4, 8, 4);
- Shape142.setRotationPoint(-4F, 12F, -2F);
- Shape142.setTextureSize(128, 128);
- Shape142.mirror = true;
- setRotation(Shape142, 0F, 0F, 0F);
- Shape15 = new ModelRenderer(this, 0, 94);
- Shape15.addBox(0F, 0F, 0F, 1, 6, 4);
- Shape15.setRotationPoint(4F, 12F, -2F);
- Shape15.setTextureSize(128, 128);
- Shape15.mirror = true;
- setRotation(Shape15, 0F, 0F, 0F);
- Shape152 = new ModelRenderer(this, 0, 104);
- Shape152.addBox(0F, 0F, 0F, 1, 6, 4);
- Shape152.setRotationPoint(-5F, 12F, -2F);
- Shape152.setTextureSize(128, 128);
- Shape152.mirror = true;
- setRotation(Shape152, 0F, 0F, 0F);
- Shape16 = new ModelRenderer(this, 0, 114);
- Shape16.addBox(0F, 0F, 0F, 4, 6, 1);
- Shape16.setRotationPoint(0F, 14F, -3F);
- Shape16.setTextureSize(128, 128);
- Shape16.mirror = true;
- setRotation(Shape16, 0F, 0F, 0F);
- Shape162 = new ModelRenderer(this, 0, 121);
- Shape162.addBox(0F, 0F, 0F, 4, 6, 1);
- Shape162.setRotationPoint(-4F, 14F, -3F);
- Shape162.setTextureSize(128, 128);
- Shape162.mirror = true;
- setRotation(Shape162, 0F, 0F, 0F);
- body = new ModelRenderer(this, 0, 34);
- body.addBox(-4F, 0F, -2F, 10, 12, 6);
- body.setRotationPoint(-1F, 0F, -1F);
- body.setTextureSize(128, 128);
- body.mirror = true;
- setRotation(body, 0F, 0F, 0F);
- rightarm = new ModelRenderer(this, 40, 33);
- rightarm.addBox(-3F, -2F, -2F, 6, 11, 6);
- rightarm.setRotationPoint(-6F, 1F, -1F);
- rightarm.setTextureSize(128, 128);
- rightarm.mirror = true;
- setRotation(rightarm, 0F, 0F, 0F);
- leftarm = new ModelRenderer(this, 40, 16);
- leftarm.addBox(-1F, -2F, -2F, 6, 11, 6);
- leftarm.setRotationPoint(4F, 1F, -1F);
- leftarm.setTextureSize(128, 128);
- leftarm.mirror = true;
- setRotation(leftarm, 0F, 0F, 0F);
- rightleg = new ModelRenderer(this, 0, 16);
- rightleg.addBox(-2F, 0F, -2F, 5, 4, 6);
- rightleg.setRotationPoint(-3F, 20F, -1F);
- rightleg.setTextureSize(128, 128);
- rightleg.mirror = true;
- setRotation(rightleg, 0F, 0F, 0F);
- leftleg = new ModelRenderer(this, 0, 16);
- leftleg.addBox(-2F, 0F, -2F, 5, 4, 6);
- leftleg.setRotationPoint(2F, 20F, -1F);
- leftleg.setTextureSize(128, 128);
- leftleg.mirror = true;
- setRotation(leftleg, 0F, 0F, 0F);
- this.bipedHead.addChild(Shape1);
- this.bipedHead.addChild(Shape2);
- this.bipedHead.addChild(Shape2le2);
- this.bipedHead.addChild(Shape3);
- this.bipedHead.addChild(Shape4);
- this.bipedHead.addChild(Shape5);
- this.bipedHead.addChild(Shape6);
- this.bipedHead.addChild(Shape7);
- this.bipedHead.addChild(Shape8);
- this.bipedHead.addChild(Shape9);
- this.bipedHead.addChild(Shape10);
- this.bipedHead.addChild(Shape11);
- this.bipedRightArm.addChild(Shape122);
- this.bipedRightArm.addChild(Shape132);
- this.bipedRightArm.addChild(rightarm);
- this.bipedLeftArm.addChild(Shape12);
- this.bipedLeftArm.addChild(Shape13);
- this.bipedLeftArm.addChild(leftarm);
- this.bipedRightLeg.addChild(rightleg);
- this.bipedRightLeg.addChild(Shape142);
- this.bipedRightLeg.addChild(Shape152);
- this.bipedRightLeg.addChild(Shape162);
- this.bipedLeftLeg.addChild(leftleg);
- this.bipedLeftLeg.addChild(Shape14);
- this.bipedLeftLeg.addChild(Shape15);
- this.bipedLeftLeg.addChild(Shape16);
- this.bipedBody.addChild(body);
- }
- 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);
- }
- 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 entity)
- {
- super.setRotationAngles(f, f1, f2, f3, f4, f5, entity);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement