Guest User

Tier2OnyxArmorModel

a guest
Jul 7th, 2020
100
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.chaoticsoul.evolate.objects.armor;
  2.  
  3. import com.google.common.collect.ImmutableList;
  4. import com.mojang.blaze3d.matrix.MatrixStack;
  5. import com.mojang.blaze3d.vertex.IVertexBuilder;
  6.  
  7. import net.minecraft.client.renderer.entity.BipedRenderer;
  8. import net.minecraft.client.renderer.entity.model.BipedModel;
  9. import net.minecraft.client.renderer.model.ModelRenderer;
  10. import net.minecraft.entity.LivingEntity;
  11. import net.minecraftforge.api.distmarker.Dist;
  12. import net.minecraftforge.api.distmarker.OnlyIn;
  13.  
  14. /**
  15.  * PlayerModel - Either Mojang or a mod author (Taken From Memory)
  16.  * Created using Tabula 8.0.0
  17.  */
  18. @OnlyIn(Dist.CLIENT)
  19. public class Tier2OnyxArmorModel extends BipedModel {
  20.     public ModelRenderer RightSleeve;
  21.     public ModelRenderer RightLegging;
  22.     public ModelRenderer RightBoot;
  23.     public ModelRenderer Helmet;
  24.     public ModelRenderer Chestplate;
  25.     public ModelRenderer LeftSleeve;
  26.     public ModelRenderer LeftLegging;
  27.     public ModelRenderer LeftBoot;
  28.     public ModelRenderer LeftHorn;
  29.  
  30.     public Tier2OnyxArmorModel(float modelSize) {
  31.         super(modelSize);
  32.         this.textureWidth = 128;
  33.         this.textureHeight = 128;
  34.         this.LeftBoot = new ModelRenderer(this, 0, 13);
  35.         this.LeftBoot.setRotationPoint(0.0F, 0.0F, 0.0F);
  36.         this.LeftBoot.setTextureOffset(82, 27).addBox(-3.0F, 8.0F, -3.0F, 1.0F, 4.0F, 6.0F, 0.0F, 0.0F, 0.0F);
  37.         this.LeftBoot.setTextureOffset(104, 31).addBox(-2.0F, 8.0F, 2.0F, 4.0F, 4.0F, 1.0F, 0.0F, 0.0F, 0.0F);
  38.         this.LeftBoot.setTextureOffset(104, 31).addBox(-2.0F, 8.0F, -3.0F, 4.0F, 4.0F, 1.0F, 0.0F, 0.0F, 0.0F);
  39.         this.LeftBoot.setTextureOffset(82, 27).addBox(2.0F, 8.0F, -3.0F, 1.0F, 4.0F, 6.0F, 0.0F, 0.0F, 0.0F);
  40.         this.LeftBoot.setTextureOffset(4, 36).addBox(-2.0F, 11.0F, -2.0F, 4.0F, 1.0F, 4.0F, 0.0F, 0.0F, 0.0F);
  41.         this.setRotateAngle(LeftBoot, 0.0F, 3.141592653589793F, 0.0F);
  42.         this.RightLegging = new ModelRenderer(this, 0, 32);
  43.         this.RightLegging.setRotationPoint(0.0F, 0.0F, 0.0F);
  44.         this.RightLegging.setTextureOffset(79, 35).addBox(-3.0F, 0.0F, -3.0F, 1.0F, 8.0F, 6.0F, 0.0F, 0.0F, 0.0F);
  45.         this.RightLegging.setTextureOffset(110, 35).addBox(-2.0F, 0.0F, -3.0F, 4.0F, 8.0F, 1.0F, 0.0F, 0.0F, 0.0F);
  46.         this.RightLegging.setTextureOffset(110, 35).addBox(-2.0F, 0.0F, 2.0F, 4.0F, 8.0F, 1.0F, 0.0F, 0.0F, 0.0F);
  47.         this.RightLegging.setTextureOffset(79, 35).addBox(2.0F, 0.0F, -3.0F, 1.0F, 8.0F, 6.0F, 0.0F, 0.0F, 0.0F);
  48.         this.LeftSleeve = new ModelRenderer(this, 48, 19);
  49.         this.LeftSleeve.setRotationPoint(0.0F, 0.0F, 0.0F);
  50.         this.LeftSleeve.setTextureOffset(35, 65).addBox(-3.0F, -2.0F, -3.0F, 4.0F, 13.0F, 1.0F, 0.0F, 0.0F, 0.0F);
  51.         this.LeftSleeve.setTextureOffset(35, 65).addBox(-3.0F, -2.0F, 2.0F, 4.0F, 13.0F, 1.0F, 0.0F, 0.0F, 0.0F);
  52.         this.LeftSleeve.setTextureOffset(57, 65).addBox(-4.0F, -2.0F, -3.0F, 1.0F, 13.0F, 6.0F, 0.0F, 0.0F, 0.0F);
  53.         this.LeftSleeve.setTextureOffset(57, 65).addBox(1.0F, -2.0F, -3.0F, 1.0F, 13.0F, 6.0F, 0.0F, 0.0F, 0.0F);
  54.         this.LeftSleeve.setTextureOffset(30, 80).addBox(-3.0F, 10.0F, -2.0F, 4.0F, 1.0F, 4.0F, 0.0F, 0.0F, 0.0F);
  55.         this.setRotateAngle(LeftSleeve, 0.0F, 3.141592653589793F, 0.0F);
  56.         this.Chestplate = new ModelRenderer(this, 44, 9);
  57.         this.Chestplate.setRotationPoint(0.0F, 0.0F, 0.0F);
  58.         this.Chestplate.setTextureOffset(-20, 50).addBox(-11.0F, -1.0F, -4.0F, 6.0F, 1.0F, 8.0F, 0.0F, 0.0F, 0.0F);
  59.         this.Chestplate.setTextureOffset(-20, 70).addBox(5.0F, -1.0F, -4.0F, 6.0F, 1.0F, 8.0F, 0.0F, 0.0F, 0.0F);
  60.         this.Chestplate.setTextureOffset(-40, 50).addBox(-4.0F, 0.0F, -3.0F, 1.0F, 13.0F, 6.0F, 0.0F, 0.0F, 0.0F);
  61.         this.Chestplate.setTextureOffset(-40, 80).addBox(-3.0F, 0.0F, -3.0F, 6.0F, 13.0F, 1.0F, 0.0F, 0.0F, 0.0F);
  62.         this.Chestplate.setTextureOffset(-40, 80).addBox(-3.0F, 0.0F, 2.0F, 6.0F, 13.0F, 1.0F, 0.0F, 0.0F, 0.0F);
  63.         this.Chestplate.setTextureOffset(-40, 50).addBox(3.0F, 0.0F, -3.0F, 1.0F, 13.0F, 6.0F, 0.0F, 0.0F, 0.0F);
  64.         this.RightSleeve = new ModelRenderer(this, 0, 19);
  65.         this.RightSleeve.setRotationPoint(0.0F, 0.0F, 0.0F);
  66.         this.RightSleeve.setTextureOffset(83, 65).addBox(-3.0F, -2.0F, -3.0F, 4.0F, 13.0F, 1.0F, 0.0F, 0.0F, 0.0F);
  67.         this.RightSleeve.setTextureOffset(83, 65).addBox(-3.0F, -2.0F, 2.0F, 4.0F, 13.0F, 1.0F, 0.0F, 0.0F, 0.0F);
  68.         this.RightSleeve.setTextureOffset(57, 65).addBox(1.0F, -2.0F, -3.0F, 1.0F, 13.0F, 6.0F, 0.0F, 0.0F, 0.0F);
  69.         this.RightSleeve.setTextureOffset(57, 65).addBox(-4.0F, -2.0F, -3.0F, 1.0F, 13.0F, 6.0F, 0.0F, 0.0F, 0.0F);
  70.         this.RightSleeve.setTextureOffset(30, 80).addBox(-3.0F, 10.0F, -2.0F, 4.0F, 1.0F, 4.0F, 0.0F, 0.0F, 0.0F);
  71.         this.LeftHorn = new ModelRenderer(this, 34, 4);
  72.         this.LeftHorn.setRotationPoint(10.0F, 0.0F, 5.0F);
  73.         this.LeftHorn.setTextureOffset(80, 115).addBox(-2.0F, -1.0F, 1.0F, 1.0F, 1.0F, 3.0F, 0.0F, 0.0F, 0.0F);
  74.         this.LeftHorn.setTextureOffset(80, 115).addBox(-4.0F, -1.0F, 1.0F, 1.0F, 5.0F, 3.0F, 0.0F, 0.0F, 0.0F);
  75.         this.LeftHorn.setTextureOffset(80, 115).addBox(-3.0F, 3.0F, 1.0F, 3.0F, 2.0F, 3.0F, 0.0F, 0.0F, 0.0F);
  76.         this.LeftHorn.setTextureOffset(80, 115).addBox(-3.0F, -1.0F, 1.0F, 1.0F, 4.0F, 3.0F, 0.0F, 0.0F, 0.0F);
  77.         this.LeftHorn.setTextureOffset(80, 115).addBox(-2.0F, 2.0F, 1.0F, 1.0F, 1.0F, 3.0F, 0.0F, 0.0F, 0.0F);
  78.         this.LeftHorn.setTextureOffset(80, 115).addBox(-3.0F, -2.0F, 1.0F, 3.0F, 1.0F, 3.0F, 0.0F, 0.0F, 0.0F);
  79.         this.LeftHorn.setTextureOffset(80, 115).addBox(-2.0F, -3.0F, 1.0F, 3.0F, 1.0F, 3.0F, 0.0F, 0.0F, 0.0F);
  80.         this.LeftHorn.setTextureOffset(-16, 115).addBox(1.0F, 8.0F, -4.0F, 8.0F, 1.0F, 1.0F, 0.0F, 0.0F, 0.0F);
  81.         this.setRotateAngle(LeftHorn, 0.0F, 3.141592653589793F, 0.0F);
  82.         this.RightBoot = new ModelRenderer(this, 64, 9);
  83.         this.RightBoot.setRotationPoint(0.0F, 0.0F, 0.0F);
  84.         this.RightBoot.setTextureOffset(18, 31).addBox(-3.0F, 8.0F, -3.0F, 1.0F, 4.0F, 6.0F, 0.0F, 0.0F, 0.0F);
  85.         this.RightBoot.setTextureOffset(40, 35).addBox(-2.0F, 8.0F, 2.0F, 4.0F, 4.0F, 1.0F, 0.0F, 0.0F, 0.0F);
  86.         this.RightBoot.setTextureOffset(40, 35).addBox(-2.0F, 8.0F, -3.0F, 4.0F, 4.0F, 1.0F, 0.0F, 0.0F, 0.0F);
  87.         this.RightBoot.setTextureOffset(18, 31).addBox(2.0F, 8.0F, -3.0F, 1.0F, 4.0F, 6.0F, 0.0F, 0.0F, 0.0F);
  88.         this.RightBoot.setTextureOffset(-60, 40).addBox(-2.0F, 11.0F, -2.0F, 4.0F, 1.0F, 4.0F, 0.0F, 0.0F, 0.0F);
  89.         this.LeftLegging = new ModelRenderer(this, 14, 32);
  90.         this.LeftLegging.setRotationPoint(0.0F, 0.0F, 0.0F);
  91.         this.LeftLegging.setTextureOffset(65, 35).addBox(-3.0F, 0.0F, -3.0F, 1.0F, 8.0F, 6.0F, 0.0F, 0.0F, 0.0F);
  92.         this.LeftLegging.setTextureOffset(96, 35).addBox(-2.0F, 0.0F, -3.0F, 4.0F, 8.0F, 1.0F, 0.0F, 0.0F, 0.0F);
  93.         this.LeftLegging.setTextureOffset(96, 35).addBox(-2.0F, 0.0F, 2.0F, 4.0F, 8.0F, 1.0F, 0.0F, 0.0F, 0.0F);
  94.         this.LeftLegging.setTextureOffset(65, 35).addBox(2.0F, 0.0F, -3.0F, 1.0F, 8.0F, 6.0F, 0.0F, 0.0F, 0.0F);
  95.         this.setRotateAngle(LeftLegging, 0.0F, 3.141592653589793F, 0.0F);
  96.         this.Helmet = new ModelRenderer(this, 0, 0);
  97.         this.Helmet.setRotationPoint(-5.0F, -9.0F, -5.0F);
  98.         this.Helmet.setTextureOffset(48, 108).addBox(0.0F, 0.0F, 0.0F, 1.0F, 9.0F, 10.0F, 0.0F, 0.0F, 0.0F);
  99.         this.Helmet.setTextureOffset(48, 108).addBox(9.0F, 0.0F, 0.0F, 1.0F, 9.0F, 10.0F, 0.0F, 0.0F, 0.0F);
  100.         this.Helmet.setTextureOffset(18, 115).addBox(1.0F, 0.0F, 9.0F, 8.0F, 9.0F, 1.0F, 0.0F, 0.0F, 0.0F);
  101.         this.Helmet.setTextureOffset(75, 115).addBox(1.0F, 0.0F, 0.0F, 8.0F, 1.0F, 9.0F, 0.0F, 0.0F, 0.0F);
  102.         this.Helmet.setTextureOffset(40, 117).addBox(1.0F, 1.0F, 0.0F, 1.0F, 8.0F, 1.0F, 0.0F, 0.0F, 0.0F);
  103.         this.Helmet.setTextureOffset(115, 120).addBox(-2.0F, -1.0F, 1.0F, 1.0F, 1.0F, 3.0F, 0.0F, 0.0F, 0.0F);
  104.         this.Helmet.setTextureOffset(40, 117).addBox(8.0F, 1.0F, 0.0F, 1.0F, 8.0F, 1.0F, 0.0F, 0.0F, 0.0F);
  105.         this.Helmet.setTextureOffset(75, 117).addBox(7.0F, 8.0F, 0.0F, 1.0F, 1.0F, 1.0F, 0.0F, 0.0F, 0.0F);
  106.         this.Helmet.setTextureOffset(75, 117).addBox(2.0F, 8.0F, 0.0F, 1.0F, 1.0F, 1.0F, 0.0F, 0.0F, 0.0F);
  107.         this.Helmet.setTextureOffset(63, 110).addBox(2.0F, 1.0F, 0.0F, 6.0F, 2.0F, 1.0F, 0.0F, 0.0F, 0.0F);
  108.         this.Helmet.setTextureOffset(115, 115).addBox(-4.0F, -1.0F, 1.0F, 1.0F, 5.0F, 3.0F, 0.0F, 0.0F, 0.0F);
  109.         this.Helmet.setTextureOffset(75, 117).addBox(2.0F, 3.0F, 0.0F, 1.0F, 1.0F, 1.0F, 0.0F, 0.0F, 0.0F);
  110.         this.Helmet.setTextureOffset(75, 117).addBox(7.0F, 3.0F, 0.0F, 1.0F, 1.0F, 1.0F, 0.0F, 0.0F, 0.0F);
  111.         this.Helmet.setTextureOffset(115, 120).addBox(-3.0F, 3.0F, 1.0F, 3.0F, 2.0F, 3.0F, 0.0F, 0.0F, 0.0F);
  112.         this.Helmet.setTextureOffset(115, 120).addBox(-3.0F, -1.0F, 1.0F, 1.0F, 4.0F, 3.0F, 0.0F, 0.0F, 0.0F);
  113.         this.Helmet.setTextureOffset(115, 120).addBox(-2.0F, 2.0F, 1.0F, 1.0F, 1.0F, 3.0F, 0.0F, 0.0F, 0.0F);
  114.         this.Helmet.setTextureOffset(115, 120).addBox(-3.0F, -2.0F, 1.0F, 3.0F, 1.0F, 3.0F, 0.0F, 0.0F, 0.0F);
  115.         this.Helmet.setTextureOffset(115, 120).addBox(-2.0F, -3.0F, 1.0F, 3.0F, 1.0F, 3.0F, 0.0F, 0.0F, 0.0F);
  116.         this.Helmet.addBox(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F, 0.0F, 0.0F, 0.0F);
  117.         this.Helmet.addChild(this.LeftHorn);
  118.        
  119.         this.bipedHead.addChild(Helmet);
  120.         this.bipedBody.addChild(Chestplate);
  121.         this.bipedLeftArm.addChild(LeftSleeve);
  122.         this.bipedRightArm.addChild(RightSleeve);
  123.         this.bipedRightLeg.addChild(RightLegging);
  124.         this.bipedLeftLeg.addChild(LeftLegging);
  125.         this.bipedRightLeg.addChild(RightBoot);
  126.         this.bipedLeftLeg.addChild(LeftBoot);
  127.        
  128.        
  129.     }
  130.  
  131.     @Override
  132.     public void render(MatrixStack matrixStackIn, IVertexBuilder bufferIn, int packedLightIn, int packedOverlayIn, float red, float green, float blue, float alpha) {
  133.         super.render(matrixStackIn, bufferIn, packedLightIn, packedOverlayIn, red, green, blue, alpha);
  134.     }
  135.  
  136.     @SuppressWarnings("unchecked")
  137.     @Override
  138.     public void setRotationAngles(LivingEntity entityIn, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch) {
  139.         super.setRotationAngles(entityIn, limbSwing, limbSwingAmount, ageInTicks, netHeadYaw, headPitch);
  140.         this.Helmet.copyModelAngles(this.bipedHead);
  141.         this.Chestplate.copyModelAngles(this.bipedBody);
  142.         this.LeftSleeve.copyModelAngles(this.bipedLeftArm);
  143.         this.RightSleeve.copyModelAngles(this.bipedRightArm);
  144.         this.LeftLegging.copyModelAngles(this.bipedLeftLeg);
  145.         this.RightLegging.copyModelAngles(this.bipedRightLeg);
  146.         this.LeftBoot.copyModelAngles(this.bipedLeftLeg);
  147.         this.RightBoot.copyModelAngles(this.bipedRightLeg);
  148.     }
  149.  
  150.     /**
  151.      * This is a helper function from Tabula to set the rotation of model parts
  152.      */
  153.     public void setRotateAngle(ModelRenderer modelRenderer, float x, float y, float z) {
  154.         modelRenderer.rotateAngleX = x;
  155.         modelRenderer.rotateAngleY = y;
  156.         modelRenderer.rotateAngleZ = z;
  157.     }
  158.    
  159.    
  160. }
RAW Paste Data