summaryrefslogtreecommitdiff
path: root/src/main/java/gmail/Lance5057/armor
diff options
context:
space:
mode:
authorLance5057 <Lance5057@gmail.com>2015-07-09 02:25:10 -0500
committerLance5057 <Lance5057@gmail.com>2015-07-09 02:25:10 -0500
commite913b331003a724f6be8675ca886f7d5ca112348 (patch)
tree05b2b6af6d2795bea9b8dee9cbdb49b37733d1ff /src/main/java/gmail/Lance5057/armor
parentb4040374ce7af8b219b0273c92ed48aaf84fb32b (diff)
Revert "Revert "Worked on the Finishing Anvil""
This reverts commit b4040374ce7af8b219b0273c92ed48aaf84fb32b.
Diffstat (limited to 'src/main/java/gmail/Lance5057/armor')
-rw-r--r--src/main/java/gmail/Lance5057/armor/blocks/ArmorAnvil.java50
-rw-r--r--src/main/java/gmail/Lance5057/armor/items/ChainArmor.java78
-rw-r--r--src/main/java/gmail/Lance5057/armor/items/ClothArmor.java78
-rw-r--r--src/main/java/gmail/Lance5057/armor/items/TinkerArmor.java6
-rw-r--r--src/main/java/gmail/Lance5057/armor/renderers/ModelClothArmor.java286
5 files changed, 445 insertions, 53 deletions
diff --git a/src/main/java/gmail/Lance5057/armor/blocks/ArmorAnvil.java b/src/main/java/gmail/Lance5057/armor/blocks/ArmorAnvil.java
deleted file mode 100644
index c6aa286..0000000
--- a/src/main/java/gmail/Lance5057/armor/blocks/ArmorAnvil.java
+++ /dev/null
@@ -1,50 +0,0 @@
-package gmail.Lance5057.armor.blocks;
-
-import cpw.mods.fml.relauncher.Side;
-import cpw.mods.fml.relauncher.SideOnly;
-import gmail.Lance5057.tileentities.TileEntity_ArmorAnvil;
-import gmail.Lance5057.tileentities.TileEntity_CrestMount;
-import net.minecraft.block.Block;
-import net.minecraft.block.ITileEntityProvider;
-import net.minecraft.block.material.Material;
-import net.minecraft.client.renderer.texture.IIconRegister;
-import net.minecraft.tileentity.TileEntity;
-import net.minecraft.world.World;
-
-public class ArmorAnvil extends Block implements ITileEntityProvider
-{
-
- public ArmorAnvil() {
- super(Material.iron);
- }
-
- //You don't want the normal render type, or it wont render properly.
- @Override
- public int getRenderType() {
- return -1;
- }
-
- //It's not an opaque cube, so you need this.
- @Override
- public boolean isOpaqueCube() {
- return false;
- }
-
- //It's not a normal block, so you need this too.
- public boolean renderAsNormalBlock() {
- return false;
- }
-
- //This is the icon to use for showing the block in your hand.
- @SideOnly(Side.CLIENT)
- @Override
- public void registerBlockIcons(IIconRegister icon) {
- this.blockIcon = icon.registerIcon("tinkersdefense:WIP");
- }
-
- @Override
- public TileEntity createNewTileEntity(World w, int md) {
- TileEntity_ArmorAnvil te = new TileEntity_ArmorAnvil();
- return te;
- }
-}
diff --git a/src/main/java/gmail/Lance5057/armor/items/ChainArmor.java b/src/main/java/gmail/Lance5057/armor/items/ChainArmor.java
new file mode 100644
index 0000000..6a5dea9
--- /dev/null
+++ b/src/main/java/gmail/Lance5057/armor/items/ChainArmor.java
@@ -0,0 +1,78 @@
+package gmail.Lance5057.armor.items;
+
+import gmail.Lance5057.TinkersDefense;
+import gmail.Lance5057.proxy.ClientProxy;
+import net.minecraft.client.model.ModelBiped;
+import net.minecraft.client.renderer.texture.IIconRegister;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemArmor;
+import net.minecraft.item.ItemStack;
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+
+public class ChainArmor extends ItemArmor {
+ public ChainArmor(ArmorMaterial par2EnumArmorMaterial, int par3, int par4) {
+ super(par2EnumArmorMaterial, par3, par4);
+ }
+
+ @Override
+ @SideOnly(Side.CLIENT)
+ public void registerIcons(IIconRegister par1IconRegister) {
+ String itemName = "tinkersdefense:textures/armor/ChainArmor";
+ this.itemIcon = par1IconRegister.registerIcon(itemName);
+ }
+
+ @Override
+ public String getArmorTexture(ItemStack stack, Entity entity, int slot,
+ String type) {
+ return "tinkersdefense:textures/armor/ChainArmor.png";
+ }
+
+ @Override
+ @SideOnly(Side.CLIENT)
+ public ModelBiped getArmorModel(EntityLivingBase entityLiving,
+ ItemStack itemStack, int armorSlot)
+ {
+
+// return ClientProxy.chain;
+ ModelBiped armorModel = ClientProxy.chain;
+ if (itemStack != null) {
+// if (itemStack.getItem() instanceof TinkerArmor) {
+// int type = ((ItemArmor) itemStack.getItem()).armorType;
+// if (type == 1 || type == 3) {
+// armorModel = TinkersDefense.proxy.getArmorModel(0);
+// } else {
+// armorModel = TinkersDefense.proxy.getArmorModel(1);
+// }
+//
+// }
+ if (armorModel != null) {
+// armorModel.bipedHead.showModel = armorSlot == 0;
+// armorModel.bipedHeadwear.showModel = armorSlot == 0;
+// armorModel.bipedBody.showModel = armorSlot == 1
+// || armorSlot == 2;
+// armorModel.bipedRightArm.showModel = armorSlot == 1;
+// armorModel.bipedLeftArm.showModel = armorSlot == 1;
+// armorModel.bipedRightLeg.showModel = armorSlot == 2
+// || armorSlot == 3;
+// armorModel.bipedLeftLeg.showModel = armorSlot == 2
+// || armorSlot == 3;
+ armorModel.isSneak = entityLiving.isSneaking();
+ armorModel.isRiding = entityLiving.isRiding();
+ armorModel.isChild = entityLiving.isChild();
+ armorModel.heldItemRight = entityLiving.getHeldItem() != null ? 1
+ : 0;
+
+ if (entityLiving instanceof EntityPlayer) {
+ armorModel.aimedBow = ((EntityPlayer) entityLiving)
+ .getItemInUseDuration() > 2;
+ }
+ return armorModel;
+ }
+ }
+ return armorModel;
+ }
+
+} \ No newline at end of file
diff --git a/src/main/java/gmail/Lance5057/armor/items/ClothArmor.java b/src/main/java/gmail/Lance5057/armor/items/ClothArmor.java
new file mode 100644
index 0000000..1317a3e
--- /dev/null
+++ b/src/main/java/gmail/Lance5057/armor/items/ClothArmor.java
@@ -0,0 +1,78 @@
+package gmail.Lance5057.armor.items;
+
+import gmail.Lance5057.TinkersDefense;
+import gmail.Lance5057.proxy.ClientProxy;
+import net.minecraft.client.model.ModelBiped;
+import net.minecraft.client.renderer.texture.IIconRegister;
+import net.minecraft.entity.Entity;
+import net.minecraft.entity.EntityLivingBase;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.item.ItemArmor;
+import net.minecraft.item.ItemStack;
+import cpw.mods.fml.relauncher.Side;
+import cpw.mods.fml.relauncher.SideOnly;
+
+public class ClothArmor extends ItemArmor {
+ public ClothArmor(ArmorMaterial par2EnumArmorMaterial, int par3, int par4) {
+ super(par2EnumArmorMaterial, par3, par4);
+ }
+
+ @Override
+ @SideOnly(Side.CLIENT)
+ public void registerIcons(IIconRegister par1IconRegister) {
+ String itemName = "tinkersdefense:textures/armor/ClothArmor";
+ this.itemIcon = par1IconRegister.registerIcon(itemName);
+ }
+
+ @Override
+ public String getArmorTexture(ItemStack stack, Entity entity, int slot,
+ String type) {
+ return "tinkersdefense:textures/armor/ChainArmor.png";
+ }
+
+ @Override
+ @SideOnly(Side.CLIENT)
+ public ModelBiped getArmorModel(EntityLivingBase entityLiving,
+ ItemStack itemStack, int armorSlot)
+ {
+
+// return ClientProxy.chain;
+ ModelBiped armorModel = ClientProxy.chain;
+ if (itemStack != null) {
+// if (itemStack.getItem() instanceof TinkerArmor) {
+// int type = ((ItemArmor) itemStack.getItem()).armorType;
+// if (type == 1 || type == 3) {
+// armorModel = TinkersDefense.proxy.getArmorModel(0);
+// } else {
+// armorModel = TinkersDefense.proxy.getArmorModel(1);
+// }
+//
+// }
+ if (armorModel != null) {
+// armorModel.bipedHead.showModel = armorSlot == 0;
+// armorModel.bipedHeadwear.showModel = armorSlot == 0;
+// armorModel.bipedBody.showModel = armorSlot == 1
+// || armorSlot == 2;
+// armorModel.bipedRightArm.showModel = armorSlot == 1;
+// armorModel.bipedLeftArm.showModel = armorSlot == 1;
+// armorModel.bipedRightLeg.showModel = armorSlot == 2
+// || armorSlot == 3;
+// armorModel.bipedLeftLeg.showModel = armorSlot == 2
+// || armorSlot == 3;
+ armorModel.isSneak = entityLiving.isSneaking();
+ armorModel.isRiding = entityLiving.isRiding();
+ armorModel.isChild = entityLiving.isChild();
+ armorModel.heldItemRight = entityLiving.getHeldItem() != null ? 1
+ : 0;
+
+ if (entityLiving instanceof EntityPlayer) {
+ armorModel.aimedBow = ((EntityPlayer) entityLiving)
+ .getItemInUseDuration() > 2;
+ }
+ return armorModel;
+ }
+ }
+ return armorModel;
+ }
+
+} \ No newline at end of file
diff --git a/src/main/java/gmail/Lance5057/armor/items/TinkerArmor.java b/src/main/java/gmail/Lance5057/armor/items/TinkerArmor.java
index 811f18c..3899023 100644
--- a/src/main/java/gmail/Lance5057/armor/items/TinkerArmor.java
+++ b/src/main/java/gmail/Lance5057/armor/items/TinkerArmor.java
@@ -20,14 +20,14 @@ public class TinkerArmor extends ItemArmor {
@Override
@SideOnly(Side.CLIENT)
public void registerIcons(IIconRegister par1IconRegister) {
- String itemName = "tinkersdefense:textures/armor/ChainArmor";
+ String itemName = "tinkersdefense:textures/armor/TinkerArmor";
this.itemIcon = par1IconRegister.registerIcon(itemName);
}
@Override
public String getArmorTexture(ItemStack stack, Entity entity, int slot,
String type) {
- return "tinkersdefense:textures/armor/ChainArmor.png";
+ return "tinkersdefense:textures/armor/TinkerArmor.png";
}
@Override
@@ -37,7 +37,7 @@ public class TinkerArmor extends ItemArmor {
{
// return ClientProxy.chain;
- ModelBiped armorModel = ClientProxy.chain;
+ ModelBiped armorModel = ClientProxy.tutChest;
if (itemStack != null) {
// if (itemStack.getItem() instanceof TinkerArmor) {
// int type = ((ItemArmor) itemStack.getItem()).armorType;
diff --git a/src/main/java/gmail/Lance5057/armor/renderers/ModelClothArmor.java b/src/main/java/gmail/Lance5057/armor/renderers/ModelClothArmor.java
new file mode 100644
index 0000000..3cc043e
--- /dev/null
+++ b/src/main/java/gmail/Lance5057/armor/renderers/ModelClothArmor.java
@@ -0,0 +1,286 @@
+package gmail.Lance5057.armor.renderers;
+
+import net.minecraft.client.model.ModelBase;
+import net.minecraft.client.model.ModelRenderer;
+import net.minecraft.entity.Entity;
+import org.lwjgl.opengl.GL11;
+
+/**
+ * Hood - Lance5057
+ * Created using Tabula 4.1.1
+ */
+public class ModelClothArmor extends ModelBase {
+ public ModelRenderer TopLeft;
+ public ModelRenderer field_78124_i;
+ public ModelRenderer field_78123_h;
+ public ModelRenderer Top;
+ public ModelRenderer Left;
+ public ModelRenderer Right;
+ public ModelRenderer Collar;
+ public ModelRenderer TrimLeft2;
+ public ModelRenderer TrimLeft3;
+ public ModelRenderer TrimLeft4;
+ public ModelRenderer TrimRight3;
+ public ModelRenderer TrimRight2;
+ public ModelRenderer TrimRight4;
+ public ModelRenderer Flop;
+ public ModelRenderer Top_1;
+ public ModelRenderer ArmLeft;
+ public ModelRenderer ArmRight;
+ public ModelRenderer Chest;
+ public ModelRenderer Belt;
+ public ModelRenderer Button;
+ public ModelRenderer Back;
+ public ModelRenderer ShawlLeft1;
+ public ModelRenderer ShawlLeft2;
+ public ModelRenderer ShawlRight1;
+ public ModelRenderer ShawlRight2;
+ public ModelRenderer LeftFront;
+ public ModelRenderer RightFront;
+ public ModelRenderer LeftFS;
+ public ModelRenderer LeftF;
+ public ModelRenderer LeftBS;
+ public ModelRenderer LeftB;
+ public ModelRenderer LeftB2;
+ public ModelRenderer LeftBA;
+ public ModelRenderer RightFS;
+ public ModelRenderer RightF;
+ public ModelRenderer RightBS;
+ public ModelRenderer RightB;
+ public ModelRenderer RightBA;
+ public ModelRenderer RightB2;
+
+ public ModelClothArmor() {
+ this.textureWidth = 64;
+ this.textureHeight = 64;
+ this.TrimRight2 = new ModelRenderer(this, 0, 4);
+ this.TrimRight2.setRotationPoint(3.0F, -1.5F, -6.0F);
+ this.TrimRight2.addBox(0.0F, 0.0F, 0.0F, 2, 2, 1, 0.0F);
+ this.setRotateAngle(TrimRight2, 0.0F, 0.0F, 0.7853981633974483F);
+ this.Top_1 = new ModelRenderer(this, 0, 17);
+ this.Top_1.setRotationPoint(0.0F, -0.3F, 0.0F);
+ this.Top_1.addBox(-8.5F, 0.0F, -3.0F, 9, 2, 6, 0.01F);
+ this.RightB2 = new ModelRenderer(this, 0, 0);
+ this.RightB2.setRotationPoint(-6.2F, 0.0F, -3.61F);
+ this.RightB2.addBox(-1.7F, -0.4F, 3.3F, 1, 11, 2, 0.0F);
+ this.setRotateAngle(RightB2, 0.0F, 1.5707963267948966F, 0.08726646259971647F);
+ this.Top = new ModelRenderer(this, 0, 0);
+ this.Top.setRotationPoint(0.5F, 0.0F, 0.0F);
+ this.Top.addBox(-4.0F, -9.0F, -5.0F, 9, 1, 11, 0.0F);
+ this.setRotateAngle(Top, 0.0F, 3.141592653589793F, 0.0F);
+ this.TopLeft = new ModelRenderer(this, 0, 17);
+ this.TopLeft.setRotationPoint(0.0F, -0.3F, 0.0F);
+ this.TopLeft.addBox(-8.5F, 0.0F, -3.0F, 9, 2, 6, 0.01F);
+ this.setRotateAngle(TopLeft, 0.0F, 3.141592653589793F, 0.0F);
+ this.field_78123_h = new ModelRenderer(this, 0, 16);
+ this.field_78123_h.setRotationPoint(-1.899999976158142F, 12.0F, 0.10000000149011612F);
+ this.field_78123_h.addBox(-2.0F, 0.0F, -2.0F, 4, 12, 4, 0.0F);
+ this.TrimLeft3 = new ModelRenderer(this, 0, 0);
+ this.TrimLeft3.setRotationPoint(-2.3F, 0.0F, -5.5F);
+ this.TrimLeft3.addBox(0.0F, 0.0F, 0.0F, 2, 2, 1, 0.0F);
+ this.setRotateAngle(TrimLeft3, 0.009773843811168246F, 3.141592653589793F, 0.7853981633974483F);
+ this.ArmRight = new ModelRenderer(this, 32, 25);
+ this.ArmRight.setRotationPoint(-3.5F, 0.0F, 0.0F);
+ this.ArmRight.addBox(0.0F, 0.0F, -2.5F, 5, 11, 5, 0.01F);
+ this.setRotateAngle(ArmRight, 0.0F, 3.141592653589793F, 0.0F);
+ this.TrimRight3 = new ModelRenderer(this, 0, 0);
+ this.TrimRight3.setRotationPoint(3.7F, 0.0F, -5.5F);
+ this.TrimRight3.addBox(0.0F, 0.0F, 0.0F, 2, 2, 1, 0.0F);
+ this.setRotateAngle(TrimRight3, 0.0F, 3.141592653589793F, 0.7853981633974483F);
+ this.Left = new ModelRenderer(this, 40, 0);
+ this.Left.mirror = true;
+ this.Left.setRotationPoint(-0.5F, -0.3F, 0.0F);
+ this.Left.addBox(4.0F, -8.3F, -5.0F, 1, 7, 11, 0.0F);
+ this.setRotateAngle(Left, 0.0F, 3.141592653589793F, 0.08726646259971647F);
+ this.Right = new ModelRenderer(this, 40, 0);
+ this.Right.setRotationPoint(0.5F, -0.3F, 0.0F);
+ this.Right.addBox(-5.0F, -8.3F, -5.0F, 1, 7, 11, 0.0F);
+ this.setRotateAngle(Right, 0.0F, 3.141592653589793F, -0.08726646259971647F);
+ this.LeftB2 = new ModelRenderer(this, 0, 0);
+ this.LeftB2.setRotationPoint(-3.0F, -0.1F, 3.61F);
+ this.LeftB2.addBox(-1.7F, 0.0F, -2.0F, 1, 11, 2, 0.0F);
+ this.setRotateAngle(LeftB2, 0.0F, 4.71238898038469F, 0.08726646259971647F);
+ this.field_78124_i = new ModelRenderer(this, 0, 16);
+ this.field_78124_i.mirror = true;
+ this.field_78124_i.setRotationPoint(1.899999976158142F, 12.0F, 0.10000000149011612F);
+ this.field_78124_i.addBox(-2.0F, 0.0F, -2.0F, 4, 12, 4, 0.0F);
+ this.Button = new ModelRenderer(this, 0, 0);
+ this.Button.setRotationPoint(0.0F, 0.0F, -3.5F);
+ this.Button.addBox(0.0F, 0.0F, 0.0F, 2, 2, 1, 0.0F);
+ this.setRotateAngle(Button, 0.0F, 0.0F, 0.7853981633974483F);
+ this.LeftFS = new ModelRenderer(this, 0, 0);
+ this.LeftFS.setRotationPoint(-1.8F, 0.0F, -2.9F);
+ this.LeftFS.addBox(1.0F, 0.0F, 2.0F, 1, 11, 2, 0.0F);
+ this.setRotateAngle(LeftFS, 0.0F, 0.7853981633974483F, 0.0F);
+ this.Collar = new ModelRenderer(this, 0, 12);
+ this.Collar.setRotationPoint(0.0F, 0.0F, 0.0F);
+ this.Collar.addBox(-5.5F, -1.0F, -5.5F, 11, 2, 11, 0.0F);
+ this.setRotateAngle(Collar, 0.0F, 3.141592653589793F, 0.0F);
+ this.Back = new ModelRenderer(this, 8, 37);
+ this.Back.setRotationPoint(0.0F, 1.2F, 2.02F);
+ this.Back.addBox(-4.0F, 0.0F, 0.0F, 8, 5, 1, 0.0F);
+ this.RightFront = new ModelRenderer(this, 0, 0);
+ this.RightFront.setRotationPoint(-1.9F, 12.0F, 0.0F);
+ this.RightFront.addBox(1.4F, 0.0F, -1.5F, 1, 11, 3, 0.0F);
+ this.setRotateAngle(RightFront, 0.0F, 3.141592653589793F, 0.08726646259971647F);
+ this.ShawlRight1 = new ModelRenderer(this, 32, 0);
+ this.ShawlRight1.mirror = true;
+ this.ShawlRight1.setRotationPoint(-0.6F, 1.3F, 0.0F);
+ this.ShawlRight1.addBox(0.0F, 0.0F, -3.0F, 6, 5, 6, 0.0F);
+ this.setRotateAngle(ShawlRight1, 0.0F, 0.0F, -0.2792526803190927F);
+ this.LeftF = new ModelRenderer(this, 0, 0);
+ this.LeftF.setRotationPoint(-4.1F, 0.0F, -1.9F);
+ this.LeftF.addBox(0.0F, 0.0F, 2.1F, 1, 11, 3, 0.0F);
+ this.setRotateAngle(LeftF, 0.0F, 1.5707963267948966F, 0.0F);
+ this.LeftB = new ModelRenderer(this, 0, 0);
+ this.LeftB.setRotationPoint(-2.0F, 0.0F, 3.6F);
+ this.LeftB.addBox(-1.7F, 0.0F, -3.0F, 1, 11, 3, 0.0F);
+ this.setRotateAngle(LeftB, 0.0F, 4.71238898038469F, 0.0F);
+ this.LeftBS = new ModelRenderer(this, 0, 0);
+ this.LeftBS.setRotationPoint(1.0F, 0.0F, 3.6F);
+ this.LeftBS.addBox(-1.5F, 0.0F, -2.5F, 1, 11, 2, 0.0F);
+ this.setRotateAngle(LeftBS, 0.0F, -0.7853981633974483F, 0.0F);
+ this.RightB = new ModelRenderer(this, 0, 0);
+ this.RightB.setRotationPoint(-6.1F, -0.2F, -3.6F);
+ this.RightB.addBox(-1.7F, 0.2F, 4.1F, 1, 11, 3, 0.0F);
+ this.setRotateAngle(RightB, 0.0F, 1.5707963267948966F, 0.0F);
+ this.TrimLeft4 = new ModelRenderer(this, 40, 0);
+ this.TrimLeft4.setRotationPoint(5.3F, -2.0F, 5.0F);
+ this.TrimLeft4.addBox(0.0F, 0.0F, 0.0F, 1, 2, 11, 0.0F);
+ this.setRotateAngle(TrimLeft4, 0.0F, 3.141592653589793F, 0.5235987755982988F);
+ this.RightF = new ModelRenderer(this, 0, 0);
+ this.RightF.setRotationPoint(-4.1F, 0.0F, 1.9F);
+ this.RightF.addBox(0.1F, 0.0F, -5.1F, 1, 11, 3, 0.0F);
+ this.setRotateAngle(RightF, 0.0F, -1.5707963267948966F, 0.0F);
+ this.ShawlLeft1 = new ModelRenderer(this, 32, 0);
+ this.ShawlLeft1.setRotationPoint(-0.6F, 1.3F, 0.0F);
+ this.ShawlLeft1.addBox(0.0F, 0.0F, -3.0F, 6, 5, 6, 0.0F);
+ this.setRotateAngle(ShawlLeft1, 0.0F, 0.0F, -0.2792526803190927F);
+ this.ShawlRight2 = new ModelRenderer(this, 0, 34);
+ this.ShawlRight2.mirror = true;
+ this.ShawlRight2.setRotationPoint(-2.5F, -1.8F, -0.1F);
+ this.ShawlRight2.addBox(1.0F, -1.0F, -2.0F, 6, 3, 5, 0.0F);
+ this.setRotateAngle(ShawlRight2, 0.0F, 0.0F, 0.9424777960769379F);
+ this.TrimLeft2 = new ModelRenderer(this, 0, 4);
+ this.TrimLeft2.setRotationPoint(-3.0F, -1.5F, -6.0F);
+ this.TrimLeft2.addBox(0.0F, 0.0F, 0.0F, 2, 2, 1, 0.0F);
+ this.setRotateAngle(TrimLeft2, 0.0F, 0.0F, 0.7853981633974483F);
+ this.LeftFront = new ModelRenderer(this, 0, 0);
+ this.LeftFront.setRotationPoint(1.9F, 12.0F, 0.0F);
+ this.LeftFront.addBox(1.4F, 0.0F, -1.5F, 1, 11, 3, 0.0F);
+ this.setRotateAngle(LeftFront, 0.0F, 0.0F, -0.08726646259971647F);
+ this.TrimRight4 = new ModelRenderer(this, 40, 0);
+ this.TrimRight4.mirror = true;
+ this.TrimRight4.setRotationPoint(-4.5F, -2.5F, 5.0F);
+ this.TrimRight4.addBox(0.0F, 0.0F, 0.0F, 1, 2, 11, 0.0F);
+ this.setRotateAngle(TrimRight4, 0.0F, 3.141592653589793F, -0.5235987755982988F);
+ this.ShawlLeft2 = new ModelRenderer(this, 0, 34);
+ this.ShawlLeft2.mirror = true;
+ this.ShawlLeft2.setRotationPoint(-2.5F, -1.8F, 0.1F);
+ this.ShawlLeft2.addBox(1.0F, -1.0F, -3.0F, 6, 3, 5, 0.0F);
+ this.setRotateAngle(ShawlLeft2, 0.0F, 0.0F, 0.9424777960769379F);
+ this.RightBA = new ModelRenderer(this, 0, 0);
+ this.RightBA.setRotationPoint(-5.8F, -0.4F, -3.61F);
+ this.RightBA.addBox(-3.9F, 0.0F, -4.1F, 1, 11, 5, 0.0F);
+ this.setRotateAngle(RightBA, 0.0F, 2.6179938779914944F, 0.08726646259971647F);
+ this.LeftBA = new ModelRenderer(this, 0, 0);
+ this.LeftBA.setRotationPoint(-2.9F, -0.1F, 3.91F);
+ this.LeftBA.addBox(0.3F, 0.0F, -6.0F, 1, 11, 5, 0.0F);
+ this.setRotateAngle(LeftBA, 0.0F, 0.4363323129985824F, 0.08726646259971647F);
+ this.RightFS = new ModelRenderer(this, 0, 0);
+ this.RightFS.setRotationPoint(-1.9F, 0.0F, 2.9F);
+ this.RightFS.addBox(1.1F, 0.0F, -4.0F, 1, 11, 2, 0.0F);
+ this.setRotateAngle(RightFS, 0.0F, -0.7853981633974483F, 0.0F);
+ this.ArmLeft = new ModelRenderer(this, 32, 25);
+ this.ArmLeft.setRotationPoint(3.5F, -0.0F, 0.0F);
+ this.ArmLeft.addBox(0.0F, 0.0F, -2.5F, 5, 11, 5, 0.01F);
+ this.RightBS = new ModelRenderer(this, 0, 0);
+ this.RightBS.setRotationPoint(-3.1F, -0.2F, -3.6F);
+ this.RightBS.addBox(1.4F, 0.2F, 3.4F, 1, 11, 2, 0.0F);
+ this.setRotateAngle(RightBS, 0.0F, 0.7853981633974483F, 0.0F);
+ this.Flop = new ModelRenderer(this, 18, 25);
+ this.Flop.setRotationPoint(0.0F, -7.0F, 8.5F);
+ this.Flop.addBox(-4.0F, 0.0F, 0.0F, 8, 7, 4, 0.0F);
+ this.setRotateAngle(Flop, 0.5235987755982988F, 3.141592653589793F, 0.0F);
+ this.Belt = new ModelRenderer(this, 0, 25);
+ this.Belt.setRotationPoint(0.0F, 0.0F, 0.0F);
+ this.Belt.addBox(-6.8F, 10.0F, -3.0F, 10, 3, 6, 0.01F);
+ this.setRotateAngle(Belt, 0.0F, 0.0F, -0.13962634015954636F);
+ this.Chest = new ModelRenderer(this, 0, 0);
+ this.Chest.setRotationPoint(0.0F, 0.0F, 0.0F);
+ this.Chest.addBox(-4.5F, 0.0F, -2.5F, 9, 12, 5, 0.0F);
+ this.RightFront.addChild(this.RightB2);
+ this.LeftFront.addChild(this.LeftB2);
+ this.LeftFront.addChild(this.LeftFS);
+ this.ArmRight.addChild(this.ShawlRight1);
+ this.LeftFront.addChild(this.LeftF);
+ this.LeftFront.addChild(this.LeftB);
+ this.LeftFront.addChild(this.LeftBS);
+ this.RightFront.addChild(this.RightB);
+ this.RightFront.addChild(this.RightF);
+ this.ArmLeft.addChild(this.ShawlLeft1);
+ this.ShawlRight1.addChild(this.ShawlRight2);
+ this.ShawlLeft1.addChild(this.ShawlLeft2);
+ this.RightFront.addChild(this.RightBA);
+ this.LeftFront.addChild(this.LeftBA);
+ this.RightFront.addChild(this.RightFS);
+ this.RightFront.addChild(this.RightBS);
+ }
+
+ @Override
+ public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
+ this.TrimRight2.render(f5);
+ this.Top_1.render(f5);
+ this.Top.render(f5);
+ this.TopLeft.render(f5);
+ this.field_78123_h.render(f5);
+ GL11.glPushMatrix();
+ GL11.glTranslatef(this.TrimLeft3.offsetX, this.TrimLeft3.offsetY, this.TrimLeft3.offsetZ);
+ GL11.glTranslatef(this.TrimLeft3.rotationPointX * f5, this.TrimLeft3.rotationPointY * f5, this.TrimLeft3.rotationPointZ * f5);
+ GL11.glScaled(0.5D, 0.5D, 1.0D);
+ GL11.glTranslatef(-this.TrimLeft3.offsetX, -this.TrimLeft3.offsetY, -this.TrimLeft3.offsetZ);
+ GL11.glTranslatef(-this.TrimLeft3.rotationPointX * f5, -this.TrimLeft3.rotationPointY * f5, -this.TrimLeft3.rotationPointZ * f5);
+ this.TrimLeft3.render(f5);
+ GL11.glPopMatrix();
+ this.ArmRight.render(f5);
+ GL11.glPushMatrix();
+ GL11.glTranslatef(this.TrimRight3.offsetX, this.TrimRight3.offsetY, this.TrimRight3.offsetZ);
+ GL11.glTranslatef(this.TrimRight3.rotationPointX * f5, this.TrimRight3.rotationPointY * f5, this.TrimRight3.rotationPointZ * f5);
+ GL11.glScaled(0.5D, 0.5D, 1.0D);
+ GL11.glTranslatef(-this.TrimRight3.offsetX, -this.TrimRight3.offsetY, -this.TrimRight3.offsetZ);
+ GL11.glTranslatef(-this.TrimRight3.rotationPointX * f5, -this.TrimRight3.rotationPointY * f5, -this.TrimRight3.rotationPointZ * f5);
+ this.TrimRight3.render(f5);
+ GL11.glPopMatrix();
+ this.Left.render(f5);
+ this.Right.render(f5);
+ this.field_78124_i.render(f5);
+ this.Button.render(f5);
+ this.Collar.render(f5);
+ this.Back.render(f5);
+ this.RightFront.render(f5);
+ this.TrimLeft4.render(f5);
+ this.TrimLeft2.render(f5);
+ this.LeftFront.render(f5);
+ this.TrimRight4.render(f5);
+ this.ArmLeft.render(f5);
+ GL11.glPushMatrix();
+ GL11.glTranslatef(this.Flop.offsetX, this.Flop.offsetY, this.Flop.offsetZ);
+ GL11.glTranslatef(this.Flop.rotationPointX * f5, this.Flop.rotationPointY * f5, this.Flop.rotationPointZ * f5);
+ GL11.glScaled(1.1D, 1.0D, 1.0D);
+ GL11.glTranslatef(-this.Flop.offsetX, -this.Flop.offsetY, -this.Flop.offsetZ);
+ GL11.glTranslatef(-this.Flop.rotationPointX * f5, -this.Flop.rotationPointY * f5, -this.Flop.rotationPointZ * f5);
+ this.Flop.render(f5);
+ GL11.glPopMatrix();
+ this.Belt.render(f5);
+ this.Chest.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;
+ }
+}