Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.chaoticsoul.evolate.objects.armor;
- import com.google.common.collect.ImmutableList;
- import com.mojang.blaze3d.matrix.MatrixStack;
- import com.mojang.blaze3d.vertex.IVertexBuilder;
- import net.minecraft.client.renderer.entity.BipedRenderer;
- import net.minecraft.client.renderer.entity.model.BipedModel;
- import net.minecraft.client.renderer.model.ModelRenderer;
- import net.minecraft.entity.LivingEntity;
- import net.minecraftforge.api.distmarker.Dist;
- import net.minecraftforge.api.distmarker.OnlyIn;
- /**
- * PlayerModel - Either Mojang or a mod author (Taken From Memory)
- * Created using Tabula 8.0.0
- */
- @OnlyIn(Dist.CLIENT)
- public class Tier2OnyxArmorModel extends BipedModel {
- public ModelRenderer RightSleeve;
- public ModelRenderer RightLegging;
- public ModelRenderer RightBoot;
- public ModelRenderer Helmet;
- public ModelRenderer Chestplate;
- public ModelRenderer LeftSleeve;
- public ModelRenderer LeftLegging;
- public ModelRenderer LeftBoot;
- public ModelRenderer LeftHorn;
- public Tier2OnyxArmorModel(float modelSize) {
- super(modelSize);
- this.textureWidth = 128;
- this.textureHeight = 128;
- this.LeftBoot = new ModelRenderer(this, 0, 13);
- this.LeftBoot.setRotationPoint(0.0F, 0.0F, 0.0F);
- this.LeftBoot.setTextureOffset(82, 27).addBox(-3.0F, 8.0F, -3.0F, 1.0F, 4.0F, 6.0F, 0.0F, 0.0F, 0.0F);
- this.LeftBoot.setTextureOffset(104, 31).addBox(-2.0F, 8.0F, 2.0F, 4.0F, 4.0F, 1.0F, 0.0F, 0.0F, 0.0F);
- this.LeftBoot.setTextureOffset(104, 31).addBox(-2.0F, 8.0F, -3.0F, 4.0F, 4.0F, 1.0F, 0.0F, 0.0F, 0.0F);
- this.LeftBoot.setTextureOffset(82, 27).addBox(2.0F, 8.0F, -3.0F, 1.0F, 4.0F, 6.0F, 0.0F, 0.0F, 0.0F);
- this.LeftBoot.setTextureOffset(4, 36).addBox(-2.0F, 11.0F, -2.0F, 4.0F, 1.0F, 4.0F, 0.0F, 0.0F, 0.0F);
- this.setRotateAngle(LeftBoot, 0.0F, 3.141592653589793F, 0.0F);
- this.RightLegging = new ModelRenderer(this, 0, 32);
- this.RightLegging.setRotationPoint(0.0F, 0.0F, 0.0F);
- this.RightLegging.setTextureOffset(79, 35).addBox(-3.0F, 0.0F, -3.0F, 1.0F, 8.0F, 6.0F, 0.0F, 0.0F, 0.0F);
- this.RightLegging.setTextureOffset(110, 35).addBox(-2.0F, 0.0F, -3.0F, 4.0F, 8.0F, 1.0F, 0.0F, 0.0F, 0.0F);
- this.RightLegging.setTextureOffset(110, 35).addBox(-2.0F, 0.0F, 2.0F, 4.0F, 8.0F, 1.0F, 0.0F, 0.0F, 0.0F);
- this.RightLegging.setTextureOffset(79, 35).addBox(2.0F, 0.0F, -3.0F, 1.0F, 8.0F, 6.0F, 0.0F, 0.0F, 0.0F);
- this.LeftSleeve = new ModelRenderer(this, 48, 19);
- this.LeftSleeve.setRotationPoint(0.0F, 0.0F, 0.0F);
- this.LeftSleeve.setTextureOffset(35, 65).addBox(-3.0F, -2.0F, -3.0F, 4.0F, 13.0F, 1.0F, 0.0F, 0.0F, 0.0F);
- this.LeftSleeve.setTextureOffset(35, 65).addBox(-3.0F, -2.0F, 2.0F, 4.0F, 13.0F, 1.0F, 0.0F, 0.0F, 0.0F);
- this.LeftSleeve.setTextureOffset(57, 65).addBox(-4.0F, -2.0F, -3.0F, 1.0F, 13.0F, 6.0F, 0.0F, 0.0F, 0.0F);
- this.LeftSleeve.setTextureOffset(57, 65).addBox(1.0F, -2.0F, -3.0F, 1.0F, 13.0F, 6.0F, 0.0F, 0.0F, 0.0F);
- this.LeftSleeve.setTextureOffset(30, 80).addBox(-3.0F, 10.0F, -2.0F, 4.0F, 1.0F, 4.0F, 0.0F, 0.0F, 0.0F);
- this.setRotateAngle(LeftSleeve, 0.0F, 3.141592653589793F, 0.0F);
- this.Chestplate = new ModelRenderer(this, 44, 9);
- this.Chestplate.setRotationPoint(0.0F, 0.0F, 0.0F);
- this.Chestplate.setTextureOffset(-20, 50).addBox(-11.0F, -1.0F, -4.0F, 6.0F, 1.0F, 8.0F, 0.0F, 0.0F, 0.0F);
- this.Chestplate.setTextureOffset(-20, 70).addBox(5.0F, -1.0F, -4.0F, 6.0F, 1.0F, 8.0F, 0.0F, 0.0F, 0.0F);
- this.Chestplate.setTextureOffset(-40, 50).addBox(-4.0F, 0.0F, -3.0F, 1.0F, 13.0F, 6.0F, 0.0F, 0.0F, 0.0F);
- this.Chestplate.setTextureOffset(-40, 80).addBox(-3.0F, 0.0F, -3.0F, 6.0F, 13.0F, 1.0F, 0.0F, 0.0F, 0.0F);
- this.Chestplate.setTextureOffset(-40, 80).addBox(-3.0F, 0.0F, 2.0F, 6.0F, 13.0F, 1.0F, 0.0F, 0.0F, 0.0F);
- this.Chestplate.setTextureOffset(-40, 50).addBox(3.0F, 0.0F, -3.0F, 1.0F, 13.0F, 6.0F, 0.0F, 0.0F, 0.0F);
- this.RightSleeve = new ModelRenderer(this, 0, 19);
- this.RightSleeve.setRotationPoint(0.0F, 0.0F, 0.0F);
- this.RightSleeve.setTextureOffset(83, 65).addBox(-3.0F, -2.0F, -3.0F, 4.0F, 13.0F, 1.0F, 0.0F, 0.0F, 0.0F);
- this.RightSleeve.setTextureOffset(83, 65).addBox(-3.0F, -2.0F, 2.0F, 4.0F, 13.0F, 1.0F, 0.0F, 0.0F, 0.0F);
- this.RightSleeve.setTextureOffset(57, 65).addBox(1.0F, -2.0F, -3.0F, 1.0F, 13.0F, 6.0F, 0.0F, 0.0F, 0.0F);
- this.RightSleeve.setTextureOffset(57, 65).addBox(-4.0F, -2.0F, -3.0F, 1.0F, 13.0F, 6.0F, 0.0F, 0.0F, 0.0F);
- this.RightSleeve.setTextureOffset(30, 80).addBox(-3.0F, 10.0F, -2.0F, 4.0F, 1.0F, 4.0F, 0.0F, 0.0F, 0.0F);
- this.LeftHorn = new ModelRenderer(this, 34, 4);
- this.LeftHorn.setRotationPoint(10.0F, 0.0F, 5.0F);
- this.LeftHorn.setTextureOffset(80, 115).addBox(-2.0F, -1.0F, 1.0F, 1.0F, 1.0F, 3.0F, 0.0F, 0.0F, 0.0F);
- this.LeftHorn.setTextureOffset(80, 115).addBox(-4.0F, -1.0F, 1.0F, 1.0F, 5.0F, 3.0F, 0.0F, 0.0F, 0.0F);
- this.LeftHorn.setTextureOffset(80, 115).addBox(-3.0F, 3.0F, 1.0F, 3.0F, 2.0F, 3.0F, 0.0F, 0.0F, 0.0F);
- this.LeftHorn.setTextureOffset(80, 115).addBox(-3.0F, -1.0F, 1.0F, 1.0F, 4.0F, 3.0F, 0.0F, 0.0F, 0.0F);
- this.LeftHorn.setTextureOffset(80, 115).addBox(-2.0F, 2.0F, 1.0F, 1.0F, 1.0F, 3.0F, 0.0F, 0.0F, 0.0F);
- this.LeftHorn.setTextureOffset(80, 115).addBox(-3.0F, -2.0F, 1.0F, 3.0F, 1.0F, 3.0F, 0.0F, 0.0F, 0.0F);
- this.LeftHorn.setTextureOffset(80, 115).addBox(-2.0F, -3.0F, 1.0F, 3.0F, 1.0F, 3.0F, 0.0F, 0.0F, 0.0F);
- this.LeftHorn.setTextureOffset(-16, 115).addBox(1.0F, 8.0F, -4.0F, 8.0F, 1.0F, 1.0F, 0.0F, 0.0F, 0.0F);
- this.setRotateAngle(LeftHorn, 0.0F, 3.141592653589793F, 0.0F);
- this.RightBoot = new ModelRenderer(this, 64, 9);
- this.RightBoot.setRotationPoint(0.0F, 0.0F, 0.0F);
- this.RightBoot.setTextureOffset(18, 31).addBox(-3.0F, 8.0F, -3.0F, 1.0F, 4.0F, 6.0F, 0.0F, 0.0F, 0.0F);
- this.RightBoot.setTextureOffset(40, 35).addBox(-2.0F, 8.0F, 2.0F, 4.0F, 4.0F, 1.0F, 0.0F, 0.0F, 0.0F);
- this.RightBoot.setTextureOffset(40, 35).addBox(-2.0F, 8.0F, -3.0F, 4.0F, 4.0F, 1.0F, 0.0F, 0.0F, 0.0F);
- this.RightBoot.setTextureOffset(18, 31).addBox(2.0F, 8.0F, -3.0F, 1.0F, 4.0F, 6.0F, 0.0F, 0.0F, 0.0F);
- this.RightBoot.setTextureOffset(-60, 40).addBox(-2.0F, 11.0F, -2.0F, 4.0F, 1.0F, 4.0F, 0.0F, 0.0F, 0.0F);
- this.LeftLegging = new ModelRenderer(this, 14, 32);
- this.LeftLegging.setRotationPoint(0.0F, 0.0F, 0.0F);
- this.LeftLegging.setTextureOffset(65, 35).addBox(-3.0F, 0.0F, -3.0F, 1.0F, 8.0F, 6.0F, 0.0F, 0.0F, 0.0F);
- this.LeftLegging.setTextureOffset(96, 35).addBox(-2.0F, 0.0F, -3.0F, 4.0F, 8.0F, 1.0F, 0.0F, 0.0F, 0.0F);
- this.LeftLegging.setTextureOffset(96, 35).addBox(-2.0F, 0.0F, 2.0F, 4.0F, 8.0F, 1.0F, 0.0F, 0.0F, 0.0F);
- this.LeftLegging.setTextureOffset(65, 35).addBox(2.0F, 0.0F, -3.0F, 1.0F, 8.0F, 6.0F, 0.0F, 0.0F, 0.0F);
- this.setRotateAngle(LeftLegging, 0.0F, 3.141592653589793F, 0.0F);
- this.Helmet = new ModelRenderer(this, 0, 0);
- this.Helmet.setRotationPoint(-5.0F, -9.0F, -5.0F);
- this.Helmet.setTextureOffset(48, 108).addBox(0.0F, 0.0F, 0.0F, 1.0F, 9.0F, 10.0F, 0.0F, 0.0F, 0.0F);
- this.Helmet.setTextureOffset(48, 108).addBox(9.0F, 0.0F, 0.0F, 1.0F, 9.0F, 10.0F, 0.0F, 0.0F, 0.0F);
- this.Helmet.setTextureOffset(18, 115).addBox(1.0F, 0.0F, 9.0F, 8.0F, 9.0F, 1.0F, 0.0F, 0.0F, 0.0F);
- this.Helmet.setTextureOffset(75, 115).addBox(1.0F, 0.0F, 0.0F, 8.0F, 1.0F, 9.0F, 0.0F, 0.0F, 0.0F);
- this.Helmet.setTextureOffset(40, 117).addBox(1.0F, 1.0F, 0.0F, 1.0F, 8.0F, 1.0F, 0.0F, 0.0F, 0.0F);
- this.Helmet.setTextureOffset(115, 120).addBox(-2.0F, -1.0F, 1.0F, 1.0F, 1.0F, 3.0F, 0.0F, 0.0F, 0.0F);
- this.Helmet.setTextureOffset(40, 117).addBox(8.0F, 1.0F, 0.0F, 1.0F, 8.0F, 1.0F, 0.0F, 0.0F, 0.0F);
- this.Helmet.setTextureOffset(75, 117).addBox(7.0F, 8.0F, 0.0F, 1.0F, 1.0F, 1.0F, 0.0F, 0.0F, 0.0F);
- this.Helmet.setTextureOffset(75, 117).addBox(2.0F, 8.0F, 0.0F, 1.0F, 1.0F, 1.0F, 0.0F, 0.0F, 0.0F);
- this.Helmet.setTextureOffset(63, 110).addBox(2.0F, 1.0F, 0.0F, 6.0F, 2.0F, 1.0F, 0.0F, 0.0F, 0.0F);
- this.Helmet.setTextureOffset(115, 115).addBox(-4.0F, -1.0F, 1.0F, 1.0F, 5.0F, 3.0F, 0.0F, 0.0F, 0.0F);
- this.Helmet.setTextureOffset(75, 117).addBox(2.0F, 3.0F, 0.0F, 1.0F, 1.0F, 1.0F, 0.0F, 0.0F, 0.0F);
- this.Helmet.setTextureOffset(75, 117).addBox(7.0F, 3.0F, 0.0F, 1.0F, 1.0F, 1.0F, 0.0F, 0.0F, 0.0F);
- this.Helmet.setTextureOffset(115, 120).addBox(-3.0F, 3.0F, 1.0F, 3.0F, 2.0F, 3.0F, 0.0F, 0.0F, 0.0F);
- this.Helmet.setTextureOffset(115, 120).addBox(-3.0F, -1.0F, 1.0F, 1.0F, 4.0F, 3.0F, 0.0F, 0.0F, 0.0F);
- this.Helmet.setTextureOffset(115, 120).addBox(-2.0F, 2.0F, 1.0F, 1.0F, 1.0F, 3.0F, 0.0F, 0.0F, 0.0F);
- this.Helmet.setTextureOffset(115, 120).addBox(-3.0F, -2.0F, 1.0F, 3.0F, 1.0F, 3.0F, 0.0F, 0.0F, 0.0F);
- this.Helmet.setTextureOffset(115, 120).addBox(-2.0F, -3.0F, 1.0F, 3.0F, 1.0F, 3.0F, 0.0F, 0.0F, 0.0F);
- this.Helmet.addBox(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F, 0.0F, 0.0F, 0.0F);
- this.Helmet.addChild(this.LeftHorn);
- this.bipedHead.addChild(Helmet);
- this.bipedBody.addChild(Chestplate);
- this.bipedLeftArm.addChild(LeftSleeve);
- this.bipedRightArm.addChild(RightSleeve);
- this.bipedRightLeg.addChild(RightLegging);
- this.bipedLeftLeg.addChild(LeftLegging);
- this.bipedRightLeg.addChild(RightBoot);
- this.bipedLeftLeg.addChild(LeftBoot);
- }
- @Override
- public void render(MatrixStack matrixStackIn, IVertexBuilder bufferIn, int packedLightIn, int packedOverlayIn, float red, float green, float blue, float alpha) {
- super.render(matrixStackIn, bufferIn, packedLightIn, packedOverlayIn, red, green, blue, alpha);
- }
- @SuppressWarnings("unchecked")
- @Override
- public void setRotationAngles(LivingEntity entityIn, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch) {
- super.setRotationAngles(entityIn, limbSwing, limbSwingAmount, ageInTicks, netHeadYaw, headPitch);
- this.Helmet.copyModelAngles(this.bipedHead);
- this.Chestplate.copyModelAngles(this.bipedBody);
- this.LeftSleeve.copyModelAngles(this.bipedLeftArm);
- this.RightSleeve.copyModelAngles(this.bipedRightArm);
- this.LeftLegging.copyModelAngles(this.bipedLeftLeg);
- this.RightLegging.copyModelAngles(this.bipedRightLeg);
- this.LeftBoot.copyModelAngles(this.bipedLeftLeg);
- this.RightBoot.copyModelAngles(this.bipedRightLeg);
- }
- /**
- * 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;
- }
- }
RAW Paste Data