Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package io.github.dloobyowl.owlessentials.Objects.items.models;
- import net.minecraft.client.model.ModelBiped;
- import net.minecraft.client.model.ModelRenderer;
- import net.minecraft.entity.Entity;
- /**
- * Created using Tabula 7.1.0
- */
- public class ModelMithrill extends ModelBiped {
- public ModelRenderer helmet;
- public ModelRenderer chestplate;
- public ModelRenderer leftarm;
- public ModelRenderer rightarm;
- public ModelRenderer base_fin_sx;
- public ModelRenderer base_fin_dx;
- public ModelRenderer mid_fin_sx;
- public ModelRenderer end_fin_sx;
- public ModelRenderer mid_fin_dx;
- public ModelRenderer end_fin_dx;
- public ModelRenderer shoulder_base_sx;
- public ModelRenderer Shoulderbase_End_sx;
- public ModelRenderer shoulderbase_front_sx;
- public ModelRenderer shoulderback_sx;
- public ModelRenderer shoulderfront_end_sx;
- public ModelRenderer shoulderendback_sx;
- public ModelMithrill() {
- this.textureWidth = 128;
- this.textureHeight = 128;
- this.end_fin_sx = new ModelRenderer(this, 105, 16);
- this.end_fin_sx.setRotationPoint(1.0F, 2.0F, 0.0F);
- this.end_fin_sx.addBox(-4.0F, -8.0F, -4.0F, 1, 5, 2, 0.0F);
- this.mid_fin_dx = new ModelRenderer(this, 97, 16);
- this.mid_fin_dx.mirror = true;
- this.mid_fin_dx.setRotationPoint(-1.0F, 1.0F, 0.0F);
- this.mid_fin_dx.addBox(-4.0F, -8.0F, -4.0F, 1, 9, 2, 0.0F);
- this.shoulderback_sx = new ModelRenderer(this, 60, 65);
- this.shoulderback_sx.setRotationPoint(0.0F, 0.85F, 4.15F);
- this.shoulderback_sx.addBox(-1.0F, -2.0F, -2.0F, 3, 1, 3, 0.0F);
- this.setRotateAngle(shoulderback_sx, -0.7330382858376184F, 0.0F, 0.0F);
- this.chestplate = new ModelRenderer(this, 100, 32);
- this.chestplate.setRotationPoint(0.0F, 0.0F, 0.0F);
- this.chestplate.addBox(-4.0F, 0.0F, -2.0F, 8, 12, 4, 0.5F);
- this.shoulderendback_sx = new ModelRenderer(this, 60, 60);
- this.shoulderendback_sx.setRotationPoint(3.0F, 0.0F, 0.0F);
- this.shoulderendback_sx.addBox(-1.0F, -2.0F, -2.0F, 2, 1, 2, 0.0F);
- this.shoulderbase_front_sx = new ModelRenderer(this, 60, 52);
- this.shoulderbase_front_sx.setRotationPoint(0.0F, 0.85F, -2.15F);
- this.shoulderbase_front_sx.addBox(-1.0F, -2.0F, -1.0F, 3, 1, 3, 0.0F);
- this.setRotateAngle(shoulderbase_front_sx, 0.7330382858376184F, 0.0F, 0.0F);
- this.base_fin_dx = new ModelRenderer(this, 90, 16);
- this.base_fin_dx.mirror = true;
- this.base_fin_dx.setRotationPoint(0.1F, -5.0F, 5.0F);
- this.base_fin_dx.addBox(-4.0F, -8.0F, -4.0F, 1, 11, 2, 0.0F);
- this.setRotateAngle(base_fin_dx, 0.0F, 0.5777039824101231F, 0.0F);
- this.shoulder_base_sx = new ModelRenderer(this, 75, 58);
- this.shoulder_base_sx.setRotationPoint(-0.6F, -1.5F, -1.0F);
- this.shoulder_base_sx.addBox(-1.0F, -2.0F, -2.0F, 6, 1, 6, 0.0F);
- this.setRotateAngle(shoulder_base_sx, 0.0F, 0.0F, 0.2181661564992912F);
- this.shoulderfront_end_sx = new ModelRenderer(this, 60, 46);
- this.shoulderfront_end_sx.setRotationPoint(3.0F, 0.0F, 2.0F);
- this.shoulderfront_end_sx.addBox(-1.0F, -2.0F, -2.0F, 2, 1, 2, 0.0F);
- this.base_fin_sx = new ModelRenderer(this, 90, 16);
- this.base_fin_sx.setRotationPoint(5.8F, -5.0F, 8.85F);
- this.base_fin_sx.addBox(-4.0F, -8.0F, -4.0F, 1, 11, 2, 0.0F);
- this.setRotateAngle(base_fin_sx, 0.0F, -0.5777039824101231F, 0.0F);
- this.Shoulderbase_End_sx = new ModelRenderer(this, 75, 68);
- this.Shoulderbase_End_sx.setRotationPoint(6.0F, 0.0F, 1.0F);
- this.Shoulderbase_End_sx.addBox(-1.0F, -2.0F, -2.0F, 1, 1, 4, 0.0F);
- this.helmet = new ModelRenderer(this, 90, 0);
- this.helmet.setRotationPoint(0.0F, 0.0F, 0.0F);
- this.helmet.addBox(-4.0F, -8.0F, -4.0F, 8, 8, 8, 0.5F);
- this.end_fin_dx = new ModelRenderer(this, 105, 16);
- this.end_fin_dx.mirror = true;
- this.end_fin_dx.setRotationPoint(-1.0F, 2.0F, 0.0F);
- this.end_fin_dx.addBox(-4.0F, -8.0F, -4.0F, 1, 5, 2, 0.0F);
- this.rightarm = new ModelRenderer(this, 80, 48);
- this.rightarm.setRotationPoint(-5.5F, 2.0F, 0.0F);
- this.rightarm.addBox(-3.0F, -2.0F, -2.0F, 4, 5, 4, 0.5F);
- this.leftarm = new ModelRenderer(this, 80, 32);
- this.leftarm.setRotationPoint(5.5F, 2.0F, 0.0F);
- this.leftarm.addBox(-1.0F, -2.0F, -2.0F, 4, 5, 4, 0.5F);
- this.mid_fin_sx = new ModelRenderer(this, 97, 16);
- this.mid_fin_sx.setRotationPoint(1.0F, 1.0F, 0.0F);
- this.mid_fin_sx.addBox(-4.0F, -8.0F, -4.0F, 1, 9, 2, 0.0F);
- this.mid_fin_sx.addChild(this.end_fin_sx);
- this.base_fin_dx.addChild(this.mid_fin_dx);
- this.shoulder_base_sx.addChild(this.shoulderback_sx);
- this.shoulderback_sx.addChild(this.shoulderendback_sx);
- this.shoulder_base_sx.addChild(this.shoulderbase_front_sx);
- this.helmet.addChild(this.base_fin_dx);
- this.leftarm.addChild(this.shoulder_base_sx);
- this.shoulderbase_front_sx.addChild(this.shoulderfront_end_sx);
- this.helmet.addChild(this.base_fin_sx);
- this.shoulder_base_sx.addChild(this.Shoulderbase_End_sx);
- this.mid_fin_dx.addChild(this.end_fin_dx);
- this.base_fin_sx.addChild(this.mid_fin_sx);
- this.bipedHead.addChild(helmet);
- this.bipedBody.addChild(chestplate);
- this.bipedRightArm.addChild(rightarm);
- this.bipedLeftArm.addChild(leftarm);
- //this.bipedLeftLeg.addChild(leftleg)
- //this.bipedRightLeg.addChild(rightleg)
- }
- @Override
- 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);
- //this.helmet.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