diff options
| author | Lance5057 <Lance5057@gmail.com> | 2018-02-01 14:48:19 -0600 |
|---|---|---|
| committer | Lance5057 <Lance5057@gmail.com> | 2018-02-01 14:48:19 -0600 |
| commit | 20a2340a18e201e324ff992f3f6cae5070db0847 (patch) | |
| tree | caf1405fc7c26d3248e3b4c94bcc78c01ce3cb4e /src/main/java | |
| parent | 86e6d011361be67f78e2e232cf1eb241569d79af (diff) | |
Armor Models!
Diffstat (limited to 'src/main/java')
28 files changed, 1287 insertions, 1789 deletions
diff --git a/src/main/java/lance5057/tDefense/armor/events/ArmorRenderEvent.java b/src/main/java/lance5057/tDefense/armor/events/ArmorRenderEvent.java index a4e44b2..b19bdfa 100644 --- a/src/main/java/lance5057/tDefense/armor/events/ArmorRenderEvent.java +++ b/src/main/java/lance5057/tDefense/armor/events/ArmorRenderEvent.java @@ -1,17 +1,17 @@ //package lance5057.tDefense.armor.events; // -//import lance5057.tDefense.armor.ArmorCore; +//import lance5057.tDefense.core.tools.bases.ArmorCore; //import net.minecraft.client.model.ModelBiped; //import net.minecraft.entity.player.EntityPlayer; //import net.minecraft.item.EnumAction; //import net.minecraft.item.ItemStack; //import net.minecraftforge.client.event.RenderPlayerEvent; +//import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; +//import net.minecraftforge.fml.relauncher.Side; +//import net.minecraftforge.fml.relauncher.SideOnly; +//import slimeknights.tconstruct.library.tools.ToolCore; //import tconstruct.armor.ArmorProxyClient; //import tconstruct.armor.player.ArmorExtended; -//import tconstruct.library.tools.ToolCore; -//import cpw.mods.fml.common.eventhandler.SubscribeEvent; -//import cpw.mods.fml.relauncher.Side; -//import cpw.mods.fml.relauncher.SideOnly; // //public class ArmorRenderEvent //{ diff --git a/src/main/java/lance5057/tDefense/core/items/TDOreDictItem.java b/src/main/java/lance5057/tDefense/core/items/TDOreDictItem.java index ff08df2..13627f3 100644 --- a/src/main/java/lance5057/tDefense/core/items/TDOreDictItem.java +++ b/src/main/java/lance5057/tDefense/core/items/TDOreDictItem.java @@ -68,6 +68,7 @@ public class TDOreDictItem extends Item { return colors.get(i.getMetadata()); } + @SideOnly(Side.CLIENT) public static class ColorHandler implements IItemColor { @Override public int getColorFromItemstack(ItemStack stack, int tintIndex) { diff --git a/src/main/java/lance5057/tDefense/core/materials/TDMaterials.java b/src/main/java/lance5057/tDefense/core/materials/TDMaterials.java index 5cc5987..acef5d8 100644 --- a/src/main/java/lance5057/tDefense/core/materials/TDMaterials.java +++ b/src/main/java/lance5057/tDefense/core/materials/TDMaterials.java @@ -383,57 +383,173 @@ public class TDMaterials // TinkerMaterials.wood.addTrait(axelover, SHIELD); TinkerRegistry.addMaterialStats(TinkerMaterials.stone, new ShieldMaterialStats(120, 33)); + TinkerRegistry.addMaterialStats(TinkerMaterials.stone, new HelmMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.stone, new ChestMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.stone, new LegsMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.stone, new BootsMaterialStats(35, 0, 0)); // TinkerRegistry.addMaterialTrait(TinkerMaterials.stone, dulling, // SHIELD); // TinkerMaterials.stone.addTrait(dulling, SHIELD); TinkerRegistry.addMaterialStats(TinkerMaterials.flint, new ShieldMaterialStats(150, 33)); + TinkerRegistry.addMaterialStats(TinkerMaterials.flint, new HelmMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.flint, new ChestMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.flint, new LegsMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.flint, new BootsMaterialStats(35, 0, 0)); // TinkerRegistry.addMaterialTrait(TinkerMaterials.flint, firestarter, // SHIELD); TinkerRegistry.addMaterialStats(TinkerMaterials.cactus, new ShieldMaterialStats(210, 33)); + TinkerRegistry.addMaterialStats(TinkerMaterials.cactus, new HelmMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.cactus, new ChestMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.cactus, new LegsMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.cactus, new BootsMaterialStats(35, 0, 0)); // TinkerRegistry.addMaterialTrait(TinkerMaterials.cactus, barbed, // SHIELD); TinkerRegistry.addMaterialStats(TinkerMaterials.bone, new ShieldMaterialStats(200, 33)); + TinkerRegistry.addMaterialStats(TinkerMaterials.bone, new HelmMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.bone, new ChestMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.bone, new LegsMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.bone, new BootsMaterialStats(35, 0, 0)); // TinkerRegistry.addMaterialTrait(TinkerMaterials.bone, dogtoy, // SHIELD); TinkerRegistry.addMaterialStats(TinkerMaterials.obsidian, new ShieldMaterialStats(139, 33)); + TinkerRegistry.addMaterialStats(TinkerMaterials.obsidian, new HelmMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.obsidian, new ChestMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.obsidian, new LegsMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.obsidian, new BootsMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.prismarine, new ShieldMaterialStats(430, 33)); + TinkerRegistry.addMaterialStats(TinkerMaterials.prismarine, new HelmMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.prismarine, new ChestMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.prismarine, new LegsMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.prismarine, new BootsMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.endstone, new ShieldMaterialStats(420, 33)); + TinkerRegistry.addMaterialStats(TinkerMaterials.endstone, new HelmMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.endstone, new ChestMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.endstone, new LegsMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.endstone, new BootsMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.paper, new ShieldMaterialStats(12, 33)); + TinkerRegistry.addMaterialStats(TinkerMaterials.paper, new HelmMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.paper, new ChestMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.paper, new LegsMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.paper, new BootsMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.sponge, new ShieldMaterialStats(550, 33)); + TinkerRegistry.addMaterialStats(TinkerMaterials.sponge, new HelmMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.sponge, new ChestMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.sponge, new LegsMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.sponge, new BootsMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.firewood, new ShieldMaterialStats(550, 33)); + TinkerRegistry.addMaterialStats(TinkerMaterials.firewood, new HelmMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.firewood, new ChestMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.firewood, new LegsMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.firewood, new BootsMaterialStats(35, 0, 0)); // Slime TinkerRegistry.addMaterialStats(TinkerMaterials.slime, new ShieldMaterialStats(1000, 33)); + TinkerRegistry.addMaterialStats(TinkerMaterials.slime, new HelmMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.slime, new ChestMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.slime, new LegsMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.slime, new BootsMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.blueslime, new ShieldMaterialStats(780, 33)); + TinkerRegistry.addMaterialStats(TinkerMaterials.blueslime, new HelmMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.blueslime, new ChestMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.blueslime, new LegsMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.blueslime, new BootsMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.knightslime, new ShieldMaterialStats(850, 33)); + TinkerRegistry.addMaterialStats(TinkerMaterials.knightslime, new HelmMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.knightslime, new ChestMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.knightslime, new LegsMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.knightslime, new BootsMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.magmaslime, new ShieldMaterialStats(600, 33)); + TinkerRegistry.addMaterialStats(TinkerMaterials.magmaslime, new HelmMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.magmaslime, new ChestMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.magmaslime, new LegsMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.magmaslime, new BootsMaterialStats(35, 0, 0)); // Nether TinkerRegistry.addMaterialStats(TinkerMaterials.netherrack, new ShieldMaterialStats(270, 33)); + TinkerRegistry.addMaterialStats(TinkerMaterials.netherrack, new HelmMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.netherrack, new ChestMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.netherrack, new LegsMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.netherrack, new BootsMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.cobalt, new ShieldMaterialStats(780, 33)); + TinkerRegistry.addMaterialStats(TinkerMaterials.cobalt, new HelmMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.cobalt, new ChestMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.cobalt, new LegsMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.cobalt, new BootsMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.ardite, new ShieldMaterialStats(990, 33)); + TinkerRegistry.addMaterialStats(TinkerMaterials.ardite, new HelmMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.ardite, new ChestMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.ardite, new LegsMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.ardite, new BootsMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.manyullyn, new ShieldMaterialStats(820, 33)); + TinkerRegistry.addMaterialStats(TinkerMaterials.manyullyn, new HelmMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.manyullyn, new ChestMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.manyullyn, new LegsMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.manyullyn, new BootsMaterialStats(35, 0, 0)); // Metals TinkerRegistry.addMaterialStats(TinkerMaterials.iron, new ShieldMaterialStats(204, 33)); + TinkerRegistry.addMaterialStats(TinkerMaterials.iron, new HelmMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.iron, new ChestMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.iron, new LegsMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.iron, new BootsMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.pigiron, new ShieldMaterialStats(380, 33)); + TinkerRegistry.addMaterialStats(TinkerMaterials.pigiron, new HelmMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.pigiron, new ChestMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.pigiron, new LegsMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.pigiron, new BootsMaterialStats(35, 0, 0)); // Mod Integration TinkerRegistry.addMaterialStats(TinkerMaterials.copper, new ShieldMaterialStats(210, 33)); + TinkerRegistry.addMaterialStats(TinkerMaterials.copper, new HelmMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.copper, new ChestMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.copper, new LegsMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.copper, new BootsMaterialStats(35, 0, 0)); TinkerRegistry.addMaterialStats(TinkerMaterials.bronze, new ShieldMaterialStats(430, 33)); + TinkerRegistry.addMaterialStats(TinkerMaterials.bronze, new HelmMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.bronze, new ChestMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.bronze, new LegsMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.bronze, new BootsMaterialStats(35, 0, 0)); TinkerRegistry.addMaterialStats(TinkerMaterials.lead, new ShieldMaterialStats(334, 33)); + TinkerRegistry.addMaterialStats(TinkerMaterials.lead, new HelmMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.lead, new ChestMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.lead, new LegsMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.lead, new BootsMaterialStats(35, 0, 0)); TinkerRegistry.addMaterialStats(TinkerMaterials.silver, new ShieldMaterialStats(250, 33)); + TinkerRegistry.addMaterialStats(TinkerMaterials.silver, new HelmMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.silver, new ChestMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.silver, new LegsMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.silver, new BootsMaterialStats(35, 0, 0)); TinkerRegistry.addMaterialStats(TinkerMaterials.electrum, new ShieldMaterialStats(50, 33)); + TinkerRegistry.addMaterialStats(TinkerMaterials.electrum, new HelmMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.electrum, new ChestMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.electrum, new LegsMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.electrum, new BootsMaterialStats(35, 0, 0)); TinkerRegistry.addMaterialStats(TinkerMaterials.steel, new ShieldMaterialStats(540, 33)); + TinkerRegistry.addMaterialStats(TinkerMaterials.steel, new HelmMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.steel, new ChestMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.steel, new LegsMaterialStats(35, 0, 0)); + TinkerRegistry.addMaterialStats(TinkerMaterials.steel, new BootsMaterialStats(35, 0, 0)); for (String s : fluids.keySet()) { diff --git a/src/main/java/lance5057/tDefense/core/parts/TDParts.java b/src/main/java/lance5057/tDefense/core/parts/TDParts.java index 07eca75..af0d8f4 100644 --- a/src/main/java/lance5057/tDefense/core/parts/TDParts.java +++ b/src/main/java/lance5057/tDefense/core/parts/TDParts.java @@ -40,6 +40,8 @@ public class TDParts extends ModuleBase { public static ToolPart setting; public static ToolPart wire; public static ToolPart filigree; + + public static ToolPart armor_hoodCloth; protected static ArrayList<Item> itemList = new ArrayList<Item>(); @@ -90,6 +92,8 @@ public class TDParts extends ModuleBase { // ClothMat = new PartMaterialType(cloth, MaterialCloth.TYPE); //registry.registerAll((Item[]) itemList.toArray()); + + armor_hoodCloth = regToolPart(Material.VALUE_Ingot * 1, "armor_hood_cloth", event); } private static ToolPart regToolPart(int castVolume, String name, RegistryEvent.Register<Item> event) { diff --git a/src/main/java/lance5057/tDefense/core/renderers/SheatheModel.java b/src/main/java/lance5057/tDefense/core/renderers/SheatheModel.java index b2df647..01695aa 100644 --- a/src/main/java/lance5057/tDefense/core/renderers/SheatheModel.java +++ b/src/main/java/lance5057/tDefense/core/renderers/SheatheModel.java @@ -1,6 +1,7 @@ package lance5057.tDefense.core.renderers; import lance5057.tDefense.core.tools.bases.Shield; +import lance5057.tDefense.core.tools.basic.TowerShield; import lance5057.tDefense.core.tools.basic.Zweihander; import net.minecraft.client.Minecraft; import net.minecraft.client.model.ModelBiped; @@ -81,7 +82,7 @@ public class SheatheModel extends ModelBiped { if(weapon.getItem() instanceof Zweihander || weapon.getItem() instanceof Cleaver) { - GlStateManager.scale(2f, 2f, 1f); + GlStateManager.scale(1.5f, 1.5f, 1f); } Minecraft.getMinecraft().getRenderItem().renderItem(weapon, ItemCameraTransforms.TransformType.NONE); @@ -99,7 +100,10 @@ public class SheatheModel extends ModelBiped { GlStateManager.translate(-0.1F, 0.175f, 0.3f); if (shield.getItem() instanceof Shield) { - + if(shield.getItem() instanceof TowerShield) + { + GlStateManager.scale(1.5f, 1.5f, 1f); + } GlStateManager.rotate(180 - 45, 0, 0, 1); GlStateManager.translate(-0.0F, -0.3f, 0.1f); GlStateManager.scale(1.35, 1.35, 1.35); diff --git a/src/main/java/lance5057/tDefense/core/tools/TDTools.java b/src/main/java/lance5057/tDefense/core/tools/TDTools.java index 2d72189..7aeec67 100644 --- a/src/main/java/lance5057/tDefense/core/tools/TDTools.java +++ b/src/main/java/lance5057/tDefense/core/tools/TDTools.java @@ -11,16 +11,20 @@ import lance5057.tDefense.core.tools.armor.cloth.TinkersRobe; import lance5057.tDefense.core.tools.armor.cloth.TinkersShawl; import lance5057.tDefense.core.tools.armor.cloth.TinkersShoes; import lance5057.tDefense.core.tools.armor.heavy.TinkersBreastplate; +import lance5057.tDefense.core.tools.armor.heavy.TinkersGrieves; import lance5057.tDefense.core.tools.armor.heavy.TinkersHelm; +import lance5057.tDefense.core.tools.armor.heavy.TinkersSabatons; import lance5057.tDefense.core.tools.armor.straps.ItemStraps; import lance5057.tDefense.core.tools.basic.FishingRod; import lance5057.tDefense.core.tools.basic.HeaterShield; import lance5057.tDefense.core.tools.basic.RoundShield; import lance5057.tDefense.core.tools.basic.Shears; +import lance5057.tDefense.core.tools.basic.TowerShield; import lance5057.tDefense.core.tools.basic.Zweihander; import lance5057.tDefense.core.tools.baubles.Amulet; import lance5057.tDefense.core.tools.baubles.Ring; import lance5057.tDefense.core.tools.baubles.Sheathe; +import net.minecraft.inventory.EntityEquipmentSlot; import net.minecraft.item.Item; import net.minecraft.util.ResourceLocation; import net.minecraftforge.common.MinecraftForge; @@ -42,12 +46,16 @@ public class TDTools { // Tools public static ToolCore roundshield; public static ToolCore heatershield; + public static ToolCore towershield; public static ToolCore zweihander; public static ToolCore shears; public static ToolCore fishingRod; //armor - public static ItemStraps straps; + public static ItemStraps strapsHead; + public static ItemStraps strapsChest; + public static ItemStraps strapsLegs; + public static ItemStraps strapsFeet; public static ToolCore hood; public static ToolCore shawl; @@ -86,8 +94,15 @@ public class TDTools { // PRE-INITIALIZATION @Subscribe public void preInit(FMLPreInitializationEvent event) { - straps = new ItemStraps(); - itemList.add(straps); + strapsHead = new ItemStraps(EntityEquipmentSlot.HEAD); + strapsChest = new ItemStraps(EntityEquipmentSlot.CHEST); + strapsLegs = new ItemStraps(EntityEquipmentSlot.LEGS); + strapsFeet = new ItemStraps(EntityEquipmentSlot.FEET); + + itemList.add(strapsHead); + itemList.add(strapsChest); + itemList.add(strapsLegs); + itemList.add(strapsFeet); } private void regTools() { @@ -99,6 +114,7 @@ public class TDTools { roundshield = new RoundShield(); heatershield = new HeaterShield(); + towershield = new TowerShield(); zweihander = new Zweihander(); shears = new Shears(); fishingRod = new FishingRod(); @@ -110,8 +126,8 @@ public class TDTools { helm = new TinkersHelm(); breastplate = new TinkersBreastplate(); - grieves = new TinkersHelm(); - sabatons = new TinkersBreastplate(); + grieves = new TinkersGrieves(); + sabatons = new TinkersSabatons(); sheathe = new Sheathe(); ring = new Ring(); @@ -119,6 +135,7 @@ public class TDTools { regTool(roundshield, "roundshield", event); regTool(heatershield, "heatershield", event); + regTool(towershield, "towershield", event); regTool(zweihander, "zweihander", event); regTool(shears, "shears", event); regTool(fishingRod, "fishingRod", event); @@ -148,7 +165,7 @@ public class TDTools { event.getRegistry().register(tool); TinkerRegistry.registerTool(tool); TinkersDefense.proxy.registerToolModel(tool); - itemList.add(tool); + //itemList.add(tool); } private void registerModifiers() { @@ -175,6 +192,7 @@ public class TDTools { private void regToolBuilding() { TinkerRegistry.registerToolCrafting(roundshield); TinkerRegistry.registerToolForgeCrafting(heatershield); + TinkerRegistry.registerToolForgeCrafting(towershield); TinkerRegistry.registerToolForgeCrafting(zweihander); TinkerRegistry.registerToolCrafting(shears); TinkerRegistry.registerToolCrafting(fishingRod); diff --git a/src/main/java/lance5057/tDefense/core/tools/armor/cloth/TinkersHood.java b/src/main/java/lance5057/tDefense/core/tools/armor/cloth/TinkersHood.java index 6ab4561..82cd6ee 100644 --- a/src/main/java/lance5057/tDefense/core/tools/armor/cloth/TinkersHood.java +++ b/src/main/java/lance5057/tDefense/core/tools/armor/cloth/TinkersHood.java @@ -1,24 +1,28 @@ package lance5057.tDefense.core.tools.armor.cloth; +import lance5057.tDefense.Reference; import lance5057.tDefense.core.materials.ClothMaterialStats; import lance5057.tDefense.core.materials.HelmMaterialStats; import lance5057.tDefense.core.parts.TDParts; +import lance5057.tDefense.core.tools.armor.renderers.cloth.ModelTinkersHood; import lance5057.tDefense.core.tools.bases.ArmorCore; +import net.minecraft.client.model.ModelBiped; +import net.minecraft.client.renderer.texture.TextureAtlasSprite; import net.minecraft.entity.Entity; +import net.minecraft.entity.EntityLivingBase; import net.minecraft.item.ItemStack; +import net.minecraft.util.ResourceLocation; import net.minecraft.world.World; import slimeknights.tconstruct.library.tinkering.PartMaterialType; +import slimeknights.tconstruct.library.tools.ToolCore; public class TinkersHood extends ArmorCore { - int induceDamage = 0; - + int induceDamage = 0; public TinkersHood() { - super(new PartMaterialType(TDParts.cloth, ClothMaterialStats.TYPE), - new PartMaterialType(TDParts.cloth, ClothMaterialStats.TYPE), - PartMaterialType.extra(TDParts.rivets)); + super(new PartMaterialType(TDParts.cloth, ClothMaterialStats.TYPE), new PartMaterialType(TDParts.cloth, ClothMaterialStats.TYPE), PartMaterialType.extra(TDParts.rivets)); setUnlocalizedName("tinkerhood"); } @@ -30,16 +34,36 @@ public class TinkersHood extends ArmorCore } @Override - public float damagePotential() { + public float damagePotential() + { // TODO Auto-generated method stub return 0; } @Override - public double attackSpeed() { + public double attackSpeed() + { // TODO Auto-generated method stub return 0; } - + @Override + public String getArmorTexture(ItemStack stack, int layer) + { + String s = ""; + switch(layer) + { + case 0: s = "textures/armor/hood/_hood_cloth.png"; break; + case 1: s = "textures/armor/hood/_hood_trim.png"; break; + case 2: s = "textures/armor/hood/_hood_metal.png"; break; + } + return s; + } + + @Override + public ModelBiped getArmorModel(ItemStack stack) + { + return new ModelTinkersHood(stack); + } + } diff --git a/src/main/java/lance5057/tDefense/core/tools/armor/cloth/TinkersRobe.java b/src/main/java/lance5057/tDefense/core/tools/armor/cloth/TinkersRobe.java index b879e29..0304cdc 100644 --- a/src/main/java/lance5057/tDefense/core/tools/armor/cloth/TinkersRobe.java +++ b/src/main/java/lance5057/tDefense/core/tools/armor/cloth/TinkersRobe.java @@ -1,9 +1,10 @@ package lance5057.tDefense.core.tools.armor.cloth; import lance5057.tDefense.core.materials.ClothMaterialStats; -import lance5057.tDefense.core.materials.HelmMaterialStats; import lance5057.tDefense.core.parts.TDParts; +import lance5057.tDefense.core.tools.armor.renderers.cloth.ModelTinkersRobe; import lance5057.tDefense.core.tools.bases.ArmorCore; +import net.minecraft.client.model.ModelBiped; import net.minecraft.entity.Entity; import net.minecraft.item.ItemStack; import net.minecraft.world.World; @@ -41,5 +42,24 @@ public class TinkersRobe extends ArmorCore return 0; } + @Override + public String getArmorTexture(ItemStack stack, int layer) + { + String s = ""; + switch(layer) + { + case 0: s = "textures/armor/robe/_robe_cloth.png"; break; + case 1: s = "textures/armor/robe/_robe_trim.png"; break; + case 2: s = "textures/armor/robe/_robe_metal.png"; break; + } + return s; + } + + @Override + public ModelBiped getArmorModel(ItemStack stack) + { + return new ModelTinkersRobe(stack); + } + } diff --git a/src/main/java/lance5057/tDefense/core/tools/armor/cloth/TinkersShawl.java b/src/main/java/lance5057/tDefense/core/tools/armor/cloth/TinkersShawl.java index 01d74ee..949c587 100644 --- a/src/main/java/lance5057/tDefense/core/tools/armor/cloth/TinkersShawl.java +++ b/src/main/java/lance5057/tDefense/core/tools/armor/cloth/TinkersShawl.java @@ -3,7 +3,10 @@ package lance5057.tDefense.core.tools.armor.cloth; import lance5057.tDefense.core.materials.ClothMaterialStats; import lance5057.tDefense.core.materials.HelmMaterialStats; import lance5057.tDefense.core.parts.TDParts; +import lance5057.tDefense.core.tools.armor.renderers.cloth.ModelTinkersRobe; +import lance5057.tDefense.core.tools.armor.renderers.cloth.ModelTinkersShawl; import lance5057.tDefense.core.tools.bases.ArmorCore; +import net.minecraft.client.model.ModelBiped; import net.minecraft.entity.Entity; import net.minecraft.item.ItemStack; import net.minecraft.world.World; @@ -11,14 +14,11 @@ import slimeknights.tconstruct.library.tinkering.PartMaterialType; public class TinkersShawl extends ArmorCore { - int induceDamage = 0; - + int induceDamage = 0; public TinkersShawl() { - super(new PartMaterialType(TDParts.cloth, ClothMaterialStats.TYPE), - new PartMaterialType(TDParts.cloth, ClothMaterialStats.TYPE), - PartMaterialType.extra(TDParts.armorPlate)); + super(new PartMaterialType(TDParts.cloth, ClothMaterialStats.TYPE), new PartMaterialType(TDParts.cloth, ClothMaterialStats.TYPE), PartMaterialType.extra(TDParts.armorPlate)); setUnlocalizedName("tinkershawl"); } @@ -30,16 +30,42 @@ public class TinkersShawl extends ArmorCore } @Override - public float damagePotential() { + public float damagePotential() + { // TODO Auto-generated method stub return 0; } @Override - public double attackSpeed() { + public double attackSpeed() + { // TODO Auto-generated method stub return 0; } - + @Override + public String getArmorTexture(ItemStack stack, int layer) + { + String s = ""; + switch (layer) + { + case 0: + s = "textures/armor/shawl/_shawl_cloth.png"; + break; + case 1: + s = "textures/armor/shawl/_shawl_trim.png"; + break; + case 2: + s = "textures/armor/shawl/_shawl_metal.png"; + break; + } + return s; + } + + @Override + public ModelBiped getArmorModel(ItemStack stack) + { + return new ModelTinkersShawl(stack); + } + } diff --git a/src/main/java/lance5057/tDefense/core/tools/armor/cloth/TinkersShoes.java b/src/main/java/lance5057/tDefense/core/tools/armor/cloth/TinkersShoes.java index c78f8a4..1a1e27e 100644 --- a/src/main/java/lance5057/tDefense/core/tools/armor/cloth/TinkersShoes.java +++ b/src/main/java/lance5057/tDefense/core/tools/armor/cloth/TinkersShoes.java @@ -3,7 +3,10 @@ package lance5057.tDefense.core.tools.armor.cloth; import lance5057.tDefense.core.materials.ClothMaterialStats; import lance5057.tDefense.core.materials.HelmMaterialStats; import lance5057.tDefense.core.parts.TDParts; +import lance5057.tDefense.core.tools.armor.renderers.cloth.ModelTinkersShawl; +import lance5057.tDefense.core.tools.armor.renderers.cloth.ModelTinkersShoes; import lance5057.tDefense.core.tools.bases.ArmorCore; +import net.minecraft.client.model.ModelBiped; import net.minecraft.entity.Entity; import net.minecraft.item.ItemStack; import net.minecraft.world.World; @@ -19,7 +22,8 @@ public class TinkersShoes extends ArmorCore { super(new PartMaterialType(TDParts.cloth, ClothMaterialStats.TYPE), PartMaterialType.extra(TDParts.rivets), - PartMaterialType.handle(TinkerTools.bowString)); + new PartMaterialType(TDParts.cloth, ClothMaterialStats.TYPE), + PartMaterialType.bowstring(TinkerTools.bowString)); setUnlocalizedName("tinkershoes"); } @@ -42,5 +46,25 @@ public class TinkersShoes extends ArmorCore return 0; } + @Override + public String getArmorTexture(ItemStack stack, int layer) + { + String s = ""; + switch(layer) + { + case 0: s = "textures/armor/shoes/_shoes_cloth.png"; break; + case 2: s = "textures/armor/shoes/_shoes_trim.png"; break; + case 1: s = "textures/armor/shoes/_shoes_metal.png"; break; + case 3: s = "textures/armor/shoes/_shoes_string.png"; break; + } + return s; + } + + @Override + public ModelBiped getArmorModel(ItemStack stack) + { + return new ModelTinkersShoes(stack); + } + } diff --git a/src/main/java/lance5057/tDefense/core/tools/armor/heavy/TinkersBreastplate.java b/src/main/java/lance5057/tDefense/core/tools/armor/heavy/TinkersBreastplate.java index 2885d7d..a222e79 100644 --- a/src/main/java/lance5057/tDefense/core/tools/armor/heavy/TinkersBreastplate.java +++ b/src/main/java/lance5057/tDefense/core/tools/armor/heavy/TinkersBreastplate.java @@ -2,7 +2,10 @@ package lance5057.tDefense.core.tools.armor.heavy; import lance5057.tDefense.core.materials.ChestMaterialStats; import lance5057.tDefense.core.parts.TDParts; +import lance5057.tDefense.core.tools.armor.renderers.heavy.ModelTinkersBreastplate; import lance5057.tDefense.core.tools.bases.ArmorCore; +import net.minecraft.client.model.ModelBiped; +import net.minecraft.item.ItemStack; import slimeknights.tconstruct.library.tinkering.PartMaterialType; import slimeknights.tconstruct.tools.TinkerTools; @@ -17,22 +20,23 @@ public class TinkersBreastplate extends ArmorCore setUnlocalizedName("tinkersbreastplate"); } -// @Override -// public void damageArmor(EntityLivingBase entity, ItemStack stack, DamageSource source, int damage, int slot) { -// // TODO Auto-generated method stub -// -// } - + @Override + public String getArmorTexture(ItemStack stack, int layer) + { + String s = ""; + switch(layer) + { + case 0: s = "textures/armor/breastplate/_breastplate_plate.png"; break; + case 1: s = "textures/armor/breastplate/_breastplate_smallplate.png"; break; + case 2: s = "textures/armor/breastplate/_breastplate_trim.png"; break; + case 3: s = "textures/armor/breastplate/_breastplate_chain.png"; break; + } + return s; + } -// @Override -// public String getArmorTexture(ItemStack stack, Entity entity, int slot, String type) -// { -// return "tinkersdefense:textures/armor/Tinkersbreastplate.png"; -// } -// -// @Override -// public ArmorRenderer getRenderer() -// { -// return ClientProxy.breastplate; -// } + @Override + public ModelBiped getArmorModel(ItemStack stack) + { + return new ModelTinkersBreastplate(stack); + } } diff --git a/src/main/java/lance5057/tDefense/core/tools/armor/heavy/TinkersGrieves.java b/src/main/java/lance5057/tDefense/core/tools/armor/heavy/TinkersGrieves.java index 478ec43..00b08d2 100644 --- a/src/main/java/lance5057/tDefense/core/tools/armor/heavy/TinkersGrieves.java +++ b/src/main/java/lance5057/tDefense/core/tools/armor/heavy/TinkersGrieves.java @@ -3,7 +3,10 @@ package lance5057.tDefense.core.tools.armor.heavy; import lance5057.tDefense.core.materials.ClothMaterialStats; import lance5057.tDefense.core.materials.LegsMaterialStats; import lance5057.tDefense.core.parts.TDParts; +import lance5057.tDefense.core.tools.armor.renderers.heavy.ModelTinkersGrieves; import lance5057.tDefense.core.tools.bases.ArmorCore; +import net.minecraft.client.model.ModelBiped; +import net.minecraft.item.ItemStack; import slimeknights.tconstruct.library.tinkering.PartMaterialType; public class TinkersGrieves extends ArmorCore @@ -11,9 +14,29 @@ public class TinkersGrieves extends ArmorCore public TinkersGrieves() { super(new PartMaterialType(TDParts.armorPlate, LegsMaterialStats.TYPE), - new PartMaterialType(TDParts.filigree, LegsMaterialStats.TYPE), + new PartMaterialType(TDParts.chainmail, LegsMaterialStats.TYPE), PartMaterialType.handle(TDParts.filigree), new PartMaterialType(TDParts.cloth, ClothMaterialStats.TYPE)); setUnlocalizedName("tinkersgrieves"); } + + @Override + public String getArmorTexture(ItemStack stack, int layer) + { + String s = ""; + switch(layer) + { + case 0: s = "textures/armor/grieves/_grieves_plate.png"; break; + case 1: s = "textures/armor/grieves/_grieves_chain.png"; break; + case 2: s = "textures/armor/grieves/_grieves_trim.png"; break; + case 3: s = "textures/armor/grieves/_grieves_cloth.png"; break; + } + return s; + } + + @Override + public ModelBiped getArmorModel(ItemStack stack) + { + return new ModelTinkersGrieves(stack); + } } diff --git a/src/main/java/lance5057/tDefense/core/tools/armor/heavy/TinkersHelm.java b/src/main/java/lance5057/tDefense/core/tools/armor/heavy/TinkersHelm.java index 3029a2d..dc3548f 100644 --- a/src/main/java/lance5057/tDefense/core/tools/armor/heavy/TinkersHelm.java +++ b/src/main/java/lance5057/tDefense/core/tools/armor/heavy/TinkersHelm.java @@ -2,7 +2,10 @@ package lance5057.tDefense.core.tools.armor.heavy; import lance5057.tDefense.core.materials.HelmMaterialStats; import lance5057.tDefense.core.parts.TDParts; +import lance5057.tDefense.core.tools.armor.renderers.heavy.ModelTinkersHelm; import lance5057.tDefense.core.tools.bases.ArmorCore; +import net.minecraft.client.model.ModelBiped; +import net.minecraft.item.ItemStack; import slimeknights.tconstruct.library.tinkering.PartMaterialType; import slimeknights.tconstruct.tools.TinkerTools; @@ -16,4 +19,24 @@ public class TinkersHelm extends ArmorCore PartMaterialType.extra(TDParts.chainmail)); setUnlocalizedName("tinkershelm"); } + + @Override + public String getArmorTexture(ItemStack stack, int layer) + { + String s = ""; + switch(layer) + { + case 0: s = "textures/armor/helm/_helm_top.png"; break; + case 1: s = "textures/armor/helm/_helm_plate.png"; break; + case 2: s = "textures/armor/helm/_helm_visor.png"; break; + case 3: s = "textures/armor/helm/_helm_chain.png"; break; + } + return s; + } + + @Override + public ModelBiped getArmorModel(ItemStack stack) + { + return new ModelTinkersHelm(stack); + } } diff --git a/src/main/java/lance5057/tDefense/core/tools/armor/heavy/TinkersSabatons.java b/src/main/java/lance5057/tDefense/core/tools/armor/heavy/TinkersSabatons.java index 0bb34af..1881f18 100644 --- a/src/main/java/lance5057/tDefense/core/tools/armor/heavy/TinkersSabatons.java +++ b/src/main/java/lance5057/tDefense/core/tools/armor/heavy/TinkersSabatons.java @@ -3,7 +3,10 @@ package lance5057.tDefense.core.tools.armor.heavy; import lance5057.tDefense.core.materials.BootsMaterialStats; import lance5057.tDefense.core.materials.ClothMaterialStats; import lance5057.tDefense.core.parts.TDParts; +import lance5057.tDefense.core.tools.armor.renderers.heavy.ModelTinkersSabatons; import lance5057.tDefense.core.tools.bases.ArmorCore; +import net.minecraft.client.model.ModelBiped; +import net.minecraft.item.ItemStack; import slimeknights.tconstruct.library.tinkering.PartMaterialType; public class TinkersSabatons extends ArmorCore @@ -14,6 +17,26 @@ public class TinkersSabatons extends ArmorCore new PartMaterialType(TDParts.armorPlate, BootsMaterialStats.TYPE), PartMaterialType.handle(TDParts.filigree), new PartMaterialType(TDParts.cloth, ClothMaterialStats.TYPE)); - setUnlocalizedName("tinkershelm"); + setUnlocalizedName("tinkerssabatons"); + } + + @Override + public String getArmorTexture(ItemStack stack, int layer) + { + String s = ""; + switch(layer) + { + case 0: s = "textures/armor/sabatons/_sabatons_plates.png"; break; + case 1: s = "textures/armor/sabatons/_sabatons_caps.png"; break; + case 2: s = "textures/armor/sabatons/_sabatons_trim.png"; break; + case 3: s = "textures/armor/sabatons/_sabatons_soles.png"; break; + } + return s; + } + + @Override + public ModelBiped getArmorModel(ItemStack stack) + { + return new ModelTinkersSabatons(stack); } } diff --git a/src/main/java/lance5057/tDefense/core/tools/armor/renderers/ArmorRenderer.java b/src/main/java/lance5057/tDefense/core/tools/armor/renderers/ArmorRenderer.java index f16df63..bcd2de7 100644 --- a/src/main/java/lance5057/tDefense/core/tools/armor/renderers/ArmorRenderer.java +++ b/src/main/java/lance5057/tDefense/core/tools/armor/renderers/ArmorRenderer.java @@ -1,98 +1,99 @@ -//package lance5057.tDefense.armor.renderers; -// -//import java.util.ArrayList; -//import java.util.List; -// -//import lance5057.tDefense.TinkersDefense; -//import lance5057.tDefense.armor.ArmorCore; -//import net.minecraft.client.model.ModelBiped; -//import net.minecraft.client.model.ModelRenderer; -//import net.minecraft.entity.Entity; -//import net.minecraft.item.ItemStack; -//import net.minecraft.nbt.NBTTagCompound; -// -//import org.lwjgl.opengl.GL11; -// -//public class ArmorRenderer extends ModelBiped -//{ -// public String[] colors; -// -// public ItemStack stack; -// public String defaultFolder; -// -// private final int[] order = new int[] {1, 2, 3, 0, 4, 5, 6, 7, 8, 9}; -// -// public List<ModelRenderer> boxes = new ArrayList<ModelRenderer>(); -// -// public NBTTagCompound defaultTags = new NBTTagCompound(); -// -// public ArmorRenderer(float a, float b, int c, int d) -// { -// super(a, b, c, d); -// } -// -// public void init() -// { -// defaultTags.getCompoundTag("ArmorRenderer"); -// -// for(int i = 0; i < boxList.size(); i++) -// { -// final String rendertag = ((ModelRenderer) boxList.get(i)).boxName; -// if(rendertag != null) -// { -// defaultTags.setBoolean(rendertag, ((ModelRenderer) boxList.get(i)).isHidden); -// } -// } -// } -// -// public void SetColors(String[] colors, String defaultFolder, ItemStack stack) -// { -// this.colors = colors; -// this.stack = stack; -// this.defaultFolder = defaultFolder; -// } -// -// @Override -// public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) -// { -// GL11.glPushMatrix(); -// -// if(TinkersDefense.config.transparency) -// { -// GL11.glEnable(GL11.GL_BLEND); -// } -// -// final NBTTagCompound tags = stack.getTagCompound().getCompoundTag("ArmorRenderer"); -// -// for(int j = 0; j < boxList.size(); j++) -// { -// final ModelRenderer box = (ModelRenderer) boxList.get(j); -// if(tags.hasKey(box.boxName)) -// { -// box.isHidden = tags.getBoolean(box.boxName); -// } -// } -// -// for(int i = 0; i < 10; i++) -// { -// //final String texture = ((ArmorCore) stack.getItem()).getTexture(order[i], stack); -//// if(texture != "") -//// { -//// GL11.glPushMatrix(); -//// -//// //((ArmorCore) stack.getItem()).renderArmor(entity, f, f1, f2, f3, f4, f5, colors, stack, order[i]); -//// super.render(entity, f, f1, f2, f3, f4, f5); -//// -//// GL11.glPopMatrix(); -//// } -// } -// -// if(TinkersDefense.config.transparency) -// { -// GL11.glDisable(GL11.GL_BLEND); -// } -// -// GL11.glPopMatrix(); -// GL11.glColor3d(1.0, 1.0, 1.0); -// } -//} +package lance5057.tDefense.core.tools.armor.renderers; + +import java.util.List; + +import org.lwjgl.opengl.GL11; + +import lance5057.tDefense.Reference; +import lance5057.tDefense.core.tools.armor.renderers.shaders.ArmorShader; +import lance5057.tDefense.core.tools.bases.ArmorCore; +import net.minecraft.client.model.ModelBiped; +import net.minecraft.entity.Entity; +import net.minecraft.entity.EntityLivingBase; +import net.minecraft.entity.item.EntityArmorStand; +import net.minecraft.item.ItemStack; +import net.minecraft.nbt.NBTTagCompound; +import net.minecraft.util.ResourceLocation; +import slimeknights.tconstruct.library.materials.Material; +import slimeknights.tconstruct.library.utils.TagUtil; +import slimeknights.tconstruct.library.utils.TinkerUtil; + +public class ArmorRenderer extends ModelBiped +{ + // public String[] partNames; + + public ItemStack stack; + public String defaultFolder; + + // public List<ModelRenderer> boxes = new ArrayList<ModelRenderer>(); + + public NBTTagCompound defaultTags = new NBTTagCompound(); + + public ArmorRenderer(float a, float b, int c, int d, ItemStack stack) + { + super(a, b, c, d); + + this.stack = stack; + } + + @Override + public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) + { + GL11.glPushMatrix(); + + for (int i = 0; i < TinkerUtil.getMaterialsFromTagList(TagUtil.getBaseMaterialsTagList(stack)).size(); i++) + { + GL11.glPushMatrix(); + + EntityLivingBase e = (EntityLivingBase) entity; + String s = stack.getItem().getRegistryName().getResourceDomain(); + List<Material> mats = TinkerUtil.getMaterialsFromTagList(TagUtil.getBaseMaterialsTagList(stack)); + + String o = mats.get(i).renderInfo.getTextureSuffix(); + + ArmorShader.selectRenderer(mats.get(i).renderInfo, new ResourceLocation(Reference.MOD_ID, ((ArmorCore) stack.getItem()).getArmorTexture(stack, i))); + + super.render(entity, f, f1, f2, f3, f4, f5); + + GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); + GL11.glDisable(GL11.GL_BLEND); + GL11.glPopMatrix(); + } + + GL11.glPopMatrix(); + GL11.glColor3d(1.0, 1.0, 1.0); + } + + //Mojang plz + @Override + public void setRotationAngles(float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch, float scaleFactor, Entity entityIn) + { + if (entityIn instanceof EntityArmorStand) + { + EntityArmorStand entityarmorstand = (EntityArmorStand) entityIn; + this.bipedHead.rotateAngleX = 0.017453292F * entityarmorstand.getHeadRotation().getX(); + this.bipedHead.rotateAngleY = 0.017453292F * entityarmorstand.getHeadRotation().getY(); + this.bipedHead.rotateAngleZ = 0.017453292F * entityarmorstand.getHeadRotation().getZ(); + this.bipedHead.setRotationPoint(0.0F, 1.0F, 0.0F); + this.bipedBody.rotateAngleX = 0.017453292F * entityarmorstand.getBodyRotation().getX(); + this.bipedBody.rotateAngleY = 0.017453292F * entityarmorstand.getBodyRotation().getY(); + this.bipedBody.rotateAngleZ = 0.017453292F * entityarmorstand.getBodyRotation().getZ(); + this.bipedLeftArm.rotateAngleX = 0.017453292F * entityarmorstand.getLeftArmRotation().getX(); + this.bipedLeftArm.rotateAngleY = 0.017453292F * entityarmorstand.getLeftArmRotation().getY(); + this.bipedLeftArm.rotateAngleZ = 0.017453292F * entityarmorstand.getLeftArmRotation().getZ(); + this.bipedRightArm.rotateAngleX = 0.017453292F * entityarmorstand.getRightArmRotation().getX(); + this.bipedRightArm.rotateAngleY = 0.017453292F * entityarmorstand.getRightArmRotation().getY(); + this.bipedRightArm.rotateAngleZ = 0.017453292F * entityarmorstand.getRightArmRotation().getZ(); + this.bipedLeftLeg.rotateAngleX = 0.017453292F * entityarmorstand.getLeftLegRotation().getX(); + this.bipedLeftLeg.rotateAngleY = 0.017453292F * entityarmorstand.getLeftLegRotation().getY(); + this.bipedLeftLeg.rotateAngleZ = 0.017453292F * entityarmorstand.getLeftLegRotation().getZ(); + this.bipedLeftLeg.setRotationPoint(1.9F, 11.0F, 0.0F); + this.bipedRightLeg.rotateAngleX = 0.017453292F * entityarmorstand.getRightLegRotation().getX(); + this.bipedRightLeg.rotateAngleY = 0.017453292F * entityarmorstand.getRightLegRotation().getY(); + this.bipedRightLeg.rotateAngleZ = 0.017453292F * entityarmorstand.getRightLegRotation().getZ(); + this.bipedRightLeg.setRotationPoint(-1.9F, 11.0F, 0.0F); + copyModelAngles(this.bipedHead, this.bipedHeadwear); + } else + super.setRotationAngles(limbSwing, limbSwingAmount, ageInTicks, netHeadYaw, headPitch, scaleFactor, entityIn); + } +} diff --git a/src/main/java/lance5057/tDefense/core/tools/armor/renderers/cloth/ModelTinkersHood.java b/src/main/java/lance5057/tDefense/core/tools/armor/renderers/cloth/ModelTinkersHood.java index ba5db86..f9c55b1 100644 --- a/src/main/java/lance5057/tDefense/core/tools/armor/renderers/cloth/ModelTinkersHood.java +++ b/src/main/java/lance5057/tDefense/core/tools/armor/renderers/cloth/ModelTinkersHood.java @@ -1,169 +1,56 @@ -//package lance5057.tDefense.armor.renderers.cloth; -// -//import lance5057.tDefense.armor.renderers.ArmorRenderer; -//import net.minecraft.client.model.ModelRenderer; -// -///** -// * TinkersHood - Either Mojang or a mod author -// * Created using Tabula 4.1.1 -// */ -//public class ModelTinkersHood extends ArmorRenderer -//{ -// public ModelRenderer Flop; -// public ModelRenderer Flop_1; -// public ModelRenderer Flop_2; -// public ModelRenderer ScarfNeck; -// public ModelRenderer Band; -// public ModelRenderer BandTilted; -// public ModelRenderer Rim; -// public ModelRenderer HatTop; -// public ModelRenderer HatTopTall; -// public ModelRenderer Tip; -// public ModelRenderer Tip_1; -// public ModelRenderer Tip_2; -// public ModelRenderer ScarfExtra; -// public ModelRenderer ScarfExtra_1; -// public ModelRenderer BandExtra; -// public ModelRenderer BandExtra_1; -// -// public ModelTinkersHood() -// { -// super(0.2f, 0, 128, 64); -// -// textureWidth = 128; -// textureHeight = 64; -// -// bipedHeadwear = new ModelRenderer(this, "Headwear"); -// bipedHeadwear.setTextureOffset(32, 0); -// bipedHeadwear.addBox(-4.0F, -8.0F, -4.0F, 8, 8, 8, 0.2f + 0.5F); -// bipedHeadwear.setRotationPoint(0.0F, 0.0F + 0, 0.0F); -// -// Flop = new ModelRenderer(this, "Flop"); -// Flop.setTextureOffset(64, 0); -// Flop.setRotationPoint(0.0F, 0.0F, 0.0F); -// Flop.addBox(-3.0F, -7.6F, 1.0F, 6, 6, 3, 0.5F); -// setRotateAngle(Flop, -0.3490658503988659F, 0.0F, 0.0F); -// bipedHead.addChild(Flop); -// -// Flop_1 = new ModelRenderer(this, "Flop 1"); -// Flop_1.setTextureOffset(82, 0); -// Flop_1.setRotationPoint(0.0F, 0.0F, 0.0F); -// Flop_1.addBox(-2.0F, -6.8F, -0.1F, 4, 4, 5, 0.5F); -// setRotateAngle(Flop_1, -0.6981317007977318F, 0.0F, 0.0F); -// bipedHead.addChild(Flop_1); -// -// Flop_2 = new ModelRenderer(this, "Flop 2"); -// Flop_2.setTextureOffset(64, 25); -// Flop_2.setRotationPoint(0.0F, 0.0F, 0.0F); -// Flop_2.addBox(-1.0F, -6.6F, 2.0F, 2, 2, 4, 0.5F); -// setRotateAngle(Flop_2, -1.0471975511965976F, 0.0F, 0.0F); -// bipedHead.addChild(Flop_2); -// -// ScarfExtra = new ModelRenderer(this, "ScarfExtra"); -// ScarfExtra.setTextureOffset(44, 32); -// ScarfExtra.setRotationPoint(0.0F, 0.0F, 0.0F); -// ScarfExtra.addBox(0.0F, 0.0F, 2.0F, 3, 7, 1, 0.0F); -// setRotateAngle(ScarfExtra, 0.0F, 0.0F, -0.17453292519943295F); -// bipedBody.addChild(ScarfExtra); -// -// ScarfExtra_1 = new ModelRenderer(this, "ScarfExtra 1"); -// ScarfExtra_1.setTextureOffset(36, 32); -// ScarfExtra_1.setRotationPoint(0.0F, 0.0F, 0.0F); -// ScarfExtra_1.addBox(-3.0F, 0.0F, 2.0F, 3, 11, 1, 0.0F); -// setRotateAngle(ScarfExtra_1, 0.0F, 0.0F, 0.17453292519943295F); -// bipedBody.addChild(ScarfExtra_1); -// -// ScarfNeck = new ModelRenderer(this, "ScarfNeck"); -// ScarfNeck.setTextureOffset(0, 32); -// ScarfNeck.setRotationPoint(0.0F, 0.0F, 0.0F); -// ScarfNeck.addBox(-4.5F, -2.0F, -4.5F, 9, 3, 9, 0.3F); -// bipedHead.addChild(ScarfNeck); -// -// HatTop = new ModelRenderer(this, "HatTop"); -// HatTop.setTextureOffset(52, 33); -// HatTop.addBox(-4.0F, -8.0F, -4.0F, 8, 3, 8, 0.1f + 0.5F); -// HatTop.setRotationPoint(0.0F, 0.0F + 0, 0.0F); -// bipedHead.addChild(HatTop); -// -// HatTopTall = new ModelRenderer(this, "HatTopTall"); -// HatTopTall.setTextureOffset(96, 4); -// HatTopTall.setRotationPoint(0.0F, 0.0F, 0.0F); -// HatTopTall.addBox(-4.0F, -14.0F, -4.0F, 8, 5, 8, 0.5F); -// bipedHead.addChild(HatTopTall); -// -// Rim = new ModelRenderer(this, "Rim"); -// Rim.setTextureOffset(65, 20); -// Rim.setRotationPoint(0.0F, 0.0F, 0.0F); -// Rim.addBox(-6.0F, -5.5F, -6.0F, 12, 1, 12, 0.1F); -// bipedHead.addChild(Rim); -// -// BandTilted = new ModelRenderer(this, "BandTilted"); -// BandTilted.setTextureOffset(64, 9); -// BandTilted.setRotationPoint(0.0F, 0.0F, 0.0F); -// BandTilted.addBox(-4.5F, -2.7F, -8.5F, 9, 2, 9, 0.0F); -// setRotateAngle(BandTilted, -1.2f, 0.0F, 0.0F); -// bipedHead.addChild(BandTilted); -// -// Band = new ModelRenderer(this, "Band"); -// Band.setTextureOffset(64, 9); -// Band.setRotationPoint(0.0F, 0.0F, 0.0F); -// Band.addBox(-4.5F, -7F, -4.5F, 9, 3, 9, -0.3F); -// bipedHead.addChild(Band); -// -// BandExtra = new ModelRenderer(this, "BandExtra"); -// BandExtra.setTextureOffset(44, 32); -// BandExtra.setRotationPoint(0.0F, 0.0F, 0.0F); -// BandExtra.addBox(0.2F, -6.0F, 3.4F, 3, 5, 1, -0.3F); -// setRotateAngle(BandExtra, 0.0F, 0.0F, -0.17453292519943295F); -// bipedHead.addChild(BandExtra); -// -// BandExtra_1 = new ModelRenderer(this, "BandExtra 1"); -// BandExtra_1.setTextureOffset(36, 32); -// BandExtra_1.setRotationPoint(0.0F, 0.0F, 0.0F); -// BandExtra_1.addBox(-3.2F, -6.0F, 3.4F, 3, 7, 1, -0.3F); -// setRotateAngle(BandExtra_1, 0.0F, 0.0F, 0.17453292519943295F); -// bipedHead.addChild(BandExtra_1); -// -// Tip = new ModelRenderer(this, "Tip"); -// Tip.setTextureOffset(0, 44); -// Tip.setRotationPoint(0.0F, 0.0F, 0.0F); -// Tip.addBox(-3.0F, -10.8F, -5.0F, 6, 3, 6, 0.5F); -// setRotateAngle(Tip, -0.2617993877991494F, 0.0F, 0.0F); -// bipedHead.addChild(Tip); -// -// Tip_1 = new ModelRenderer(this, "Tip 1"); -// Tip_1.setTextureOffset(0, 53); -// Tip_1.setRotationPoint(0.0F, 0.0F, 0.0F); -// Tip_1.addBox(-2.0F, -12.9F, -6.7F, 4, 3, 4, 0.5F); -// setRotateAngle(Tip_1, -0.5235987755982988F, 0.0F, 0.0F); -// bipedHead.addChild(Tip_1); -// -// Tip_2 = new ModelRenderer(this, "Tip 2"); -// Tip_2.setTextureOffset(18, 45); -// Tip_2.setRotationPoint(0.0F, 0.0F, 0.0F); -// Tip_2.addBox(-1.0F, -14.6F, -8.8F, 2, 3, 2, 0.5F); -// setRotateAngle(Tip_2, -0.7853981633974483F, 0.0F, 0.0F); -// bipedHead.addChild(Tip_2); -// -// Rim.isHidden = true; -// Band.isHidden = true; -// HatTop.isHidden = true; -// HatTopTall.isHidden = true; -// BandTilted.isHidden = true; -// Tip.isHidden = true; -// Tip_1.isHidden = true; -// Tip_2.isHidden = true; -// -// init(); -// } -// -// /** -// * 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; -// } -//} +package lance5057.tDefense.core.tools.armor.renderers.cloth; + +import lance5057.tDefense.core.tools.armor.renderers.ArmorRenderer; +import net.minecraft.client.model.ModelBase; +import net.minecraft.client.model.ModelRenderer; +import net.minecraft.entity.Entity; +import net.minecraft.item.ItemStack; + +/** + * TinkersHood - Either Mojang or a mod author + * Created using Tabula 7.0.0 + */ +public class ModelTinkersHood extends ArmorRenderer { + public ModelRenderer Flop; + public ModelRenderer Flop_1; + public ModelRenderer Flop_2; + public ModelRenderer ScarfNeck; + + public ModelTinkersHood(ItemStack stack) { + super(0.25f, 0, 96, 64, stack); + this.textureWidth = 96; + this.textureHeight = 64; + + this.Flop_1 = new ModelRenderer(this, 77, 9); + this.Flop_1.setRotationPoint(0.0F, 0.0F, 0.0F); + this.Flop_1.addBox(-2.0F, -6.8F, -0.1F, 4, 4, 5, 0.5F); + this.setRotateAngle(Flop_1, -0.6981317007977318F, 0.0F, 0.0F); + this.bipedHead.addChild(Flop_1); + + this.Flop = new ModelRenderer(this, 78, 0); + this.Flop.setRotationPoint(0.0F, 0.0F, 0.0F); + this.Flop.addBox(-3.0F, -7.6F, 1.0F, 6, 6, 3, 0.5F); + this.setRotateAngle(Flop, -0.3490658503988659F, 0.0F, 0.0F); + this.bipedHead.addChild(Flop); + + this.Flop_2 = new ModelRenderer(this, 84, 18); + this.Flop_2.setRotationPoint(0.0F, 0.0F, 0.0F); + this.Flop_2.addBox(-1.0F, -6.6F, 2.0F, 2, 2, 4, 0.5F); + this.setRotateAngle(Flop_2, -1.0471975511965976F, 0.0F, 0.0F); + this.bipedHead.addChild(Flop_2); + + this.ScarfNeck = new ModelRenderer(this, 60, 24); + this.ScarfNeck.setRotationPoint(0.0F, 0.0F, 0.0F); + this.ScarfNeck.addBox(-4.5F, -2.0F, -4.5F, 9, 3, 9, 0.3F); + this.bipedHead.addChild(ScarfNeck); + } + + /** + * 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; + } +} diff --git a/src/main/java/lance5057/tDefense/core/tools/armor/renderers/cloth/ModelTinkersRobe.java b/src/main/java/lance5057/tDefense/core/tools/armor/renderers/cloth/ModelTinkersRobe.java index 5494518..3157a09 100644 --- a/src/main/java/lance5057/tDefense/core/tools/armor/renderers/cloth/ModelTinkersRobe.java +++ b/src/main/java/lance5057/tDefense/core/tools/armor/renderers/cloth/ModelTinkersRobe.java @@ -1,379 +1,98 @@ -//package lance5057.tDefense.armor.renderers.cloth; -// -//import lance5057.tDefense.armor.renderers.ArmorRenderer; -//import net.minecraft.client.model.ModelRenderer; -// -///** -// * ModelBiped - Either Mojang or a mod author -// * Created using Tabula 4.1.1 -// */ -//public class ModelTinkersRobe extends ArmorRenderer -//{ -// public ModelRenderer LeftFrontL; -// public ModelRenderer LeftBackL; -// public ModelRenderer CenterBackL; -// public ModelRenderer RightFronL; -// public ModelRenderer RightBackL; -// public ModelRenderer CenterFrontL; -// public ModelRenderer CenterFrontR; -// public ModelRenderer CenterBackR; -// public ModelRenderer FrontMidL; -// public ModelRenderer FrontRightMid; -// public ModelRenderer BackMidR; -// public ModelRenderer BackRightMid; -// public ModelRenderer FrontLeftMid; -// public ModelRenderer UnderFrontLeftMid; -// public ModelRenderer UnderBackRightMid; -// public ModelRenderer UnderBackLeftMid; -// public ModelRenderer UnderFrontRightMid; -// public ModelRenderer UnderLeftMid; -// public ModelRenderer UnderRightMid; -// public ModelRenderer FrontMidR; -// public ModelRenderer BackLeftMid; -// public ModelRenderer BackMidL; -// public ModelRenderer FrontLHigh; -// public ModelRenderer UnderFrontRightHigh; -// public ModelRenderer UnderBackRightHigh; -// public ModelRenderer BackUnderHigh; -// public ModelRenderer UnderBackLeftHigh; -// public ModelRenderer RightHigh; -// public ModelRenderer LeftHigh; -// public ModelRenderer FrontRightHigh; -// public ModelRenderer BackRightHigh; -// public ModelRenderer UnderFrontHigh; -// public ModelRenderer UnderFrontLeftHigh; -// public ModelRenderer BackLHigh; -// public ModelRenderer BeltLHip; -// public ModelRenderer BeltStraight; -// public ModelRenderer BeltRHip; -// -// //public ModelRenderer BeltStraightSmall; -// -// public ModelTinkersRobe() -// { -// super(0.1f, 0, 64, 64); -// -// textureWidth = 64; -// textureHeight = 64; -// -// //High -// -// LeftHigh = new ModelRenderer(this, "Left Skirt"); -// LeftHigh.setTextureOffset(52, 38); -// LeftHigh.mirror = true; -// LeftHigh.setRotationPoint(0.0F, 0.0F, 0.0F); -// LeftHigh.addBox(-7.5F, 8.0F, -2.0F, 2, 7, 4, -0.01F); -// setRotateAngle(LeftHigh, 0.0F, 0.0F, -0.9599310885968813F); -// bipedBody.addChild(LeftHigh); -// -// UnderBackLeftHigh = new ModelRenderer(this, "Underside BackLeft Skirt"); -// UnderBackLeftHigh.setTextureOffset(8, 57); -// UnderBackLeftHigh.mirror = true; -// UnderBackLeftHigh.setRotationPoint(0.0F, 0.0F, 0.0F); -// UnderBackLeftHigh.addBox(-0.2F, 8.5F, -7.5F, 4, 6, 1, 0.0F); -// setRotateAngle(UnderBackLeftHigh, 0.9599310885968813F, 0.7853981633974483F, 0.0F); -// bipedBody.addChild(UnderBackLeftHigh); -// -// FrontRightHigh = new ModelRenderer(this, "Front Right Skirt"); -// FrontRightHigh.setTextureOffset(18, 55); -// FrontRightHigh.setRotationPoint(0.0F, 0.0F, 0.0F); -// FrontRightHigh.addBox(-3.3F, 6.6F, 6.1F, 4, 7, 2, 0.0F); -// setRotateAngle(FrontRightHigh, -0.9599310885968813F, 0.2617993877991494F, 0.0F); -// bipedBody.addChild(FrontRightHigh); -// -// RightHigh = new ModelRenderer(this, "Right Skirt"); -// RightHigh.setTextureOffset(52, 38); -// RightHigh.setRotationPoint(0.0F, 0.0F, 0.0F); -// RightHigh.addBox(5.5F, 8.0F, -2.0F, 2, 7, 4, -0.01F); -// setRotateAngle(RightHigh, 0.0F, 0.0F, 0.9599310885968813F); -// bipedBody.addChild(RightHigh); -// -// BackUnderHigh = new ModelRenderer(this, "Underside Back Skirt"); -// BackUnderHigh.setTextureOffset(8, 57); -// BackUnderHigh.setRotationPoint(0.0F, 0.0F, 0.0F); -// BackUnderHigh.addBox(-2.0F, 8.0F, -8.0F, 4, 6, 1, 0.0F); -// setRotateAngle(BackUnderHigh, 0.9599310885968813F, 0.0F, 0.0F); -// bipedBody.addChild(BackUnderHigh); -// -// UnderFrontHigh = new ModelRenderer(this, "Underside Front Skirt"); -// UnderFrontHigh.setTextureOffset(8, 57); -// UnderFrontHigh.setRotationPoint(0.0F, 0.0F, 0.0F); -// UnderFrontHigh.addBox(-2.0F, 8.0F, 7.0F, 4, 6, 1, 0.0F); -// setRotateAngle(UnderFrontHigh, -0.9599310885968813F, 0.0F, 0.0F); -// bipedBody.addChild(UnderFrontHigh); -// -// UnderBackRightHigh = new ModelRenderer(this, -// "Underside BackRight Skirt"); -// UnderBackRightHigh.setTextureOffset(8, 57); -// UnderBackRightHigh.setRotationPoint(0.0F, 0.0F, 0.0F); -// UnderBackRightHigh.addBox(-3.8F, 8.5F, -7.5F, 4, 6, 1, 0.0F); -// setRotateAngle(UnderBackRightHigh, 0.9599310885968813F, -0.7853981633974483F, 0.0F); -// bipedBody.addChild(UnderBackRightHigh); -// -// BackLHigh = new ModelRenderer(this, "Back Left Skirt"); -// BackLHigh.setTextureOffset(18, 55); -// BackLHigh.mirror = true; -// BackLHigh.setRotationPoint(0.0F, 0.0F, 0.0F); -// BackLHigh.addBox(-0.7F, 6.6F, -8.1F, 4, 7, 2, 0.0F); -// setRotateAngle(BackLHigh, 0.9599310885968813F, 0.2617993877991494F, 0.0F); -// bipedBody.addChild(BackLHigh); -// -// BackRightHigh = new ModelRenderer(this, "Back Right Skirt"); -// BackRightHigh.setTextureOffset(18, 55); -// BackRightHigh.setRotationPoint(0.0F, 0.0F, 0.0F); -// BackRightHigh.addBox(-3.3F, 6.6F, -8.1F, 4, 7, 2, 0.0F); -// setRotateAngle(BackRightHigh, 0.9599310885968813F, -0.2617993877991494F, 0.0F); -// bipedBody.addChild(BackRightHigh); -// -// UnderFrontRightHigh = new ModelRenderer(this, -// "Underside FrontRight Skirt"); -// UnderFrontRightHigh.setTextureOffset(8, 57); -// UnderFrontRightHigh.setRotationPoint(0.0F, 0.0F, 0.0F); -// UnderFrontRightHigh.addBox(-3.8F, 8.5F, 6.5F, 4, 6, 1, 0.0F); -// setRotateAngle(UnderFrontRightHigh, -0.9599310885968813F, 0.7853981633974483F, 0.0F); -// bipedBody.addChild(UnderFrontRightHigh); -// -// FrontLHigh = new ModelRenderer(this, "Front Left Skirt"); -// FrontLHigh.setTextureOffset(18, 55); -// FrontLHigh.mirror = true; -// FrontLHigh.setRotationPoint(0.0F, 0.0F, 0.0F); -// FrontLHigh.addBox(-0.7F, 6.6F, 6.1F, 4, 7, 2, 0.0F); -// setRotateAngle(FrontLHigh, -0.9599310885968813F, -0.2617993877991494F, 0.0F); -// bipedBody.addChild(FrontLHigh); -// -// UnderFrontLeftHigh = new ModelRenderer(this, "Under FrontLeft Skirt"); -// UnderFrontLeftHigh.setTextureOffset(8, 57); -// UnderFrontLeftHigh.mirror = true; -// UnderFrontLeftHigh.setRotationPoint(0.0F, 0.0F, 0.0F); -// UnderFrontLeftHigh.addBox(-0.2F, 8.5F, 6.5F, 4, 6, 1, 0.0F); -// setRotateAngle(UnderFrontLeftHigh, -0.9599310885968813F, -0.7853981633974483F, 0.0F); -// bipedBody.addChild(UnderFrontLeftHigh); -// -// //Mid -// FrontMidL = new ModelRenderer(this, "Front Left Dress"); -// FrontMidL.setTextureOffset(16, 32); -// FrontMidL.mirror = true; -// FrontMidL.setRotationPoint(0.0F, 0.0F, 0.0F); -// FrontMidL.addBox(-1.9F, -0.6F, -3.2F, 4, 8, 2, 0.0F); -// setRotateAngle(FrontMidL, -0.4363323129985824F, 0.0F, 0.0F); -// bipedLeftLeg.addChild(FrontMidL); -// -// UnderBackRightMid = new ModelRenderer(this, "Underside BackRight Dress"); -// UnderBackRightMid.setTextureOffset(34, 42); -// UnderBackRightMid.setRotationPoint(0.0F, 0.0F, 0.0F); -// UnderBackRightMid.addBox(-3.0F, 3.0F, 0.2F, 6, 8, 2, 0.0F); -// setRotateAngle(UnderBackRightMid, 0.4363323129985824F, -0.3490658503988659F, 0.0F); -// bipedRightLeg.addChild(UnderBackRightMid); -// -// BackMidR = new ModelRenderer(this, "BackRight Dress"); -// BackMidR.setTextureOffset(28, 32); -// BackMidR.setRotationPoint(0.0F, 0.0F, 0.0F); -// BackMidR.addBox(-2.1F, -0.7F, 1.1F, 4, 8, 2, 0.0F); -// setRotateAngle(BackMidR, 0.4363323129985824F, 0.0F, 0.0F); -// bipedRightLeg.addChild(BackMidR); -// -// UnderLeftMid = new ModelRenderer(this, "Underside Left Dress"); -// UnderLeftMid.setTextureOffset(18, 42); -// UnderLeftMid.mirror = true; -// UnderLeftMid.setRotationPoint(0.0F, 0.0F, 0.0F); -// UnderLeftMid.addBox(0.0F, 3.8F, -3.0F, 2, 7, 6, 0.0F); -// setRotateAngle(UnderLeftMid, 0.0F, 0.0F, -0.4363323129985824F); -// bipedLeftLeg.addChild(UnderLeftMid); -// -// UnderFrontLeftMid = new ModelRenderer(this, "Underside FrontLeft Dress"); -// UnderFrontLeftMid.setTextureOffset(40, 32); -// UnderFrontLeftMid.mirror = true; -// UnderFrontLeftMid.setRotationPoint(0.0F, 0.0F, 0.0F); -// UnderFrontLeftMid.addBox(-3.0F, 3.0F, -2.3F, 6, 8, 2, 0.0F); -// setRotateAngle(UnderFrontLeftMid, -0.4363323129985824F, -0.3490658503988659F, 0.0F); -// bipedLeftLeg.addChild(UnderFrontLeftMid); -// -// BackLeftMid = new ModelRenderer(this, "Back Left Dress"); -// BackLeftMid.setTextureOffset(8, 47); -// BackLeftMid.mirror = true; -// BackLeftMid.setRotationPoint(0.0F, 0.0F, 0.0F); -// BackLeftMid.addBox(-1.3F, -0.4F, 1.5F, 3, 8, 2, 0.0F); -// setRotateAngle(BackLeftMid, 0.4363323129985824F, 1.0471975511965976F, 0.0F); -// bipedLeftLeg.addChild(BackLeftMid); -// -// UnderBackLeftMid = new ModelRenderer(this, "Underside BackLeft Dress"); -// UnderBackLeftMid.setTextureOffset(34, 42); -// UnderBackLeftMid.mirror = true; -// UnderBackLeftMid.setRotationPoint(0.0F, 0.0F, 0.0F); -// UnderBackLeftMid.addBox(-3.0F, 3.0F, 0.2F, 6, 8, 2, 0.0F); -// setRotateAngle(UnderBackLeftMid, 0.4363323129985824F, 0.3490658503988659F, 0.0F); -// bipedLeftLeg.addChild(UnderBackLeftMid); -// -// UnderFrontRightMid = new ModelRenderer(this, -// "Underside FrontRight Dress"); -// UnderFrontRightMid.setTextureOffset(40, 32); -// UnderFrontRightMid.setRotationPoint(0.0F, 0.0F, 0.0F); -// UnderFrontRightMid.addBox(-3.0F, 3.0F, -2.3F, 6, 8, 2, 0.0F); -// setRotateAngle(UnderFrontRightMid, -0.4363323129985824F, 0.3490658503988659F, 0.0F); -// bipedRightLeg.addChild(UnderFrontRightMid); -// -// FrontRightMid = new ModelRenderer(this, "Front Right Dress"); -// FrontRightMid.setTextureOffset(8, 47); -// FrontRightMid.setRotationPoint(0.0F, 0.0F, 0.0F); -// FrontRightMid.addBox(-1.7F, -0.4F, -3.5F, 3, 8, 2, 0.0F); -// setRotateAngle(FrontRightMid, -0.4363323129985824F, 1.0471975511965976F, 0.0F); -// bipedRightLeg.addChild(FrontRightMid); -// -// FrontLeftMid = new ModelRenderer(this, "Front Left Dress"); -// FrontLeftMid.setTextureOffset(8, 47); -// FrontLeftMid.mirror = true; -// FrontLeftMid.setRotationPoint(0.0F, 0.0F, 0.0F); -// FrontLeftMid.addBox(-1.3F, -0.4F, -3.5F, 3, 8, 2, 0.0F); -// setRotateAngle(FrontLeftMid, -0.4363323129985824F, -1.0471975511965976F, 0.0F); -// bipedLeftLeg.addChild(FrontLeftMid); -// -// UnderRightMid = new ModelRenderer(this, "Under Right Dress"); -// UnderRightMid.setTextureOffset(18, 42); -// UnderRightMid.setRotationPoint(0.0F, 0.0F, 0.0F); -// UnderRightMid.addBox(-2.0F, 3.8F, -3.0F, 2, 7, 6, 0.0F); -// setRotateAngle(UnderRightMid, 0.0F, 0.0F, 0.4363323129985824F); -// bipedRightLeg.addChild(UnderRightMid); -// -// BackRightMid = new ModelRenderer(this, "Back Right Dress"); -// BackRightMid.setTextureOffset(8, 47); -// BackRightMid.setRotationPoint(0.0F, 0.0F, 0.0F); -// BackRightMid.addBox(-1.7F, -0.4F, 1.5F, 3, 8, 2, 0.0F); -// setRotateAngle(BackRightMid, 0.4363323129985824F, -1.0471975511965976F, 0.0F); -// bipedRightLeg.addChild(BackRightMid); -// -// FrontMidR = new ModelRenderer(this, "Front Right Dress"); -// FrontMidR.setTextureOffset(16, 32); -// FrontMidR.setRotationPoint(0.0F, 0.0F, 0.0F); -// FrontMidR.addBox(-2.1F, -0.6F, -3.2F, 4, 8, 2, 0.0F); -// setRotateAngle(FrontMidR, -0.4363323129985824F, 0.0F, 0.0F); -// bipedRightLeg.addChild(FrontMidR); -// -// BackMidL = new ModelRenderer(this, "BackLeft Dress"); -// BackMidL.setTextureOffset(28, 32); -// BackMidL.mirror = true; -// BackMidL.setRotationPoint(0.0F, 0.0F, 0.0F); -// BackMidL.addBox(-1.9F, -0.7F, 1.1F, 4, 8, 2, 0.0F); -// setRotateAngle(BackMidL, 0.4363323129985824F, 0.0F, 0.0F); -// bipedLeftLeg.addChild(BackMidL); -// -// //Low -// CenterBackL = new ModelRenderer(this, "Center BackLeft Robe"); -// CenterBackL.setTextureOffset(0, 49); -// CenterBackL.setRotationPoint(0.0F, 0.0F, 0.0F); -// CenterBackL.addBox(-2.9F, -0.2F, 0.5F, 2, 11, 2, 0.0F); -// setRotateAngle(CenterBackL, 0.08726646259971647F, 0.0F, 0.0F); -// bipedLeftLeg.addChild(CenterBackL); -// -// CenterFrontR = new ModelRenderer(this, "Center FrontRight Robe"); -// CenterFrontR.setTextureOffset(0, 49); -// CenterFrontR.setRotationPoint(0.0F, 0.0F, 0.0F); -// CenterFrontR.addBox(0.9F, -0.2F, -2.5F, 2, 11, 2, 0.0F); -// setRotateAngle(CenterFrontR, -0.08726646259971647F, 0.0F, 0.0F); -// bipedRightLeg.addChild(CenterFrontR); -// -// CenterFrontL = new ModelRenderer(this, "Center FrontLeft Robe"); -// CenterFrontL.setTextureOffset(0, 49); -// CenterFrontL.setRotationPoint(0.0F, 0.0F, 0.0F); -// CenterFrontL.addBox(-2.9F, -0.2F, -2.5F, 2, 11, 2, 0.0F); -// setRotateAngle(CenterFrontL, -0.08726646259971647F, 0.0F, 0.0F); -// bipedLeftLeg.addChild(CenterFrontL); -// -// RightBackL = new ModelRenderer(this, "Right Back Robe"); -// RightBackL.setTextureOffset(0, 32); -// RightBackL.mirror = true; -// RightBackL.setRotationPoint(0.0F, 0.0F, 0.0F); -// RightBackL.addBox(-2.2F, -0.3F, -1.5F, 4, 11, 4, 0.0F); -// setRotateAngle(RightBackL, 0.08726646259971647F, 0.0F, 0.08726646259971647F); -// bipedRightLeg.addChild(RightBackL); -// -// CenterBackR = new ModelRenderer(this, "Center BackRight Robe"); -// CenterBackR.setTextureOffset(0, 49); -// CenterBackR.setRotationPoint(0.0F, 0.0F, 0.0F); -// CenterBackR.addBox(0.9F, -0.2F, 0.5F, 2, 11, 2, 0.0F); -// setRotateAngle(CenterBackR, 0.08726646259971647F, 0.0F, 0.0F); -// bipedRightLeg.addChild(CenterBackR); -// -// LeftBackL = new ModelRenderer(this, "Left Back Robe"); -// LeftBackL.setTextureOffset(0, 32); -// LeftBackL.setRotationPoint(0.0F, 0.0F, 0.0F); -// LeftBackL.addBox(-1.8F, -0.3F, -1.5F, 4, 11, 4, 0.0F); -// setRotateAngle(LeftBackL, 0.08726646259971647F, 0.0F, -0.08726646259971647F); -// bipedLeftLeg.addChild(LeftBackL); -// -// RightFronL = new ModelRenderer(this, "Right Front Robe"); -// RightFronL.setTextureOffset(0, 32); -// RightFronL.setRotationPoint(0.0F, 0.0F, 0.0F); -// RightFronL.addBox(-2.2F, -0.3F, -2.5F, 4, 11, 4, 0.01F); -// setRotateAngle(RightFronL, -0.08726646259971647F, 0.0F, 0.08726646259971647F); -// bipedRightLeg.addChild(RightFronL); -// -// LeftFrontL = new ModelRenderer(this, "Left Front Robe"); -// LeftFrontL.setTextureOffset(0, 32); -// LeftFrontL.mirror = true; -// LeftFrontL.setRotationPoint(0.0F, 0.0F, 0.0F); -// LeftFrontL.addBox(-1.8F, -0.3F, -2.5F, 4, 11, 4, 0.01F); -// setRotateAngle(LeftFrontL, -0.08726646259971647F, 0.0F, -0.08726646259971647F); -// bipedLeftLeg.addChild(LeftFrontL); -// -// //Belts -// BeltRHip = new ModelRenderer(this, "Belt Right Hip"); -// BeltRHip.setTextureOffset(32, 55); -// BeltRHip.setRotationPoint(0.0F, 0.0F, 0.0F); -// BeltRHip.addBox(-3.3F, 0.0F, -3.0F, 10, 3, 6, -0.11F); -// setRotateAngle(BeltRHip, 0.0F, 0.0F, -0.13962634015954636F); -// bipedRightLeg.addChild(BeltRHip); -// -// BeltLHip = new ModelRenderer(this, "Belt Left Hip"); -// BeltLHip.setTextureOffset(32, 55); -// BeltLHip.setRotationPoint(0.0F, 0.0F, 0.0F); -// BeltLHip.addBox(-6.7F, 0.0F, -3.0F, 10, 3, 6, -0.1F); -// setRotateAngle(BeltLHip, 0.0F, 0.0F, 0.13962634015954636F); -// bipedLeftLeg.addChild(BeltLHip); -// -// BeltStraight = new ModelRenderer(this, "Belt Straight"); -// BeltStraight.setTextureOffset(34, 55); -// BeltStraight.setRotationPoint(0.0F, 0.0F, 0.0F); -// BeltStraight.addBox(-4.5F, 10.5F, -3.0F, 9, 3, 6, -0.1F); -// bipedBody.addChild(BeltStraight); -// -// BackLHigh.isHidden = true; -// BackRightHigh.isHidden = true; -// BackUnderHigh.isHidden = true; -// FrontLHigh.isHidden = true; -// FrontRightHigh.isHidden = true; -// LeftHigh.isHidden = true; -// RightHigh.isHidden = true; -// UnderBackLeftHigh.isHidden = true; -// UnderBackRightHigh.isHidden = true; -// UnderFrontHigh.isHidden = true; -// UnderFrontLeftHigh.isHidden = true; -// UnderFrontRightHigh.isHidden = true; -// -// BackLeftMid.isHidden = true; -// BackMidL.isHidden = true; -// BackMidR.isHidden = true; -// BackRightMid.isHidden = true; -// FrontLeftMid.isHidden = true; -// FrontMidL.isHidden = true; -// FrontMidR.isHidden = true; -// FrontRightMid.isHidden = true; -// UnderBackLeftMid.isHidden = true; -// UnderBackRightMid.isHidden = true; -// UnderFrontLeftMid.isHidden = true; -// UnderFrontRightMid.isHidden = true; -// UnderLeftMid.isHidden = true; -// UnderRightMid.isHidden = true; -// -// init(); -// } -// -// /** -// * 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; -// } -//} +package lance5057.tDefense.core.tools.armor.renderers.cloth; + +import lance5057.tDefense.core.tools.armor.renderers.ArmorRenderer; +import net.minecraft.client.model.ModelBase; +import net.minecraft.client.model.ModelRenderer; +import net.minecraft.entity.Entity; +import net.minecraft.item.ItemStack; + +/** + * TinkersRobe - Either Mojang or a mod author + * Created using Tabula 7.0.0 + */ +public class ModelTinkersRobe extends ArmorRenderer { + public ModelRenderer LeftBackL; + public ModelRenderer CenterBackL; + public ModelRenderer RightFronL; + public ModelRenderer RightBackL; + public ModelRenderer CenterFrontL; + public ModelRenderer CenterFrontR; + public ModelRenderer CenterBackR; + public ModelRenderer BeltRHip; + public ModelRenderer BeltStraight; + public ModelRenderer LeftFrontL; + + public ModelTinkersRobe(ItemStack stack) { + super(0.25f, 0, 96, 64, stack); + this.textureWidth = 96; + this.textureHeight = 64; + + this.BeltStraight = new ModelRenderer(this, 66, 24); + this.BeltStraight.setRotationPoint(0.0F, 10.0F, 0.0F); + this.BeltStraight.addBox(-4.5F, 0.0F, -3.0F, 9, 3, 6, -0.31F); + this.bipedBody.addChild(BeltStraight); + + this.RightFronL = new ModelRenderer(this, 64, 0); + this.RightFronL.setRotationPoint(0.0F, 0.0F, 0.0F); + this.RightFronL.addBox(-2.2F, -0.3F, -2.5F, 4, 11, 4, 0.01F); + this.setRotateAngle(RightFronL, -0.08726646259971647F, 0.0F, 0.08726646259971647F); + this.bipedRightLeg.addChild(RightFronL); + + this.RightBackL = new ModelRenderer(this, 64, 0); + this.RightBackL.setRotationPoint(0.0F, 0.0F, 0.0F); + this.RightBackL.addBox(-2.2F, -0.3F, -1.5F, 4, 11, 4, 0.0F); + this.setRotateAngle(RightBackL, 0.08726646259971647F, 0.0F, 0.08726646259971647F); + this.bipedRightLeg.addChild(RightBackL); + + this.BeltRHip = new ModelRenderer(this, 64, 15); + this.BeltRHip.setRotationPoint(0.0F, 10.0F, 0.0F); + this.BeltRHip.addBox(-5.3F, 0.0F, -3.0F, 10, 3, 6, -0.3F); + this.setRotateAngle(BeltRHip, 0.0F, 0.0F, -0.13962634015954636F); + this.bipedBody.addChild(BeltRHip); + + this.CenterBackL = new ModelRenderer(this, 80, 0); + this.CenterBackL.setRotationPoint(0.0F, 0.0F, 0.0F); + this.CenterBackL.addBox(-2.9F, -0.2F, 0.4F, 2, 11, 2, 0.0F); + this.setRotateAngle(CenterBackL, 0.08726646259971647F, 0.0F, 0.0F); + this.bipedLeftLeg.addChild(CenterBackL); + + this.CenterFrontR = new ModelRenderer(this, 80, 0); + this.CenterFrontR.setRotationPoint(0.0F, 0.0F, 0.0F); + this.CenterFrontR.addBox(0.9F, -0.2F, -2.6F, 2, 11, 2, 0.0F); + this.setRotateAngle(CenterFrontR, -0.08726646259971647F, 0.0F, 0.0F); + this.bipedRightLeg.addChild(CenterFrontR); + + this.CenterFrontL = new ModelRenderer(this, 80, 0); + this.CenterFrontL.setRotationPoint(0.0F, 0.0F, 0.0F); + this.CenterFrontL.addBox(-2.9F, -0.2F, -2.6F, 2, 11, 2, 0.0F); + this.setRotateAngle(CenterFrontL, -0.08726646259971647F, 0.0F, 0.0F); + this.bipedLeftLeg.addChild(CenterFrontL); + + this.LeftBackL = new ModelRenderer(this, 64, 0); + this.LeftBackL.setRotationPoint(0.0F, 0.0F, 0.0F); + this.LeftBackL.addBox(-1.8F, -0.3F, -1.5F, 4, 11, 4, 0.0F); + this.setRotateAngle(LeftBackL, 0.08726646259971647F, 0.0F, -0.08726646259971647F); + this.bipedLeftLeg.addChild(LeftBackL); + + this.CenterBackR = new ModelRenderer(this, 80, 0); + this.CenterBackR.setRotationPoint(0.0F, 0.0F, 0.0F); + this.CenterBackR.addBox(0.9F, -0.2F, 0.4F, 2, 11, 2, 0.0F); + this.setRotateAngle(CenterBackR, 0.08726646259971647F, 0.0F, 0.0F); + this.bipedRightLeg.addChild(CenterBackR); + + this.LeftFrontL = new ModelRenderer(this, 64, 0); + this.LeftFrontL.setRotationPoint(0.0F, 0.0F, 0.0F); + this.LeftFrontL.addBox(-1.8F, -0.3F, -2.5F, 4, 11, 4, 0.0F); + this.setRotateAngle(LeftFrontL, -0.08726646259971647F, 0.0F, -0.08726646259971647F); + this.bipedLeftLeg.addChild(LeftFrontL); + } + + /** + * 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; + } +} diff --git a/src/main/java/lance5057/tDefense/core/tools/armor/renderers/cloth/ModelTinkersShawl.java b/src/main/java/lance5057/tDefense/core/tools/armor/renderers/cloth/ModelTinkersShawl.java index 888843e..67ca62e 100644 --- a/src/main/java/lance5057/tDefense/core/tools/armor/renderers/cloth/ModelTinkersShawl.java +++ b/src/main/java/lance5057/tDefense/core/tools/armor/renderers/cloth/ModelTinkersShawl.java @@ -1,176 +1,72 @@ -//package lance5057.tDefense.armor.renderers.cloth; -// -//import lance5057.tDefense.armor.renderers.ArmorRenderer; -//import net.minecraft.client.model.ModelRenderer; -// -///** -// * ModelTinkersShawl - Either Mojang or a mod author -// * Created using Tabula 4.1.1 -// */ -//public class ModelTinkersShawl extends ArmorRenderer -//{ -// public ModelRenderer Button; -// public ModelRenderer Zipper; -// public ModelRenderer ArmTrimL; -// public ModelRenderer ArmTrimR; -// public ModelRenderer TrimNeck; -// public ModelRenderer ButtonArmL; -// public ModelRenderer ButtonArmR; -// public ModelRenderer ShawlLeftShort; -// public ModelRenderer ShawlRightShort; -// public ModelRenderer ShawlLeftTrim; -// public ModelRenderer TrimShawl; -// public ModelRenderer ShawlRightTrim; -// public ModelRenderer ZipperShort; -// public ModelRenderer ShawlLeftLong; -// public ModelRenderer ShawlLeftTrimLong; -// public ModelRenderer ShawlRightLong; -// public ModelRenderer ShawlRightTrimLong; -// -// public ModelTinkersShawl() -// { -// super(0.1f, 0, 64, 64); -// -// textureWidth = 64; -// textureHeight = 64; -// -// TrimNeck = new ModelRenderer(this, "Collar"); -// TrimNeck.setTextureOffset(20, 32); -// TrimNeck.setRotationPoint(0.0F, 0.0F, 0.0F); -// TrimNeck.addBox(-4.5F, -0.5F, -2.5F, 9, 2, 5, -0.3F); -// bipedBody.addChild(TrimNeck); -// -// Button = new ModelRenderer(this, "Collar Button"); -// Button.setTextureOffset(15, 32); -// Button.setRotationPoint(0.0F, 0.0F, 0.0F); -// Button.addBox(-1.5F, -0.5F, -2.5F, 2, 2, 1, -0.2F); -// setRotateAngle(Button, 0.0F, 0.0F, -0.7853981633974483F); -// bipedBody.addChild(Button); -// -// ButtonArmL = new ModelRenderer(this, "Button Arm Left"); -// ButtonArmL.setTextureOffset(23, 39); -// ButtonArmL.mirror = true; -// ButtonArmL.setRotationPoint(0.0F, 0.0F, 0.0F); -// ButtonArmL.addBox(2.5F, 3.0F, -5.0F, 1, 2, 2, -0.2F); -// setRotateAngle(ButtonArmL, 0.7853981633974483F, 0.0F, 0.0F); -// bipedLeftArm.addChild(ButtonArmL); -// -// ButtonArmR = new ModelRenderer(this, "Button Arm Right"); -// ButtonArmR.setTextureOffset(23, 39); -// ButtonArmR.setRotationPoint(0.0F, 0.0F, 0.0F); -// ButtonArmR.addBox(-3.5F, 3.0F, -5.0F, 1, 2, 2, -0.2F); -// setRotateAngle(ButtonArmR, 0.7853981633974483F, 0.0F, 0.0F); -// bipedRightArm.addChild(ButtonArmR); -// -// ArmTrimR = new ModelRenderer(this, "Arm Trim Right"); -// ArmTrimR.setTextureOffset(0, 32); -// ArmTrimR.setRotationPoint(0.0F, 0.0F, 0.0F); -// ArmTrimR.addBox(-3.5F, 5.0F, -2.5F, 5, 2, 5, -0.3F); -// bipedRightArm.addChild(ArmTrimR); -// -// ArmTrimL = new ModelRenderer(this, "Arm Trim Left"); -// ArmTrimL.setTextureOffset(0, 32); -// ArmTrimL.mirror = true; -// ArmTrimL.setRotationPoint(0.0F, 0.0F, 0.0F); -// ArmTrimL.addBox(-1.5F, 5.0F, -2.5F, 5, 2, 5, -0.3F); -// bipedLeftArm.addChild(ArmTrimL); -// -// ZipperShort = new ModelRenderer(this, "Zipper Bottom"); -// ZipperShort.setTextureOffset(30, 53); -// ZipperShort.setRotationPoint(0.0F, 0.0F, 0.0F); -// ZipperShort.addBox(-1.0F, 6.3F, -2.5F, 2, 5, 1, -0.3F); -// bipedBody.addChild(ZipperShort); -// -// Zipper = new ModelRenderer(this, "Zipper Top"); -// Zipper.setTextureOffset(30, 52); -// Zipper.setRotationPoint(0.0F, 0.0F, 0.0F); -// Zipper.addBox(-1.0F, 0.2F, -2.5F, 2, 7, 1, -0.3F); -// bipedBody.addChild(Zipper); -// -// ShawlLeftTrim = new ModelRenderer(this, "Shawl Left Trim"); -// ShawlLeftTrim.setTextureOffset(28, 39); -// ShawlLeftTrim.setRotationPoint(0.0F, 0.0F, 0.0F); -// ShawlLeftTrim.addBox(-5.1F, 2.45F, -2.5F, 9, 2, 5, -0.29F); -// setRotateAngle(ShawlLeftTrim, 0.0F, 0.0F, -0.2792526803190927F); -// bipedLeftArm.addChild(ShawlLeftTrim); -// -// ShawlRightTrim = new ModelRenderer(this, "Shawl Right Trim Short"); -// ShawlRightTrim.setTextureOffset(28, 39); -// ShawlRightTrim.mirror = true; -// ShawlRightTrim.setRotationPoint(0.0F, 0.0F, 0.0F); -// ShawlRightTrim.addBox(-3.95F, 2.45F, -2.5F, 9, 2, 5, -0.29F); -// setRotateAngle(ShawlRightTrim, 0.0F, 0.0F, 0.2792526803190927F); -// bipedRightArm.addChild(ShawlRightTrim); -// -// ShawlRightTrimLong = new ModelRenderer(this, "Shawl Right Trim Long"); -// ShawlRightTrimLong.setTextureOffset(0, 39); -// ShawlRightTrimLong.mirror = true; -// ShawlRightTrimLong.setRotationPoint(0.0F, 0.0F, 0.0F); -// ShawlRightTrimLong.addBox(-3.95F, 7.85F, -2.5F, 9, 2, 5, -0.29F); -// setRotateAngle(ShawlRightTrimLong, 0.0F, 0.0F, 0.2792526803190927F); -// bipedRightArm.addChild(ShawlRightTrimLong); -// -// ShawlLeftTrimLong = new ModelRenderer(this, "Shawl Left Trim Long"); -// ShawlLeftTrimLong.setTextureOffset(0, 39); -// ShawlLeftTrimLong.setRotationPoint(0.0F, 0.0F, 0.0F); -// ShawlLeftTrimLong.addBox(-5.1F, 7.85F, -2.5F, 9, 2, 5, -0.29F); -// setRotateAngle(ShawlLeftTrimLong, 0.0F, 0.0F, -0.2792526803190927F); -// bipedLeftArm.addChild(ShawlLeftTrimLong); -// -// ShawlLeftLong = new ModelRenderer(this, "Shawl Left Long"); -// ShawlLeftLong.setTextureOffset(38, 50); -// ShawlLeftLong.setRotationPoint(0.0F, 0.0F, 0.0F); -// ShawlLeftLong.addBox(-4.55F, -1.05F, -2.0F, 8, 10, 4, 0.11F); -// setRotateAngle(ShawlLeftLong, 0.0F, 0.0F, -0.2792526803190927F); -// bipedLeftArm.addChild(ShawlLeftLong); -// -// ShawlRightLong = new ModelRenderer(this, "Shawl Right Long"); -// ShawlRightLong.setTextureOffset(38, 50); -// ShawlRightLong.mirror = true; -// ShawlRightLong.setRotationPoint(0.0F, 0.0F, 0.0F); -// ShawlRightLong.addBox(-3.45F, -1.05F, -2.0F, 8, 10, 4, 0.11F); -// setRotateAngle(ShawlRightLong, 0.0F, 0.0F, 0.2792526803190927F); -// bipedRightArm.addChild(ShawlRightLong); -// -// ShawlLeftShort = new ModelRenderer(this, "Shawl Left Short"); -// ShawlLeftShort.setTextureOffset(38, 50); -// ShawlLeftShort.setRotationPoint(0.0F, 0.0F, 0.0F); -// ShawlLeftShort.addBox(-1.55F, -1.05F, -2.0F, 5, 5, 4, 0.01F); -// setRotateAngle(ShawlLeftShort, 0.0F, 0.0F, -0.2792526803190927F); -// bipedLeftArm.addChild(ShawlLeftShort); -// -// ShawlRightShort = new ModelRenderer(this, "Shawl Right Short"); -// ShawlRightShort.setTextureOffset(38, 50); -// ShawlRightShort.mirror = true; -// ShawlRightShort.setRotationPoint(0.0F, 0.0F, 0.0F); -// ShawlRightShort.addBox(-3.45F, -1.05F, -2.0F, 5, 5, 4, 0.01F); -// setRotateAngle(ShawlRightShort, 0.0F, 0.0F, 0.2792526803190927F); -// bipedRightArm.addChild(ShawlRightShort); -// -// TrimShawl = new ModelRenderer(this, "Trim Shawl Short"); -// TrimShawl.setTextureOffset(20, 32); -// TrimShawl.setRotationPoint(0.0F, 0.0F, 0.0F); -// TrimShawl.addBox(-4.5F, 5.5F, -2.5F, 9, 2, 5, -0.31F); -// bipedBody.addChild(TrimShawl); -// -// ArmTrimL.isHidden = true; -// ArmTrimR.isHidden = true; -// ShawlLeftTrim.isHidden = true; -// ShawlRightTrim.isHidden = true; -// TrimShawl.isHidden = true; -// Zipper.isHidden = true; -// ZipperShort.isHidden = true; -// -// init(); -// } -// -// /** -// * 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; -// } -//} +package lance5057.tDefense.core.tools.armor.renderers.cloth; + +import lance5057.tDefense.core.tools.armor.renderers.ArmorRenderer; +import net.minecraft.client.model.ModelBase; +import net.minecraft.client.model.ModelRenderer; +import net.minecraft.entity.Entity; +import net.minecraft.item.ItemStack; + +/** + * TinkersShawl - Either Mojang or a mod author + * Created using Tabula 7.0.0 + */ +public class ModelTinkersShawl extends ArmorRenderer { + public ModelRenderer Button; + public ModelRenderer TrimNeck; + public ModelRenderer ShawlLeftLong; + public ModelRenderer ShawlLeftTrimLong; + public ModelRenderer ShawlRightLong; + public ModelRenderer ShawlRightTrimLong; + + public ModelTinkersShawl(ItemStack stack) { + super(0.25f, 0, 96, 64, stack); + this.textureWidth = 96; + this.textureHeight = 64; + + this.TrimNeck = new ModelRenderer(this, 68, 49); + this.TrimNeck.setRotationPoint(0.0F, 0.0F, 0.0F); + this.TrimNeck.addBox(-4.5F, -0.4F, -2.5F, 9, 2, 5, -0.3F); + this.bipedBody.addChild(TrimNeck); + + this.ShawlRightTrimLong = new ModelRenderer(this, 62, 40); + this.ShawlRightTrimLong.mirror = true; + this.ShawlRightTrimLong.setRotationPoint(0.0F, 0.0F, 0.0F); + this.ShawlRightTrimLong.addBox(-4.5F, 7.85F, -3.0F, 11, 3, 6, -0.5F); + this.setRotateAngle(ShawlRightTrimLong, 0.0F, 0.0F, 0.2792526803190927F); + this.bipedRightArm.addChild(ShawlRightTrimLong); + + this.ShawlRightLong = new ModelRenderer(this, 70, 26); + this.ShawlRightLong.mirror = true; + this.ShawlRightLong.setRotationPoint(0.0F, 0.0F, 0.0F); + this.ShawlRightLong.addBox(-3.45F, -0.95F, -2.0F, 9, 10, 4, 0.3F); + this.setRotateAngle(ShawlRightLong, 0.0F, 0.0F, 0.2792526803190927F); + this.bipedRightArm.addChild(ShawlRightLong); + + this.Button = new ModelRenderer(this, 67, 58); + this.Button.setRotationPoint(0.0F, 0.0F, 0.0F); + this.Button.addBox(-1.5F, -0.5F, -2.8F, 2, 2, 1, -0.2F); + this.setRotateAngle(Button, 0.0F, 0.0F, -0.7853981633974483F); + this.bipedBody.addChild(Button); + + this.ShawlLeftLong = new ModelRenderer(this, 70, 26); + this.ShawlLeftLong.setRotationPoint(0.0F, 0.0F, 0.0F); + this.ShawlLeftLong.addBox(-5.55F, -1.00F, -2.0F, 9, 10, 4, 0.31F); + this.setRotateAngle(ShawlLeftLong, 0.0F, 0.0F, -0.2792526803190927F); + this.bipedLeftArm.addChild(ShawlLeftLong); + + this.ShawlLeftTrimLong = new ModelRenderer(this, 62, 40); + this.ShawlLeftTrimLong.setRotationPoint(0.0F, 0.0F, 0.0F); + this.ShawlLeftTrimLong.addBox(-6.5F, 7.85F, -3.0F, 11, 3, 6, -0.5F); + this.setRotateAngle(ShawlLeftTrimLong, 0.0F, 0.0F, -0.2792526803190927F); + this.bipedLeftArm.addChild(ShawlLeftTrimLong); + } + + /** + * 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; + } +} diff --git a/src/main/java/lance5057/tDefense/core/tools/armor/renderers/cloth/ModelTinkersShoes.java b/src/main/java/lance5057/tDefense/core/tools/armor/renderers/cloth/ModelTinkersShoes.java index d751ded..e5f6682 100644 --- a/src/main/java/lance5057/tDefense/core/tools/armor/renderers/cloth/ModelTinkersShoes.java +++ b/src/main/java/lance5057/tDefense/core/tools/armor/renderers/cloth/ModelTinkersShoes.java @@ -1,79 +1,42 @@ -//package lance5057.tDefense.armor.renderers.cloth; -// -//import lance5057.tDefense.armor.renderers.ArmorRenderer; -//import net.minecraft.client.model.ModelRenderer; -// -///** -// * ModelTinkersShoes - Either Mojang or a mod author -// * Created using Tabula 4.1.1 -// */ -//public class ModelTinkersShoes extends ArmorRenderer -//{ -// public ModelRenderer FootL; -// public ModelRenderer FootR; -// public ModelRenderer OverLegL; -// public ModelRenderer OverLegR; -// public ModelRenderer ShoeL; -// public ModelRenderer ShoeR; -// -// public ModelTinkersShoes() -// { -// super(0.1f, 0, 64, 64); -// -// textureWidth = 64; -// textureHeight = 64; -// -// FootL = new ModelRenderer(this, "Foot Left"); -// FootL.setTextureOffset(16, 41); -// FootL.setRotationPoint(0F, 0F, 0F); -// FootL.addBox(-2F, 10.1F, -3.0F, 4, 2, 1, 0.2F); -// bipedLeftLeg.addChild(FootL); -// -// FootR = new ModelRenderer(this, "Foot Right"); -// FootR.setTextureOffset(16, 41); -// FootR.setRotationPoint(0F, 0F, 0F); -// FootR.addBox(-2F, 10.1F, -3.0F, 4, 2, 1, 0.2F); -// bipedRightLeg.addChild(FootR); -// -// OverLegL = new ModelRenderer(this, "Over Leg Left"); -// OverLegL.setTextureOffset(0, 32); -// OverLegL.addBox(-2.0F, 0.0F, -2.0F, 4, 12, 4, 0.2F); -// OverLegL.setRotationPoint(0F, 0F, 0F); -// bipedLeftLeg.addChild(OverLegL); -// -// OverLegR = new ModelRenderer(this, "Over Leg Right"); -// OverLegR.setTextureOffset(0, 32); -// OverLegR.mirror = true; -// OverLegR.addBox(-2.0F, 0.0F, -2.0F, 4, 12, 4, 0.2F); -// OverLegR.setRotationPoint(0F, 0F, 0F); -// bipedRightLeg.addChild(OverLegR); -// -// ShoeL = new ModelRenderer(this, "Shoe Left"); -// ShoeL.setTextureOffset(16, 32); -// ShoeL.addBox(-2.0F, 7.0F, -2.0F, 4, 5, 4, 0.21F); -// ShoeL.setRotationPoint(0F, 0F, 0F); -// bipedLeftLeg.addChild(ShoeL); -// -// ShoeR = new ModelRenderer(this, "Shoe Right"); -// ShoeR.setTextureOffset(16, 32); -// ShoeR.mirror = true; -// ShoeR.addBox(-2.0F, 7.0F, -2.0F, 4, 5, 4, 0.21F); -// ShoeR.setRotationPoint(0F, 0F, 0F); -// bipedRightLeg.addChild(ShoeR); -// -// OverLegL.isHidden = true; -// OverLegR.isHidden = true; -// -// init(); -// } -// -// /** -// * 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; -// } -//} +package lance5057.tDefense.core.tools.armor.renderers.cloth; + +import lance5057.tDefense.core.tools.armor.renderers.ArmorRenderer; +import net.minecraft.client.model.ModelRenderer; +import net.minecraft.entity.Entity; +import net.minecraft.item.ItemStack; + +/** + * ModelPlayer - Either Mojang or a mod author + * Created using Tabula 7.0.0 + */ +public class ModelTinkersShoes extends ArmorRenderer { + public ModelRenderer FootL; + public ModelRenderer FootR; + + public ModelTinkersShoes(ItemStack stack) { + super(0.25f, 0, 64, 64, stack); + + this.textureWidth = 64; + this.textureHeight = 64; + + this.FootL = new ModelRenderer(this, 52, 17); + this.FootL.setRotationPoint(0.0F, 0.0F, 0.0F); + this.FootL.addBox(-2.0F, 10.0F, -3.0F, 4, 2, 1, 0.25F); + this.bipedLeftLeg.addChild(FootL); + + this.FootR = new ModelRenderer(this, 52, 17); + this.FootR.setRotationPoint(0.0F, 0.0F, 0.0F); + this.FootR.addBox(-2.0F, 10.0F, -3.0F, 4, 2, 1, 0.25F); + this.bipedRightLeg.addChild(FootR); + + } + + /** + * 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; + } +} diff --git a/src/main/java/lance5057/tDefense/core/tools/armor/renderers/heavy/ModelTinkersBreastplate.java b/src/main/java/lance5057/tDefense/core/tools/armor/renderers/heavy/ModelTinkersBreastplate.java index fded61d..b185419 100644 --- a/src/main/java/lance5057/tDefense/core/tools/armor/renderers/heavy/ModelTinkersBreastplate.java +++ b/src/main/java/lance5057/tDefense/core/tools/armor/renderers/heavy/ModelTinkersBreastplate.java @@ -1,176 +1,90 @@ -//package lance5057.tDefense.armor.renderers.heavy; -// -//import lance5057.tDefense.armor.renderers.ArmorRenderer; -//import net.minecraft.client.model.ModelRenderer; -// -///** -// * ModelBiped - Either Mojang or a mod author -// * Created using Tabula 4.1.1 -// */ -//public class ModelTinkersBreastplate extends ArmorRenderer -//{ -// public ModelRenderer BackPlate; -// public ModelRenderer BreastPlate; -// public ModelRenderer Plackart; -// public ModelRenderer WingR; -// public ModelRenderer WingL; -// public ModelRenderer PauldronR; -// public ModelRenderer PauldronL; -// public ModelRenderer ArmR; -// public ModelRenderer ArmL; -// public ModelRenderer PauldronExtraR; -// public ModelRenderer PauldronExtraL; -// public ModelRenderer PauldronR_1; -// public ModelRenderer ArmR_1; -// public ModelRenderer PauldronL_1; -// public ModelRenderer ArmL_1; -// -// public ModelTinkersBreastplate() -// { -// super(0.1f, 0, 128, 64); -// -// textureWidth = 128; -// textureHeight = 64; -// -// bipedBody = new ModelRenderer(this, "Body"); -// bipedBody.setTextureOffset(16, 16); -// bipedBody.addBox(-4.0F, 0.0F, -2.0F, 8, 12, 4, 0.1f); -// bipedBody.setRotationPoint(0.0F, 0.0F + 0, 0.0F); -// -// bipedRightArm = new ModelRenderer(this, "Right Arm"); -// bipedRightArm.setTextureOffset(40, 16); -// bipedRightArm.addBox(-3.0F, -2.0F, -2.0F, 4, 12, 4, 0.1f); -// bipedRightArm.setRotationPoint(-5.0F, 2.0F + 0, 0.0F); -// -// bipedLeftArm = new ModelRenderer(this, "Left Arm"); -// bipedLeftArm.setTextureOffset(40, 16); -// bipedLeftArm.mirror = true; -// bipedLeftArm.addBox(-1.0F, -2.0F, -2.0F, 4, 12, 4, 0.1f); -// bipedLeftArm.setRotationPoint(5.0F, 2.0F + 0, 0.0F); -// -// ArmR = new ModelRenderer(this, "Arm Right Overlay"); -// ArmR.setTextureOffset(28, 44); -// ArmR.mirror = true; -// ArmR.setRotationPoint(0.0F, 0.0F, 0.0F); -// ArmR.addBox(-4.0F, -2.2F, -3.0F, 5, 6, 6, 0.0F); -// bipedRightArm.addChild(ArmR); -// -// ArmR_1 = new ModelRenderer(this, "Arm Overlay Right 2"); -// ArmR_1.setTextureOffset(94, 0); -// ArmR_1.mirror = true; -// ArmR_1.setRotationPoint(-0.0F, 0.0F, 0.0F); -// ArmR_1.addBox(-4.5F, -2.0F, -3.0F, 6, 7, 6, 0.1F); -// setRotateAngle(ArmR_1, 0.0F, -0.0F, -0.17453292519943295F); -// bipedRightArm.addChild(ArmR_1); -// -// ArmL = new ModelRenderer(this, "Arm Overlay Left"); -// ArmL.setTextureOffset(28, 44); -// ArmL.setRotationPoint(0.0F, 0.0F, 0.0F); -// ArmL.addBox(-1.0F, -2.2F, -3.0F, 5, 6, 6, 0.0F); -// bipedLeftArm.addChild(ArmL); -// -// ArmL_1 = new ModelRenderer(this, "Arm Left Overlay 2"); -// ArmL_1.setTextureOffset(94, 0); -// ArmL_1.setRotationPoint(0.0F, 0.0F, 0.0F); -// ArmL_1.addBox(-1.0F, -2.0F, -3.0F, 6, 7, 6, 0.1F); -// setRotateAngle(ArmL_1, 0.0F, -0.0F, 0.17453292519943295F); -// bipedLeftArm.addChild(ArmL_1); -// -// PauldronL = new ModelRenderer(this, "Pauldron Left"); -// PauldronL.setTextureOffset(24, 32); -// PauldronL.setRotationPoint(0.0F, 0.0F, 0.0F); -// PauldronL.addBox(0.6F, -2.0F, -3.5F, 4, 5, 7, 0.0F); -// setRotateAngle(PauldronL, 0.0F, -0.0F, -0.4363323129985824F); -// bipedLeftArm.addChild(PauldronL); -// -// PauldronR = new ModelRenderer(this, "Pauldron Right"); -// PauldronR.setTextureOffset(24, 32); -// PauldronR.mirror = true; -// PauldronR.setRotationPoint(-0.0F, 0.0F, 0.0F); -// PauldronR.addBox(-4.8F, -2.0F, -3.5F, 4, 5, 7, 0.0F); -// setRotateAngle(PauldronR, 0.0F, -0.0F, 0.4363323129985824F); -// bipedRightArm.addChild(PauldronR); -// -// PauldronExtraL = new ModelRenderer(this, "Pauldron Extra Left"); -// PauldronExtraL.setTextureOffset(56, 19); -// PauldronExtraL.setRotationPoint(0.0F, 0.0F, 0.0F); -// PauldronExtraL.addBox(0.0F, -12.0F, 0.0F, 13, 18, 0, 0.0F); -// bipedLeftArm.addChild(PauldronExtraL); -// -// PauldronExtraR = new ModelRenderer(this, "Pauldron Extra Right"); -// PauldronExtraR.setTextureOffset(56, 19); -// PauldronExtraR.mirror = true; -// PauldronExtraR.setRotationPoint(0.0F, 0.0F, 0.0F); -// PauldronExtraR.addBox(-12.0F, -12.0F, 0.0F, 13, 18, 0, 0.0F); -// bipedRightArm.addChild(PauldronExtraR); -// -// PauldronR_1 = new ModelRenderer(this, "Pauldron Right 2"); -// PauldronR_1.setTextureOffset(64, 0); -// PauldronR_1.mirror = true; -// PauldronR_1.setRotationPoint(-0.0F, 0.0F, 0.0F); -// PauldronR_1.addBox(-5.5F, -8.0F, -4.0F, 7, 11, 8, 0.1F); -// setRotateAngle(PauldronR_1, 0.0F, -0.0F, 0.2617993877991494F); -// bipedRightArm.addChild(PauldronR_1); -// -// PauldronL_1 = new ModelRenderer(this, "Pauldron Left 2"); -// PauldronL_1.setTextureOffset(64, 0); -// PauldronL_1.setRotationPoint(0.0F, 0.0F, 0.0F); -// PauldronL_1.addBox(-1.5F, -8.0F, -4.0F, 7, 11, 8, 0.1F); -// setRotateAngle(PauldronL_1, 0.0F, -0.0F, -0.2617993877991494F); -// bipedLeftArm.addChild(PauldronL_1); -// -// WingL = new ModelRenderer(this, "Wing Left"); -// WingL.setTextureOffset(82, 5); -// WingL.setRotationPoint(0.0F, 0.0F, 0.0F); -// WingL.addBox(0.0F, -6.0F, 3.0F, 0, 28, 14, 0.0F); -// setRotateAngle(WingL, 0.0F, -0.2617993877991494F, 0.0F); -// bipedBody.addChild(WingL); -// -// WingR = new ModelRenderer(this, "Wing Right"); -// WingR.setTextureOffset(82, 5); -// WingR.setRotationPoint(0.0F, 0.0F, 0.0F); -// WingR.addBox(0.0F, -6.0F, 3.0F, 0, 28, 14, 0.0F); -// setRotateAngle(WingR, 0.0F, 0.2617993877991494F, 0.0F); -// bipedBody.addChild(WingR); -// -// Plackart = new ModelRenderer(this, "Plackart"); -// Plackart.setTextureOffset(0, 42); -// Plackart.setRotationPoint(0.0F, 0.0F, 0.0F); -// Plackart.addBox(-4.0F, 5.0F, -3.0F, 8, 7, 6, 0.0F); -// bipedBody.addChild(Plackart); -// -// BreastPlate = new ModelRenderer(this, "BreastPlate"); -// BreastPlate.setTextureOffset(0, 32); -// BreastPlate.setRotationPoint(0.0F, 0.0F, 0.0F); -// BreastPlate.addBox(-4.0F, 0.1F, -3.6F, 8, 6, 4, 0.1F); -// bipedBody.addChild(BreastPlate); -// -// BackPlate = new ModelRenderer(this, "Back Plate"); -// BackPlate.setTextureOffset(0, 56); -// BackPlate.setRotationPoint(0.0F, 0.0F, 0.0F); -// BackPlate.addBox(-4.0F, 0.0F, 1.0F, 8, 5, 3, 0.0F); -// setRotateAngle(BackPlate, -0.08726646006107329F, -0.0F, 0.0F); -// bipedBody.addChild(BackPlate); -// -// WingL.isHidden = true; -// WingR.isHidden = true; -// PauldronL_1.isHidden = true; -// PauldronR_1.isHidden = true; -// ArmL_1.isHidden = true; -// ArmR_1.isHidden = true; -// PauldronExtraL.isHidden = true; -// PauldronExtraR.isHidden = true; -// -// init(); -// } -// -// /** -// * 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; -// } -//} +package lance5057.tDefense.core.tools.armor.renderers.heavy; + +import lance5057.tDefense.core.tools.armor.renderers.ArmorRenderer; +import net.minecraft.client.model.ModelRenderer; +import net.minecraft.entity.Entity; +import net.minecraft.item.ItemStack; + +/** + * ModelPlayer - Either Mojang or a mod author + * Created using Tabula 7.0.0 + */ +public class ModelTinkersBreastplate extends ArmorRenderer { + public ModelRenderer BackPlate; + public ModelRenderer BreastPlate; + public ModelRenderer Plackart; + public ModelRenderer PauldronR; + public ModelRenderer PauldronL; + public ModelRenderer ArmR; + public ModelRenderer ArmL; + public ModelRenderer Pauldron2L; + public ModelRenderer Pauldron2R; + + public ModelTinkersBreastplate(ItemStack stack) { + super(0.25f, 0, 96, 64, stack); + this.textureWidth = 128; + this.textureHeight = 64; + + this.ArmL = new ModelRenderer(this, 92, 12); + this.ArmL.setRotationPoint(0.0F, 0.0F, 0.0F); + this.ArmL.addBox(-1.0F, -2.3F, -3.0F, 5, 6, 6, 0.0F); + this.bipedLeftArm.addChild(ArmL); + + this.PauldronR = new ModelRenderer(this, 88, 0); + this.PauldronR.mirror = true; + this.PauldronR.setRotationPoint(0.0F, 0.0F, 0.0F); + this.PauldronR.addBox(-4.6F, -2.0F, -3.5F, 4, 5, 7, 0.1F); + this.setRotateAngle(PauldronR, 0.0F, 0.0F, 0.4363323129985824F); + this.bipedRightArm.addChild(PauldronR); + + this.Plackart = new ModelRenderer(this, 64, 10); + this.Plackart.setRotationPoint(0.0F, 0.0F, 0.0F); + this.Plackart.addBox(-4.0F, 5.0F, -3.0F, 8, 7, 6, 0.3F); + this.bipedBody.addChild(Plackart); + + this.ArmR = new ModelRenderer(this, 92, 12); + this.ArmR.mirror = true; + this.ArmR.setRotationPoint(0.0F, 0.0F, 0.0F); + this.ArmR.addBox(-4.0F, -2.3F, -3.0F, 5, 6, 6, 0.0F); + this.bipedRightArm.addChild(ArmR); + + this.BackPlate = new ModelRenderer(this, 64, 24); + this.BackPlate.setRotationPoint(0.0F, 0.0F, 0.0F); + this.BackPlate.addBox(-4.0F, -0.1F, 1.0F, 8, 5, 3, 0.41F); + this.setRotateAngle(BackPlate, -0.08726646259971647F, 0.0F, 0.0F); + this.bipedBody.addChild(BackPlate); + + this.Pauldron2L = new ModelRenderer(this, 88, 0); + this.Pauldron2L.setRotationPoint(0.0F, 0.0F, 0.0F); + this.Pauldron2L.addBox(0.5F, -1.5F, -3.5F, 4, 4, 7, -0.4F); + this.setRotateAngle(Pauldron2L, 0.0F, 0.0F, -1.1344640137963142F); + this.bipedLeftArm.addChild(Pauldron2L); + + this.Pauldron2R = new ModelRenderer(this, 88, 0); + this.Pauldron2R.mirror = true; + this.Pauldron2R.setRotationPoint(0.0F, 0.0F, 0.0F); + this.Pauldron2R.addBox(-4.5F, -1.5F, -3.5F, 4, 4, 7, -0.4F); + this.setRotateAngle(Pauldron2R, 0.0F, 0.0F, 1.1344640137963142F); + this.bipedRightArm.addChild(Pauldron2R); + + this.BreastPlate = new ModelRenderer(this, 64, 0); + this.BreastPlate.setRotationPoint(0.0F, 0.0F, 0.0F); + this.BreastPlate.addBox(-4.0F, 0.1F, -3.6F, 8, 6, 4, 0.41F); + this.bipedBody.addChild(BreastPlate); + + this.PauldronL = new ModelRenderer(this, 88, 0); + this.PauldronL.setRotationPoint(0.0F, 0.0F, 0.0F); + this.PauldronL.addBox(0.5F, -2.0F, -3.5F, 4, 5, 7, 0.1F); + this.setRotateAngle(PauldronL, 0.0F, 0.0F, -0.4363323129985824F); + this.bipedLeftArm.addChild(PauldronL); + } + + /** + * 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; + } +} diff --git a/src/main/java/lance5057/tDefense/core/tools/armor/renderers/heavy/ModelTinkersGrieves.java b/src/main/java/lance5057/tDefense/core/tools/armor/renderers/heavy/ModelTinkersGrieves.java index bc76312..e78670f 100644 --- a/src/main/java/lance5057/tDefense/core/tools/armor/renderers/heavy/ModelTinkersGrieves.java +++ b/src/main/java/lance5057/tDefense/core/tools/armor/renderers/heavy/ModelTinkersGrieves.java @@ -1,214 +1,109 @@ -//package lance5057.tDefense.armor.renderers.heavy; -// -//import lance5057.tDefense.armor.renderers.ArmorRenderer; -//import net.minecraft.client.model.ModelRenderer; -// -///** -// * TinkersGrieves - Either Mojang or a mod author -// * Created using Tabula 4.1.1 -// */ -//public class ModelTinkersGrieves extends ArmorRenderer -//{ -// public ModelRenderer LegPlateL; -// public ModelRenderer CodPiece; -// public ModelRenderer LegPlateBackL; -// public ModelRenderer LegPlateBackR; -// public ModelRenderer LegPlateR; -// public ModelRenderer Belt; -// public ModelRenderer BeltBuckle; -// public ModelRenderer ThighR; -// public ModelRenderer ThighL; -// public ModelRenderer ThighRB; -// public ModelRenderer ThighLB; -// public ModelRenderer SecBeltR; -// public ModelRenderer SecBeltL; -// public ModelRenderer LeftFrontL; -// public ModelRenderer LeftBackL; -// public ModelRenderer CenterBackL; -// public ModelRenderer CenterBackR; -// public ModelRenderer RightFrontL; -// public ModelRenderer RightBackL; -// public ModelRenderer CenterFrontL; -// public ModelRenderer CenterFrontR; -// -// public ModelTinkersGrieves() -// { -// super(0.1f, 0, 64, 64); -// -// textureWidth = 64; -// textureHeight = 64; -// -// SecBeltL = new ModelRenderer(this, "Hip Belt Left"); -// SecBeltL.setTextureOffset(12, 56); -// SecBeltL.setRotationPoint(0.0F, 0.0F, 0.0F); -// SecBeltL.addBox(-1.0F, 11.5F, -2.8F, 9, 2, 6, 0.16F); -// setRotateAngle(SecBeltL, 0.0F, 0.0F, 0.2617993877991494F); -// bipedBody.addChild(SecBeltL); -// -// CodPiece = new ModelRenderer(this, "CodPiece"); -// CodPiece.setTextureOffset(0, 49); -// CodPiece.setRotationPoint(0.0F, 0.0F, 0.0F); -// CodPiece.addBox(-2.5F, 11.0F, -3.2F, 5, 5, 3, -0.4F); -// bipedBody.addChild(CodPiece); -// -// ThighL = new ModelRenderer(this, "Thigh Left Front"); -// ThighL.setTextureOffset(12, 32); -// ThighL.mirror = true; -// ThighL.setRotationPoint(0.0F, 0.0F, 0.0F); -// ThighL.addBox(-2.0F, 0.0F, -2.5F, 4, 6, 4, 0.2F); -// setRotateAngle(ThighL, 0.08726646259971647F, 0.0F, 0.0F); -// bipedLeftLeg.addChild(ThighL); -// -// ThighLB = new ModelRenderer(this, "Thigh Left Back"); -// ThighLB.setTextureOffset(13, 42); -// ThighLB.mirror = true; -// ThighLB.setRotationPoint(0.0F, 0.0F, 0.0F); -// ThighLB.addBox(-2.0F, 0.0F, -1.5F, 4, 6, 4, 0.1F); -// setRotateAngle(ThighLB, -0.08726646259971647F, 0.0F, 0.0F); -// bipedLeftLeg.addChild(ThighLB); -// -// SecBeltR = new ModelRenderer(this, "Hip Belt Right"); -// SecBeltR.setTextureOffset(12, 56); -// SecBeltR.setRotationPoint(0.0F, 0.0F, 0.0F); -// SecBeltR.addBox(-8.0F, 11.5F, -2.8F, 9, 2, 6, 0.15F); -// setRotateAngle(SecBeltR, 0.0F, 0.0F, -0.2617993877991494F); -// bipedBody.addChild(SecBeltR); -// -// CenterFrontL = new ModelRenderer(this, "Center Front"); -// CenterFrontL.setTextureOffset(29, 43); -// CenterFrontL.setRotationPoint(0.0F, 0.0F, 0.0F); -// CenterFrontL.addBox(-2.9F, -0.2F, -2.5F, 2, 11, 2, 0.0F); -// setRotateAngle(CenterFrontL, -0.08726646259971647F, 0.0F, 0.0F); -// bipedLeftLeg.addChild(CenterFrontL); -// -// CenterFrontR = new ModelRenderer(this, "Center Front"); -// CenterFrontR.setTextureOffset(29, 43); -// CenterFrontR.setRotationPoint(0.0F, 0.0F, 0.0F); -// CenterFrontR.addBox(0.9F, -0.2F, -2.5F, 2, 11, 2, 0.0F); -// setRotateAngle(CenterFrontR, -0.08726646259971647F, 0.0F, 0.0F); -// bipedRightLeg.addChild(CenterFrontR); -// -// LegPlateBackR = new ModelRenderer(this, "Leg Plate Back Right"); -// LegPlateBackR.setTextureOffset(0, 43); -// LegPlateBackR.setRotationPoint(0.0F, 0.0F, 0.0F); -// LegPlateBackR.addBox(-2.0F, 0.1F, 2.1F, 4, 5, 1, 0.0F); -// setRotateAngle(LegPlateBackR, 0.2617993877991494F, 0.0F, 0.0F); -// bipedRightLeg.addChild(LegPlateBackR); -// -// Belt = new ModelRenderer(this, "Belt"); -// Belt.setTextureOffset(12, 56); -// Belt.setRotationPoint(0.0F, 0.0F, 0.0F); -// Belt.addBox(-4.5F, 10.0F, -2.8F, 9, 2, 6, 0.25F); -// bipedBody.addChild(Belt); -// -// ThighR = new ModelRenderer(this, "Thigh Right"); -// ThighR.setTextureOffset(12, 32); -// ThighR.setRotationPoint(0.0F, 0.0F, 0.0F); -// ThighR.addBox(-2.0F, 0.0F, -2.5F, 4, 6, 4, 0.2F); -// setRotateAngle(ThighR, 0.08726646259971647F, 0.0F, 0.0F); -// bipedRightLeg.addChild(ThighR); -// -// ThighRB = new ModelRenderer(this, "Thigh Right Back"); -// ThighRB.setTextureOffset(13, 42); -// ThighRB.setRotationPoint(0.0F, 0.0F, 0.0F); -// ThighRB.addBox(-2.0F, 0.0F, -1.5F, 4, 6, 4, 0.1F); -// setRotateAngle(ThighRB, -0.08726646259971647F, 0.0F, 0.0F); -// bipedRightLeg.addChild(ThighRB); -// -// LegPlateL = new ModelRenderer(this, "Leg Plate Left"); -// LegPlateL.setTextureOffset(0, 32); -// LegPlateL.mirror = true; -// LegPlateL.setRotationPoint(0.0F, 0.0F, 0.0F); -// LegPlateL.addBox(1.6F, -0.1F, -2.5F, 1, 5, 5, 0.1F); -// setRotateAngle(LegPlateL, 0.0F, 0.0F, -0.2617993877991494F); -// bipedLeftLeg.addChild(LegPlateL); -// -// RightBackL = new ModelRenderer(this, "Right Back Left"); -// RightBackL.setTextureOffset(42, 34); -// RightBackL.setRotationPoint(0.0F, 0.0F, 0.0F); -// RightBackL.addBox(-2.2F, -0.3F, -1.5F, 4, 11, 4, 0.0F); -// setRotateAngle(RightBackL, 0.08726646259971647F, 0.0F, 0.08726646259971647F); -// bipedRightLeg.addChild(RightBackL); -// -// LeftBackL = new ModelRenderer(this, "Left Back Left"); -// LeftBackL.setTextureOffset(42, 34); -// LeftBackL.mirror = true; -// LeftBackL.setRotationPoint(0.0F, 0.0F, 0.0F); -// LeftBackL.addBox(-1.8F, -0.3F, -1.5F, 4, 11, 4, 0.0F); -// setRotateAngle(LeftBackL, 0.08726646259971647F, 0.0F, -0.08726646259971647F); -// bipedLeftLeg.addChild(LeftBackL); -// -// LegPlateR = new ModelRenderer(this, "Leg Plate Right"); -// LegPlateR.setTextureOffset(0, 32); -// LegPlateR.setRotationPoint(0.0F, 0.0F, 0.0F); -// LegPlateR.addBox(-2.6F, -0.1F, -2.5F, 1, 5, 5, 0.1F); -// setRotateAngle(LegPlateR, 0.0F, 0.0F, 0.2617993877991494F); -// bipedRightLeg.addChild(LegPlateR); -// -// RightFrontL = new ModelRenderer(this, "Right Front Left"); -// RightFrontL.setTextureOffset(42, 49); -// RightFrontL.setRotationPoint(0.0F, 0.0F, 0.0F); -// RightFrontL.addBox(-2.2F, -0.3F, -2.5F, 4, 11, 4, 0.0F); -// setRotateAngle(RightFrontL, -0.08726646259971647F, 0.0F, 0.08726646259971647F); -// bipedRightLeg.addChild(RightFrontL); -// -// BeltBuckle = new ModelRenderer(this, "Belt Buckle"); -// BeltBuckle.setTextureOffset(0, 58); -// BeltBuckle.setRotationPoint(0.0F, 0.0F, 0.0F); -// BeltBuckle.addBox(-2.0F, 9.0F, -3.5F, 4, 4, 2, -0.3F); -// bipedBody.addChild(BeltBuckle); -// -// LegPlateBackL = new ModelRenderer(this, "Leg Plate Back Left"); -// LegPlateBackL.setTextureOffset(0, 43); -// LegPlateBackL.mirror = true; -// LegPlateBackL.setRotationPoint(0.0F, 0.0F, 0.0F); -// LegPlateBackL.addBox(-2.0F, 0.1F, 2.1F, 4, 5, 1, 0.0F); -// setRotateAngle(LegPlateBackL, 0.2617993877991494F, 0.0F, 0.0F); -// bipedLeftLeg.addChild(LegPlateBackL); -// -// LeftFrontL = new ModelRenderer(this, "Left Front Left"); -// LeftFrontL.setTextureOffset(42, 49); -// LeftFrontL.mirror = true; -// LeftFrontL.setRotationPoint(0.0F, 0.0F, 0.0F); -// LeftFrontL.addBox(-1.8F, -0.3F, -2.5F, 4, 11, 4, 0.0F); -// setRotateAngle(LeftFrontL, -0.08726646259971647F, 0.0F, -0.08726646259971647F); -// bipedLeftLeg.addChild(LeftFrontL); -// -// CenterBackL = new ModelRenderer(this, "Center Back Left"); -// CenterBackL.setTextureOffset(29, 43); -// CenterBackL.setRotationPoint(0.0F, 0.0F, 0.0F); -// CenterBackL.addBox(-2.9F, -0.2F, 0.5F, 2, 11, 2, 0.0F); -// setRotateAngle(CenterBackL, 0.08726646259971647F, 0.0F, 0.0F); -// bipedLeftLeg.addChild(CenterBackL); -// -// CenterBackR = new ModelRenderer(this, "Center Back Right"); -// CenterBackR.setTextureOffset(29, 43); -// CenterBackR.setRotationPoint(0.0F, 0.0F, 0.0F); -// CenterBackR.addBox(0.9F, -0.2F, 0.5F, 2, 11, 2, 0.0F); -// setRotateAngle(CenterBackR, 0.08726646259971647F, 0.0F, 0.0F); -// bipedRightLeg.addChild(CenterBackR); -// -// SecBeltL.isHidden = true; -// SecBeltR.isHidden = true; -// CenterBackL.isHidden = true; -// CenterBackR.isHidden = true; -// CenterFrontL.isHidden = true; -// CenterFrontR.isHidden = true; -// LeftBackL.isHidden = true; -// LeftFrontL.isHidden = true; -// RightBackL.isHidden = true; -// RightFrontL.isHidden = true; -// -// init(); -// } -// -// /** -// * 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; -// } -//} +package lance5057.tDefense.core.tools.armor.renderers.heavy; + +import lance5057.tDefense.core.tools.armor.renderers.ArmorRenderer; +import net.minecraft.client.model.ModelRenderer; +import net.minecraft.entity.Entity; +import net.minecraft.item.ItemStack; + +/** + * ModelPlayer - Either Mojang or a mod author + * Created using Tabula 7.0.0 + */ +public class ModelTinkersGrieves extends ArmorRenderer { + public ModelRenderer LegPlateL; + public ModelRenderer CodPiece; + public ModelRenderer LegPlateBackL; + public ModelRenderer LegPlateBackR; + public ModelRenderer LegPlateR; + public ModelRenderer Belt; + public ModelRenderer BeltBuckle; + public ModelRenderer ThighR; + public ModelRenderer ThighL; + public ModelRenderer ThighRB; + public ModelRenderer ThighLB; + public ModelRenderer SecBeltL; + + public ModelTinkersGrieves(ItemStack stack) { + super(0.25f, 0, 96, 64, stack); + this.textureWidth = 96; + this.textureHeight = 64; + + this.Belt = new ModelRenderer(this, 64, 0); + this.Belt.setRotationPoint(0.0F, 0.0F, 0.0F); + this.Belt.addBox(-4.5F, 10.0F, -2.8F, 9, 2, 6, 0.3F); + this.bipedBody.addChild(Belt); + + this.LegPlateR = new ModelRenderer(this, 64, 32); + this.LegPlateR.setRotationPoint(0.0F, 0.0F, 0.0F); + this.LegPlateR.addBox(-2.6F, 0.9F, -2.5F, 1, 5, 5, 0.1F); + this.setRotateAngle(LegPlateR, 0.0F, 0.0F, 0.2617993877991494F); + this.bipedRightLeg.addChild(LegPlateR); + + this.LegPlateL = new ModelRenderer(this, 64, 32); + this.LegPlateL.setRotationPoint(0.0F, 0.0F, 0.0F); + this.LegPlateL.addBox(1.8F, 0.8F, -2.5F, 1, 5, 5, 0.1F); + this.setRotateAngle(LegPlateL, 0.0F, 0.0F, -0.2617993877991494F); + this.bipedLeftLeg.addChild(LegPlateL); + + this.ThighLB = new ModelRenderer(this, 80, 8); + this.ThighLB.setRotationPoint(0.0F, 0.0F, 0.0F); + this.ThighLB.addBox(-2.0F, 0.0F, -1.5F, 4, 6, 4, 0.3F); + this.setRotateAngle(ThighLB, -0.08726646259971647F, 0.0F, 0.0F); + this.bipedLeftLeg.addChild(ThighLB); + + this.ThighRB = new ModelRenderer(this, 80, 8); + this.ThighRB.setRotationPoint(0.0F, 0.0F, 0.0F); + this.ThighRB.addBox(-2.0F, 0.0F, -1.5F, 4, 6, 4, 0.3F); + this.setRotateAngle(ThighRB, -0.08726646259971647F, 0.0F, 0.0F); + this.bipedRightLeg.addChild(ThighRB); + + this.CodPiece = new ModelRenderer(this, 64, 49); + this.CodPiece.setRotationPoint(0.0F, 0.0F, 0.0F); + this.CodPiece.addBox(-2.5F, 11.0F, -3.3F, 5, 5, 3, -0.4F); + this.bipedBody.addChild(CodPiece); + + this.BeltBuckle = new ModelRenderer(this, 64, 58); + this.BeltBuckle.setRotationPoint(0.0F, 0.0F, 0.0F); + this.BeltBuckle.addBox(-2.0F, 9.0F, -3.5F, 4, 4, 2, -0.3F); + this.bipedBody.addChild(BeltBuckle); + + this.ThighR = new ModelRenderer(this, 64, 8); + this.ThighR.setRotationPoint(0.0F, 0.0F, 0.0F); + this.ThighR.addBox(-2.0F, 1.0F, -2.8F, 4, 5, 4, 0.31F); + this.setRotateAngle(ThighR, 0.08726646259971647F, 0.0F, 0.0F); + this.bipedRightLeg.addChild(ThighR); + + this.ThighL = new ModelRenderer(this, 64, 8); + this.ThighL.setRotationPoint(0.0F, 0.0F, 0.0F); + this.ThighL.addBox(-2.0F, 1.0F, -2.8F, 4, 5, 4, 0.31F); + this.setRotateAngle(ThighL, 0.08726646259971647F, 0.0F, 0.0F); + this.bipedLeftLeg.addChild(ThighL); + + this.LegPlateBackR = new ModelRenderer(this, 64, 43); + this.LegPlateBackR.setRotationPoint(0.0F, 0.0F, 0.0F); + this.LegPlateBackR.addBox(-2.0F, 0.9F, 2.2F, 4, 5, 1, 0.0F); + this.setRotateAngle(LegPlateBackR, 0.2617993877991494F, 0.0F, 0.0F); + this.bipedRightLeg.addChild(LegPlateBackR); + + this.LegPlateBackL = new ModelRenderer(this, 64, 43); + this.LegPlateBackL.setRotationPoint(0.0F, 0.0F, 0.0F); + this.LegPlateBackL.addBox(-2.0F, 0.9F, 2.2F, 4, 5, 1, 0.0F); + this.setRotateAngle(LegPlateBackL, 0.2617993877991494F, 0.0F, 0.0F); + this.bipedLeftLeg.addChild(LegPlateBackL); + + this.SecBeltL = new ModelRenderer(this, 64, 0); + this.SecBeltL.setRotationPoint(0.0F, 0.0F, 0.0F); + this.SecBeltL.addBox(-1.0F, 11.5F, -2.8F, 9, 2, 6, 0.26F); + this.setRotateAngle(SecBeltL, 0.0F, 0.0F, 0.2617993877991494F); + this.bipedBody.addChild(SecBeltL); + } + + /** + * 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; + } +} diff --git a/src/main/java/lance5057/tDefense/core/tools/armor/renderers/heavy/ModelTinkersHelm.java b/src/main/java/lance5057/tDefense/core/tools/armor/renderers/heavy/ModelTinkersHelm.java index 5276f2e..69808fd 100644 --- a/src/main/java/lance5057/tDefense/core/tools/armor/renderers/heavy/ModelTinkersHelm.java +++ b/src/main/java/lance5057/tDefense/core/tools/armor/renderers/heavy/ModelTinkersHelm.java @@ -1,235 +1,54 @@ -//package lance5057.tDefense.armor.renderers.heavy; -// -//import lance5057.tDefense.armor.renderers.ArmorRenderer; -//import net.minecraft.client.model.ModelRenderer; -// -///** -// * TinkerHelm - Either Mojang or a mod author -// * Created using Tabula 4.1.1 -// */ -//public class ModelTinkersHelm extends ArmorRenderer -//{ -// public ModelRenderer Visor; -// public ModelRenderer Helm2; -// public ModelRenderer WingR; -// public ModelRenderer WingL; -// public ModelRenderer Helm; -// public ModelRenderer Trim; -// public ModelRenderer HornR; -// public ModelRenderer HornL; -// public ModelRenderer HornTipR; -// public ModelRenderer HornTipL; -// public ModelRenderer FeatherRod; -// public ModelRenderer Feathers; -// public ModelRenderer FeatherBase; -// public ModelRenderer HornR_1; -// public ModelRenderer HornL_1; -// public ModelRenderer HornTipR_1; -// public ModelRenderer HornTipL_1; -// public ModelRenderer HornR_2; -// public ModelRenderer HornL_2; -// public ModelRenderer HornTipR_2; -// public ModelRenderer HornTipL_2; -// public ModelRenderer SpikeBase; -// public ModelRenderer Spike2; -// public ModelRenderer Spike1; -// -// public ModelTinkersHelm() -// { -// super(0.1f, 0, 128, 64); -// -// textureWidth = 128; -// textureHeight = 64; -// -// HornR = new ModelRenderer(this, "Horn Right"); -// HornR.setTextureOffset(26, 32); -// HornR.setRotationPoint(0.0F, -2.0F, 0.0F); -// HornR.addBox(-1.0F, -10.0F, -1.0F, 2, 5, 2, 0.25F); -// setRotateAngle(HornR, 0.0F, 0.0F, 0.7853981633974483F); -// bipedHead.addChild(HornR); -// -// HornTipR = new ModelRenderer(this, "Horn Tip Right"); -// HornTipR.setTextureOffset(26, 32); -// HornTipR.setRotationPoint(0.0F, -10.0F, 0.0F); -// HornTipR.addBox(-0.8F, -1.0F, -1.0F, 2, 6, 2, 0.0F); -// setRotateAngle(HornTipR, 0.0F, 0.0F, 2.007128639793479F); -// -// HornR_1 = new ModelRenderer(this, "Horn Right 2"); -// HornR_1.setTextureOffset(26, 32); -// HornR_1.setRotationPoint(2.25F, -6.0F, 2.0F); -// HornR_1.addBox(-1.0F, -10.0F, -1.0F, 2, 5, 2, 0.25F); -// setRotateAngle(HornR_1, 1.3962634015954636F, 0.2617993877991494F, 1.5707963267948966F); -// bipedHead.addChild(HornR_1); -// -// HornTipR_1 = new ModelRenderer(this, "Horn Tip Right 2"); -// HornTipR_1.setTextureOffset(26, 32); -// HornTipR_1.setRotationPoint(0.0F, -10.0F, 0.0F); -// HornTipR_1.addBox(-0.8F, -1.0F, -1.0F, 2, 6, 2, 0.0F); -// setRotateAngle(HornTipR_1, 0.0F, 0.0F, 2.007128639793479F); -// -// HornR_2 = new ModelRenderer(this, "Horn Right 3"); -// HornR_2.setTextureOffset(26, 32); -// HornR_2.setRotationPoint(1.75F, -3.0F, 4.0F); -// HornR_2.addBox(-1.0F, -10.0F, -1.0F, 2, 5, 2, 0.25F); -// setRotateAngle(HornR_2, 1.3962634015954636F, -0.2617993877991494F, 1.5707963267948966F); -// bipedHead.addChild(HornR_2); -// -// HornTipR_2 = new ModelRenderer(this, "Horn Tip Right 3"); -// HornTipR_2.setTextureOffset(26, 32); -// HornTipR_2.setRotationPoint(0.0F, -10.0F, 0.0F); -// HornTipR_2.addBox(-0.8F, -1.0F, -1.0F, 2, 6, 2, 0.0F); -// setRotateAngle(HornTipR_2, 0.0F, 0.0F, 2.007128639793479F); -// -// HornL = new ModelRenderer(this, "Horn Left"); -// HornL.setTextureOffset(26, 32); -// HornL.setRotationPoint(0.0F, -2.0F, 0.0F); -// HornL.addBox(-1.0F, -10.0F, -1.0F, 2, 5, 2, 0.25F); -// setRotateAngle(HornL, 0.0F, 0.0F, -0.7853981633974483F); -// bipedHead.addChild(HornL); -// -// HornTipL = new ModelRenderer(this, "Horn Tip Left"); -// HornTipL.setTextureOffset(26, 32); -// HornTipL.setRotationPoint(0.0F, -10.0F, 0.0F); -// HornTipL.addBox(-1.2F, -1.0F, -1.0F, 2, 6, 2, 0.0F); -// setRotateAngle(HornTipL, 0.0F, 0.0F, -2.007128639793479F); -// -// HornL_1 = new ModelRenderer(this, "Horn Left 2"); -// HornL_1.setTextureOffset(26, 32); -// HornL_1.setRotationPoint(-2.25F, -6.0F, 2.0F); -// HornL_1.addBox(-1.0F, -10.0F, -1.0F, 2, 5, 2, 0.25F); -// setRotateAngle(HornL_1, 1.3962634015954636F, -0.2617993877991494F, -1.5707963267948966F); -// bipedHead.addChild(HornL_1); -// -// HornTipL_1 = new ModelRenderer(this, "Horn Tip Left 2"); -// HornTipL_1.setTextureOffset(26, 32); -// HornTipL_1.setRotationPoint(0.0F, -10.0F, 0.0F); -// HornTipL_1.addBox(-1.2F, -1.0F, -1.0F, 2, 6, 2, 0.0F); -// setRotateAngle(HornTipL_1, 0.0F, 0.0F, -2.007128639793479F); -// -// HornL_2 = new ModelRenderer(this, "Horn Left 3"); -// HornL_2.setTextureOffset(26, 32); -// HornL_2.setRotationPoint(-1.75F, -3.0F, 4.0F); -// HornL_2.addBox(-1.0F, -10.0F, -1.0F, 2, 5, 2, 0.25F); -// setRotateAngle(HornL_2, 1.3962634015954636F, 0.2617993877991494F, -1.5707963267948966F); -// bipedHead.addChild(HornL_2); -// -// HornTipL_2 = new ModelRenderer(this, "Horn Tip Left 3"); -// HornTipL_2.setTextureOffset(26, 32); -// HornTipL_2.setRotationPoint(0.0F, -10.0F, 0.0F); -// HornTipL_2.addBox(-1.2F, -1.0F, -1.0F, 2, 6, 2, 0.0F); -// setRotateAngle(HornTipL_2, 0.0F, 0.0F, -2.007128639793479F); -// -// FeatherBase = new ModelRenderer(this, "Feather Base"); -// FeatherBase.setTextureOffset(64, 13); -// FeatherBase.setRotationPoint(0.0F, 0.0F, 0.0F); -// FeatherBase.addBox(-2.0F, -10.0F, -5.3F, 4, 1, 9, 0.0F); -// setRotateAngle(FeatherBase, -0.08726646259971647F, 0.0F, 0.0F); -// bipedHead.addChild(FeatherBase); -// -// WingL = new ModelRenderer(this, "Wing Left"); -// WingL.setTextureOffset(0, 44); -// WingL.setRotationPoint(0.0F, 0.0F, 0.0F); -// WingL.addBox(5.7F, -11.0F, -3.5F, 0, 12, 8, 0.0F); -// setRotateAngle(WingL, 0.0F, 0.2617993877991494F, 0.0F); -// bipedHead.addChild(WingL); -// -// Trim = new ModelRenderer(this, "Trim"); -// Trim.setTextureOffset(64, 23); -// Trim.setRotationPoint(0.0F, 0.0F, 0.0F); -// Trim.addBox(-1.0F, -8.3F, -4.0F, 2, 9, 8, 0.7F); -// bipedHead.addChild(Trim); -// -// Visor = new ModelRenderer(this, "Visor"); -// Visor.setTextureOffset(0, 32); -// Visor.setRotationPoint(0.0F, 0.0F, 0.0F); -// Visor.addBox(-4.5F, -9.5F, -4.7F, 9, 12, 8, 0.1F); -// bipedHead.addChild(Visor); -// -// Feathers = new ModelRenderer(this, "Feathers"); -// Feathers.setTextureOffset(64, 0); -// Feathers.setRotationPoint(0.0F, 0.0F, 0.0F); -// Feathers.addBox(-2.0F, -12.7F, -6.1F, 4, 4, 9, -0.3F); -// setRotateAngle(Feathers, -0.17453292519943295F, 0.0F, 0.0F); -// bipedHead.addChild(Feathers); -// -// FeatherRod = new ModelRenderer(this, "Feather Rod"); -// FeatherRod.setTextureOffset(0, 32); -// FeatherRod.setRotationPoint(0.0F, 0.0F, 0.0F); -// FeatherRod.addBox(-1.0F, -9.3F, -1.2F, 2, 1, 2, 0.2F); -// bipedHead.addChild(FeatherRod); -// -// Helm2 = new ModelRenderer(this, "Heavy Visor"); -// Helm2.setTextureOffset(34, 32); -// Helm2.setRotationPoint(0.0F, 0.0F, 0.0F); -// Helm2.addBox(-4.0F, -9.0F, -4.0F, 8, 10, 8, 0.6F); -// bipedHead.addChild(Helm2); -// -// Spike1 = new ModelRenderer(this, "Spike"); -// Spike1.setTextureOffset(16, 52); -// Spike1.setRotationPoint(0.0F, 0.0F, 0.0F); -// Spike1.addBox(-2.5F, -14.0F, 0.0F, 5, 5, 0, 0.0F); -// bipedHead.addChild(Spike1); -// -// SpikeBase = new ModelRenderer(this, "Spike Base"); -// SpikeBase.setTextureOffset(66, 40); -// SpikeBase.setRotationPoint(0.0F, 0.0F, 0.0F); -// SpikeBase.addBox(-2.0F, -8.6F, -2.0F, 4, 1, 4, 0.5F); -// bipedHead.addChild(SpikeBase); -// -// Spike2 = new ModelRenderer(this, "Spike"); -// Spike2.setTextureOffset(16, 47); -// Spike2.setRotationPoint(0.0F, 0.0F, 0.0F); -// Spike2.addBox(0.0F, -14.0F, -2.5F, 0, 5, 5, 0.0F); -// bipedHead.addChild(Spike2); -// -// Helm = new ModelRenderer(this, "Helm"); -// Helm.setTextureOffset(64, 47); -// Helm.setRotationPoint(0.0F, 0.0F, 0.0F); -// Helm.addBox(-4.0F, -8.0F, -4.0F, 8, 9, 8, 0.5F); -// bipedHead.addChild(Helm); -// -// WingR = new ModelRenderer(this, "Wing Right"); -// WingR.setTextureOffset(0, 44); -// WingR.setRotationPoint(0.0F, 0.0F, 0.0F); -// WingR.addBox(-5.7F, -11.0F, -3.5F, 0, 12, 8, 0.0F); -// setRotateAngle(WingR, 0.0F, -0.2617993877991494F, 0.0F); -// bipedHead.addChild(WingR); -// -// HornR.addChild(HornTipR); -// HornL.addChild(HornTipL); -// -// HornL_1.addChild(HornTipL_1); -// HornR_1.addChild(HornTipR_1); -// -// HornL_2.addChild(HornTipL_2); -// HornR_2.addChild(HornTipR_2); -// -// HornL.isHidden = true; -// HornR.isHidden = true; -// HornL_1.isHidden = true; -// HornL_2.isHidden = true; -// HornR_1.isHidden = true; -// HornR_2.isHidden = true; -// FeatherBase.isHidden = true; -// FeatherRod.isHidden = true; -// Feathers.isHidden = true; -// Spike1.isHidden = true; -// Spike2.isHidden = true; -// SpikeBase.isHidden = true; -// WingL.isHidden = true; -// WingR.isHidden = true; -// Helm2.isHidden = true; -// -// init(); -// } -// -// /** -// * 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; -// } -//} +package lance5057.tDefense.core.tools.armor.renderers.heavy; + +import lance5057.tDefense.core.tools.armor.renderers.ArmorRenderer; +import net.minecraft.client.model.ModelRenderer; +import net.minecraft.entity.Entity; +import net.minecraft.item.ItemStack; + +/** + * ModelPlayer - Either Mojang or a mod author + * Created using Tabula 7.0.0 + */ +public class ModelTinkersHelm extends ArmorRenderer { + public ModelRenderer Visor; + public ModelRenderer Helm; + public ModelRenderer Trim; + public ModelRenderer MouthGuard; + + public ModelTinkersHelm(ItemStack stack) { + super(0.25f, 0, 96, 64, stack); + this.textureWidth = 96; + this.textureHeight = 64; + + this.MouthGuard = new ModelRenderer(this, 64, 32); + this.MouthGuard.setRotationPoint(0.0F, 0.0F, 0.0F); + this.MouthGuard.addBox(-4.5F, -4.5F, -4.5F, 9, 5, 8, 0.11F); + this.setRotateAngle(MouthGuard, 0.3490658503988659F, 0.0F, 0.0F); + this.bipedHead.addChild(MouthGuard); + + this.Helm = new ModelRenderer(this, 64, 47); + this.Helm.setRotationPoint(0.0F, 0.0F, 0.0F); + this.Helm.addBox(-4.0F, -8.0F, -4.0F, 8, 8, 8, 0.5F); + this.bipedHead.addChild(Helm); + + this.Trim = new ModelRenderer(this, 64, 0); + this.Trim.setRotationPoint(0.0F, 0.0F, 0.0F); + this.Trim.addBox(-1.0F, -8.3F, -4.0F, 2, 8, 8, 0.7F); + this.bipedHead.addChild(Trim); + + this.Visor = new ModelRenderer(this, 64, 20); + this.Visor.setRotationPoint(0.0F, 0.0F, 0.0F); + this.Visor.addBox(-4.5F, -6.4F, -6.0F, 9, 4, 8, 0.1F); + this.setRotateAngle(Visor, -0.08726646259971647F, 0.0F, 0.0F); + this.bipedHead.addChild(Visor); + } + + /** + * 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; + } +} diff --git a/src/main/java/lance5057/tDefense/core/tools/armor/renderers/heavy/ModelTinkersSabatons.java b/src/main/java/lance5057/tDefense/core/tools/armor/renderers/heavy/ModelTinkersSabatons.java index 702e7d1..9755123 100644 --- a/src/main/java/lance5057/tDefense/core/tools/armor/renderers/heavy/ModelTinkersSabatons.java +++ b/src/main/java/lance5057/tDefense/core/tools/armor/renderers/heavy/ModelTinkersSabatons.java @@ -1,188 +1,112 @@ -//package lance5057.tDefense.armor.renderers.heavy; -// -//import lance5057.tDefense.armor.renderers.ArmorRenderer; -//import net.minecraft.client.model.ModelRenderer; -// -///** -// * TinkersSabatons - Either Mojang or a mod author -// * Created using Tabula 4.1.1 -// */ -//public class ModelTinkersSabatons extends ArmorRenderer -//{ -// public ModelRenderer BootL; -// public ModelRenderer FlairBackR; -// public ModelRenderer ShinGuardL; -// public ModelRenderer KneeGuardCapL; -// public ModelRenderer LegBackL; -// public ModelRenderer BootR; -// public ModelRenderer ShinGuardR; -// public ModelRenderer BootCapR; -// public ModelRenderer BootCapL; -// public ModelRenderer LegBackR; -// public ModelRenderer FlairL; -// public ModelRenderer KneeGuardCapR; -// public ModelRenderer BootTipR; -// public ModelRenderer BootTipL; -// public ModelRenderer KneeGuardR; -// public ModelRenderer KneeGuardL; -// public ModelRenderer FlairR; -// public ModelRenderer BackFlairL; -// -// public ModelTinkersSabatons() -// { -// super(0.1f, 0, 64, 64); -// -// textureWidth = 64; -// textureHeight = 64; -// -// BootR = new ModelRenderer(this, "Boot Right"); -// BootR.setTextureOffset(0, 56); -// BootR.setRotationPoint(0.0F, 0.0F, 0.0F); -// BootR.addBox(-2.0F, 9.0F, -3.0F, 4, 3, 5, 0.2F); -// bipedRightLeg.addChild(BootR); -// -// BootL = new ModelRenderer(this, "Boot Left"); -// BootL.setTextureOffset(0, 56); -// BootL.mirror = true; -// BootL.setRotationPoint(0.0F, 0.0F, 0.0F); -// BootL.addBox(-2.0F, 9.0F, -3.0F, 4, 3, 5, 0.2F); -// bipedLeftLeg.addChild(BootL); -// -// KneeGuardR = new ModelRenderer(this, "Knee Guard Right"); -// KneeGuardR.setTextureOffset(0, 32); -// KneeGuardR.setRotationPoint(0.0F, 0.0F, 0.0F); -// KneeGuardR.addBox(-2.0F, 3.1F, -2.5F, 4, 3, 4, 0.3F); -// bipedRightLeg.addChild(KneeGuardR); -// -// KneeGuardL = new ModelRenderer(this, "Knee Guard Left"); -// KneeGuardL.setTextureOffset(0, 32); -// KneeGuardL.mirror = true; -// KneeGuardL.setRotationPoint(0.0F, 0.0F, 0.0F); -// KneeGuardL.addBox(-2.0F, 3.1F, -2.5F, 4, 3, 4, 0.3F); -// bipedLeftLeg.addChild(KneeGuardL); -// -// ShinGuardR = new ModelRenderer(this, "Shin Guard Right"); -// ShinGuardR.setTextureOffset(0, 48); -// ShinGuardR.setRotationPoint(0.0F, 0.0F, 0.0F); -// ShinGuardR.addBox(-2.0F, 4.0F, -2.5F, 4, 5, 3, 0.11F); -// setRotateAngle(ShinGuardR, 0.05759586531581287F, 0.0F, 0.0F); -// bipedRightLeg.addChild(ShinGuardR); -// -// ShinGuardL = new ModelRenderer(this, "Shin Guard Left"); -// ShinGuardL.setTextureOffset(0, 48); -// ShinGuardL.mirror = true; -// ShinGuardL.setRotationPoint(0.0F, 0.0F, 0.0F); -// ShinGuardL.addBox(-2.0F, 4.0F, -2.5F, 4, 5, 3, 0.11F); -// setRotateAngle(ShinGuardL, 0.05759586531581287F, 0.0F, 0.0F); -// bipedLeftLeg.addChild(ShinGuardL); -// -// LegBackL = new ModelRenderer(this, "Leg Back Left"); -// LegBackL.setTextureOffset(0, 40); -// LegBackL.mirror = true; -// LegBackL.setRotationPoint(0.0F, 0.0F, 0.0F); -// LegBackL.addBox(-2.0F, 3.0F, 0.6F, 4, 6, 2, 0.1F); -// setRotateAngle(LegBackL, -0.05759586531581287F, 0.0F, 0.0F); -// bipedLeftLeg.addChild(LegBackL); -// -// LegBackR = new ModelRenderer(this, "Leg Back Right"); -// LegBackR.setTextureOffset(0, 40); -// LegBackR.setRotationPoint(0.0F, 0.0F, 0.0F); -// LegBackR.addBox(-2.0F, 3.0F, 0.6F, 4, 6, 2, 0.1F); -// setRotateAngle(LegBackR, -0.05759586531581287F, 0.0F, 0.0F); -// bipedRightLeg.addChild(LegBackR); -// -// FlairR = new ModelRenderer(this, "Flair Right"); -// FlairR.setTextureOffset(18, 53); -// FlairR.setRotationPoint(0.0F, 0.0F, 0.0F); -// FlairR.addBox(0.9F, 0.2F, -2.5F, 5, 11, 0, 0.0F); -// setRotateAngle(FlairR, 0.0F, -0.6108652381980153F, 0.0F); -// bipedLeftLeg.addChild(FlairR); -// -// FlairL = new ModelRenderer(this, "Flair Left"); -// FlairL.setTextureOffset(18, 53); -// FlairL.mirror = true; -// FlairL.setRotationPoint(0.0F, 0.0F, 0.0F); -// FlairL.addBox(-5.9F, 0.2F, -2.5F, 5, 11, 0, 0.0F); -// setRotateAngle(FlairL, 0.0F, 0.6108652381980153F, 0.0F); -// bipedRightLeg.addChild(FlairL); -// -// FlairBackR = new ModelRenderer(this, "Flair Back Right"); -// FlairBackR.setTextureOffset(28, 47); -// FlairBackR.setRotationPoint(0.0F, 0.0F, 0.0F); -// FlairBackR.addBox(0.0F, 0.0F, 2.0F, 0, 12, 5, 0.0F); -// bipedRightLeg.addChild(FlairBackR); -// -// BackFlairL = new ModelRenderer(this, "Flair Back Left"); -// BackFlairL.setTextureOffset(28, 47); -// BackFlairL.mirror = true; -// BackFlairL.setRotationPoint(0.0F, 0.0F, 0.0F); -// BackFlairL.addBox(0.0F, 0.0F, 2.0F, 0, 12, 5, 0.0F); -// bipedLeftLeg.addChild(BackFlairL); -// -// KneeGuardCapR = new ModelRenderer(this, "Knee Guard Cap Right"); -// KneeGuardCapR.setTextureOffset(16, 36); -// KneeGuardCapR.setRotationPoint(0.0F, 0.0F, 0.0F); -// KneeGuardCapR.addBox(-1.5F, 2.4F, -3.8F, 3, 2, 1, 0.2F); -// setRotateAngle(KneeGuardCapR, 0.17453292519943295F, 0.0F, 0.0F); -// bipedRightLeg.addChild(KneeGuardCapR); -// -// KneeGuardCapL = new ModelRenderer(this, "Knee Guard Cap Left"); -// KneeGuardCapL.setTextureOffset(16, 36); -// KneeGuardCapL.mirror = true; -// KneeGuardCapL.setRotationPoint(0.0F, 0.0F, 0.0F); -// KneeGuardCapL.addBox(-1.5F, 2.4F, -3.8F, 3, 2, 1, 0.2F); -// setRotateAngle(KneeGuardCapL, 0.17453292519943295F, 0.0F, 0.0F); -// bipedLeftLeg.addChild(KneeGuardCapL); -// -// BootTipR = new ModelRenderer(this, "Boot Tip Right"); -// BootTipR.setTextureOffset(22, 32); -// BootTipR.setRotationPoint(0.0F, 0.0F, 0.0F); -// BootTipR.addBox(-1.4F, 10.0F, -2.5F, 3, 2, 2, -0.1F); -// setRotateAngle(BootTipR, -0.3490658503988659F, 0.0F, 0.0F); -// bipedRightLeg.addChild(BootTipR); -// -// BootCapR = new ModelRenderer(this, "Boot Cap Right"); -// BootCapR.setTextureOffset(12, 32); -// BootCapR.setRotationPoint(0.0F, 0.0F, 0.0F); -// BootCapR.addBox(-1.5F, 10.0F, -2.5F, 3, 2, 2, 0.3F); -// setRotateAngle(BootCapR, -0.17453292519943295F, 0.0F, 0.0F); -// bipedRightLeg.addChild(BootCapR); -// -// BootTipL = new ModelRenderer(this, "Boot Tip Left"); -// BootTipL.setTextureOffset(22, 32); -// BootTipL.mirror = true; -// BootTipL.setRotationPoint(0.0F, 0.0F, 0.0F); -// BootTipL.addBox(-1.5F, 10.0F, -2.6F, 3, 2, 2, -0.1F); -// setRotateAngle(BootTipL, -0.3490658503988659F, 0.0F, 0.0F); -// bipedLeftLeg.addChild(BootTipL); -// -// BootCapL = new ModelRenderer(this, "Boot Cap Left"); -// BootCapL.setTextureOffset(12, 32); -// BootCapL.mirror = true; -// BootCapL.setRotationPoint(0.0F, 0.0F, 0.0F); -// BootCapL.addBox(-1.5F, 10.0F, -2.5F, 3, 2, 2, 0.3F); -// setRotateAngle(BootCapL, -0.17453292519943295F, 0.0F, 0.0F); -// bipedLeftLeg.addChild(BootCapL); -// -// BootCapL.isHidden = true; -// BootCapR.isHidden = true; -// BootTipL.isHidden = true; -// BootTipR.isHidden = true; -// FlairBackR.isHidden = true; -// BackFlairL.isHidden = true; -// FlairL.isHidden = true; -// FlairR.isHidden = true; -// -// init(); -// } -// -// /** -// * 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; -// } -//} +package lance5057.tDefense.core.tools.armor.renderers.heavy; + +import lance5057.tDefense.core.tools.armor.renderers.ArmorRenderer; +import net.minecraft.client.model.ModelRenderer; +import net.minecraft.entity.Entity; +import net.minecraft.item.ItemStack; + +/** + * ModelPlayer - Either Mojang or a mod author + * Created using Tabula 7.0.0 + */ +public class ModelTinkersSabatons extends ArmorRenderer { + public ModelRenderer BootL; + public ModelRenderer ShinGuardL; + public ModelRenderer KneeGuardCapL; + public ModelRenderer LegBackL; + public ModelRenderer BootR; + public ModelRenderer ShinGuardR; + public ModelRenderer BootCapR; + public ModelRenderer BootCapL; + public ModelRenderer LegBackR; + public ModelRenderer KneeGuardCapR; + public ModelRenderer KneeGuardR; + public ModelRenderer KneeGuardL; + + public ModelTinkersSabatons(ItemStack stack) { + super(0.25f, 0, 96, 64, stack); + this.textureWidth = 96; + this.textureHeight = 64; + + this.ShinGuardL = new ModelRenderer(this, 64, 48); + this.ShinGuardL.mirror = true; + this.ShinGuardL.setRotationPoint(0.0F, 0.0F, 0.0F); + this.ShinGuardL.addBox(-2.0F, 4.0F, -2.5F, 4, 5, 3, 0.26F); + this.setRotateAngle(ShinGuardL, 0.05759586531581287F, 0.0F, 0.0F); + this.bipedLeftLeg.addChild(ShinGuardL); + + this.BootL = new ModelRenderer(this, 64, 56); + this.BootL.mirror = true; + this.BootL.setRotationPoint(0.0F, 0.0F, 0.0F); + this.BootL.addBox(-2.0F, 9.0F, -3.0F, 4, 3, 5, 0.31F); + this.bipedLeftLeg.addChild(BootL); + + this.LegBackL = new ModelRenderer(this, 64, 40); + this.LegBackL.mirror = true; + this.LegBackL.setRotationPoint(-1.9F, 12.0F, 0.0F); + this.LegBackL.addBox(-2.0F, 3.0F, 0.6F, 4, 6, 2, 0.3F); + this.setRotateAngle(LegBackL, -0.05759586531581287F, 0.0F, 0.0F); + this.bipedLeftLeg.addChild(LegBackL); + + this.KneeGuardCapL = new ModelRenderer(this, 80, 36); + this.KneeGuardCapL.mirror = true; + this.KneeGuardCapL.setRotationPoint(-1.9F, 12.0F, 0.0F); + this.KneeGuardCapL.addBox(-1.5F, 2.4F, -3.8F, 3, 2, 1, 0.2F); + this.setRotateAngle(KneeGuardCapL, 0.17453292519943295F, 0.0F, 0.0F); + this.bipedLeftLeg.addChild(KneeGuardCapL); + + this.KneeGuardR = new ModelRenderer(this, 64, 32); + this.KneeGuardR.setRotationPoint(1.9F, 12.0F, 0.0F); + this.KneeGuardR.addBox(-2.0F, 3.0F, -2.5F, 4, 3, 4, 0.31F); + this.bipedRightLeg.addChild(KneeGuardR); + + this.BootR = new ModelRenderer(this, 64, 56); + this.BootR.setRotationPoint(1.9F, 12.0F, 0.1F); + this.BootR.addBox(-2.0F, 9.0F, -3.0F, 4, 3, 5, 0.31F); + this.bipedRightLeg.addChild(BootR); + + this.ShinGuardR = new ModelRenderer(this, 64, 48); + this.ShinGuardR.setRotationPoint(1.9F, 12.0F, 0.0F); + this.ShinGuardR.addBox(-2.0F, 4.0F, -2.5F, 4, 5, 3, 0.26F); + this.setRotateAngle(ShinGuardR, 0.05759586531581287F, 0.0F, 0.0F); + this.bipedRightLeg.addChild(ShinGuardR); + + this.KneeGuardL = new ModelRenderer(this, 64, 32); + this.KneeGuardL.mirror = true; + this.KneeGuardL.setRotationPoint(-1.9F, 12.0F, 0.0F); + this.KneeGuardL.addBox(-2.0F, 3.0F, -2.5F, 4, 3, 4, 0.31F); + this.bipedLeftLeg.addChild(KneeGuardL); + + this.BootCapR = new ModelRenderer(this, 76, 32); + this.BootCapR.setRotationPoint(1.9F, 12.0F, 0.1F); + this.BootCapR.addBox(-1.5F, 10.0F, -4.0F, 3, 2, 2, 0.3F); + this.bipedRightLeg.addChild(BootCapR); + + this.KneeGuardCapR = new ModelRenderer(this, 80, 36); + this.KneeGuardCapR.setRotationPoint(1.9F, 12.0F, 0.0F); + this.KneeGuardCapR.addBox(-1.5F, 2.4F, -3.8F, 3, 2, 1, 0.2F); + this.setRotateAngle(KneeGuardCapR, 0.17453292519943295F, 0.0F, 0.0F); + this.bipedRightLeg.addChild(KneeGuardCapR); + + this.BootCapL = new ModelRenderer(this, 76, 32); + this.BootCapL.mirror = true; + this.BootCapL.setRotationPoint(-1.9F, 12.0F, 0.1F); + this.BootCapL.addBox(-1.5F, 10.0F, -4.0F, 3, 2, 2, 0.3F); + this.bipedLeftLeg.addChild(BootCapL); + + this.LegBackR = new ModelRenderer(this, 64, 40); + this.LegBackR.setRotationPoint(1.9F, 12.0F, 0.0F); + this.LegBackR.addBox(-2.0F, 3.0F, 0.6F, 4, 6, 2, 0.3F); + this.setRotateAngle(LegBackR, -0.05759586531581287F, 0.0F, 0.0F); + this.bipedRightLeg.addChild(LegBackR); + } + + /** + * 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; + } +} diff --git a/src/main/java/lance5057/tDefense/core/tools/armor/renderers/shaders/ArmorShader.java b/src/main/java/lance5057/tDefense/core/tools/armor/renderers/shaders/ArmorShader.java new file mode 100644 index 0000000..90638a5 --- /dev/null +++ b/src/main/java/lance5057/tDefense/core/tools/armor/renderers/shaders/ArmorShader.java @@ -0,0 +1,63 @@ +package lance5057.tDefense.core.tools.armor.renderers.shaders; + +import org.lwjgl.opengl.GL11; + +import lance5057.tDefense.util.Color16Util; +import net.minecraft.client.Minecraft; +import net.minecraft.util.ResourceLocation; +import slimeknights.tconstruct.library.client.MaterialRenderInfo; + +public class ArmorShader +{ + public static void colorize(ResourceLocation r1, int color) + { + Minecraft.getMinecraft().getTextureManager().bindTexture(r1); + + String hex = Integer.toHexString(color); + int[] colors; + if(hex.length() == 8) + colors = Color16Util.hexToRGB(hex.substring(2)); + else + colors = Color16Util.hexToRGB(hex); + GL11.glColor3d((float) colors[0] / 255, (float) colors[1] / 255, (float) colors[2] / 255); + } + + public static void metalTexture(ResourceLocation r1, ResourceLocation r2, int color) + { + GL11.glEnable(GL11.GL_BLEND); + GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); + Minecraft.getMinecraft().getTextureManager().bindTexture(r1); + + int[] colors = Color16Util.hexToRGB(Integer.toHexString(color)); +// GL11.glColor3d((float) colors[0] / 255, (float) colors[1] / 255, (float) colors[2] / 255); + + Minecraft.getMinecraft().getTextureManager().bindTexture(r1); + GL11.glColor4f((float) colors[0] / 255, (float) colors[1] / 255, (float) colors[2] / 255, 1.0f); + GL11.glBegin(GL11.GL_QUADS); + GL11.glTexCoord2f(0.0f, 0.0f); + GL11.glTexCoord2f(1.0f, 0.0f); + GL11.glTexCoord2f(1.0f, 1.0f); + GL11.glTexCoord2f(0.0f, 1.0f); + GL11.glEnd(); + + Minecraft.getMinecraft().getTextureManager().bindTexture(r2); + GL11.glColor4f((float) colors[0] / 255, (float) colors[1] / 255, (float) colors[2] / 255, 1.0f); + GL11.glBegin(GL11.GL_QUADS); + GL11.glTexCoord2f(0.0f, 0.0f); + GL11.glTexCoord2f(1.0f, 0.0f); + GL11.glTexCoord2f(1.0f, 1.0f); + GL11.glTexCoord2f(0.0f, 1.0f); + GL11.glEnd(); + } + + public static void selectRenderer(MaterialRenderInfo info, ResourceLocation r1) + { + if(info instanceof MaterialRenderInfo.MetalTextured) + metalTexture(r1,r1, ((MaterialRenderInfo.MetalTextured) info).color); + else if(info instanceof MaterialRenderInfo.Metal) + colorize(r1, ((MaterialRenderInfo.Metal) info).color); + else + colorize(r1, ((MaterialRenderInfo.Default) info).color); + + } +} diff --git a/src/main/java/lance5057/tDefense/core/tools/armor/straps/ItemStraps.java b/src/main/java/lance5057/tDefense/core/tools/armor/straps/ItemStraps.java index 8adbddb..2c5d0af 100644 --- a/src/main/java/lance5057/tDefense/core/tools/armor/straps/ItemStraps.java +++ b/src/main/java/lance5057/tDefense/core/tools/armor/straps/ItemStraps.java @@ -6,6 +6,8 @@ import javax.annotation.Nullable; import baubles.api.IBauble; import lance5057.tDefense.TinkersDefense; import lance5057.tDefense.core.tools.bases.ArmorCore; +import net.minecraft.client.model.ModelBiped; +import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.inventory.EntityEquipmentSlot; @@ -23,22 +25,51 @@ import net.minecraftforge.common.ISpecialArmor; import net.minecraftforge.common.capabilities.Capability; import net.minecraftforge.common.capabilities.ICapabilityProvider; import net.minecraftforge.common.capabilities.ICapabilitySerializable; +import net.minecraftforge.fml.relauncher.Side; +import net.minecraftforge.fml.relauncher.SideOnly; import net.minecraftforge.items.CapabilityItemHandler; import net.minecraftforge.items.IItemHandler; import net.minecraftforge.items.ItemStackHandler; public class ItemStraps extends ItemArmor implements ISpecialArmor { - public ItemStraps() + public EntityEquipmentSlot equipSlot; + public ItemStraps(EntityEquipmentSlot slot) { - super(ArmorMaterial.LEATHER, 0, EntityEquipmentSlot.HEAD); + super(ArmorMaterial.LEATHER, 0, slot); // ItemStacks that store an NBT Tag Compound are limited to stack size // of 1 setMaxStackSize(1); // you'll want to set a creative tab as well, so you can get your item setCreativeTab(TinkersDefense.tab); - this.setRegistryName("straps").setUnlocalizedName("straps"); + this.setRegistryName("straps" + slot.getName()).setUnlocalizedName("straps" + slot.getName()); } + + @Override + @Nullable + @SideOnly(Side.CLIENT) + public final String getArmorTexture(ItemStack stack, Entity entity, EntityEquipmentSlot slot, String type) + { + ItemStack in = stack.getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, null).getStackInSlot(0); + if(in.getItem() instanceof ArmorCore) + { + return ((ArmorCore)in.getItem()).getArmorTexture(stack, 0); + } + return null; + } + + @Override + @SideOnly(Side.CLIENT) + @Nullable + public net.minecraft.client.model.ModelBiped getArmorModel(EntityLivingBase entityLiving, ItemStack itemStack, EntityEquipmentSlot armorSlot, net.minecraft.client.model.ModelBiped _default) + { + ItemStack in = itemStack.getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, null).getStackInSlot(0); + if(in.getItem() instanceof ArmorCore) + { + return ((ArmorCore)in.getItem()).getArmorModel(in); + } + return null; + } @Nonnull @Override diff --git a/src/main/java/lance5057/tDefense/core/tools/bases/ArmorCore.java b/src/main/java/lance5057/tDefense/core/tools/bases/ArmorCore.java index 7a9e71e..0c4ef87 100644 --- a/src/main/java/lance5057/tDefense/core/tools/bases/ArmorCore.java +++ b/src/main/java/lance5057/tDefense/core/tools/bases/ArmorCore.java @@ -1,31 +1,32 @@ package lance5057.tDefense.core.tools.bases; +import java.util.ArrayList; import java.util.List; -import javax.annotation.Nullable; - -import net.minecraft.client.entity.EntityPlayerSP; +import lance5057.tDefense.Reference; +import net.minecraft.client.Minecraft; +import net.minecraft.client.model.ModelBiped; +import net.minecraft.client.renderer.ItemModelMesher; +import net.minecraft.client.renderer.block.model.BakedQuad; +import net.minecraft.client.renderer.block.model.IBakedModel; +import net.minecraft.client.renderer.block.model.ItemCameraTransforms; +import net.minecraft.client.renderer.texture.TextureAtlasSprite; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLivingBase; -import net.minecraft.entity.player.EntityPlayer; -import net.minecraft.item.EnumAction; -import net.minecraft.item.IItemPropertyGetter; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; -import net.minecraft.util.ActionResult; -import net.minecraft.util.EnumActionResult; import net.minecraft.util.EnumFacing; -import net.minecraft.util.EnumHand; import net.minecraft.util.ResourceLocation; -import net.minecraft.util.math.BlockPos; -import net.minecraft.world.World; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; +import slimeknights.tconstruct.library.client.model.MaterialModel; +import slimeknights.tconstruct.library.client.model.ModelHelper; +import slimeknights.tconstruct.library.client.model.ToolModel; import slimeknights.tconstruct.library.tinkering.PartMaterialType; import slimeknights.tconstruct.library.tools.ToolCore; import slimeknights.tconstruct.library.tools.ToolNBT; -public class ArmorCore extends ToolCore +public abstract class ArmorCore extends ToolCore { public ArmorCore(PartMaterialType... requiredComponents) { @@ -38,24 +39,58 @@ public class ArmorCore extends ToolCore } @Override - public float damagePotential() { + public float damagePotential() + { return 0.0f; } @Override - public double attackSpeed() { + public double attackSpeed() + { return 0; } @Override - public NBTTagCompound buildTag( - List<slimeknights.tconstruct.library.materials.Material> materials) { + public NBTTagCompound buildTag(List<slimeknights.tconstruct.library.materials.Material> materials) + { ToolNBT data = buildDefaultTag(materials); return data.get(); } - + public int getArmorDisplay() { return 0; } + + @SideOnly(Side.CLIENT) + public abstract String getArmorTexture(ItemStack stack,int layer); + + @SideOnly(Side.CLIENT) + public abstract ModelBiped getArmorModel(ItemStack stack); + + public List<TextureAtlasSprite> sprites; + + @SideOnly(Side.CLIENT) + public void initTextures(ItemStack stack, EntityLivingBase entity) + { + sprites = new ArrayList<TextureAtlasSprite>(); + + TextureAtlasSprite s = ((ToolCore)stack.getItem()).getMaterialForPartForGuiRendering(0).renderInfo.getTexture(new ResourceLocation(Reference.MOD_ID), "hood_cloth"); + +// ItemModelMesher mesher = Minecraft.getMinecraft().getRenderItem().getItemModelMesher(); +// List<BakedQuad> list = new ArrayList<BakedQuad>(); +// +// IBakedModel m = Minecraft.getMinecraft().getRenderItem().getItemModelWithOverrides(stack, entity.world, entity); + //Minecraft.getMinecraft().getRenderItem().renderItem(stack, ItemCameraTransforms.TransformType.NONE); + //= ModelHelper.getBakedModelForItem(stack, entity.world, entity); + +// list.addAll(m.getQuads(null, null, 0)); +// +// for (BakedQuad quad : list) +// { +// ResourceLocation loc1 = new ResourceLocation(quad.getSprite().getIconName()); +// +// sprites.add(Minecraft.getMinecraft().getTextureMapBlocks().getAtlasSprite(loc1.toString())); +// } + } } diff --git a/src/main/java/lance5057/tDefense/core/tools/basic/TowerShield.java b/src/main/java/lance5057/tDefense/core/tools/basic/TowerShield.java new file mode 100644 index 0000000..31f6c25 --- /dev/null +++ b/src/main/java/lance5057/tDefense/core/tools/basic/TowerShield.java @@ -0,0 +1,22 @@ +package lance5057.tDefense.core.tools.basic; + +import lance5057.tDefense.core.materials.ShieldMaterialStats; +import lance5057.tDefense.core.parts.TDParts; +import lance5057.tDefense.core.tools.bases.Shield; +import slimeknights.tconstruct.library.tinkering.PartMaterialType; +import slimeknights.tconstruct.library.tools.IToolPart; +import slimeknights.tconstruct.tools.TinkerTools; + +public class TowerShield extends Shield +{ + int induceDamage = 0; + + public TowerShield() + { + super(PartMaterialType.handle(TinkerTools.toughToolRod), + new PartMaterialType(TinkerTools.largePlate, ShieldMaterialStats.TYPE), + new PartMaterialType(TinkerTools.largePlate, ShieldMaterialStats.TYPE), + PartMaterialType.extra(TDParts.rivets)); + setUnlocalizedName("towershield"); + } +} diff --git a/src/main/java/lance5057/tDefense/proxy/ClientProxy.java b/src/main/java/lance5057/tDefense/proxy/ClientProxy.java index 43e141c..de1dafd 100644 --- a/src/main/java/lance5057/tDefense/proxy/ClientProxy.java +++ b/src/main/java/lance5057/tDefense/proxy/ClientProxy.java @@ -15,6 +15,7 @@ import lance5057.tDefense.core.parts.TDParts; import lance5057.tDefense.core.renderers.BaubleRenderer; import lance5057.tDefense.core.renderers.SheatheModel; import lance5057.tDefense.core.tools.TDTools; +import lance5057.tDefense.core.tools.bases.ArmorCore; import lance5057.tDefense.renderers.deserializers.AlphaColorTextureDeserializer; import net.minecraft.block.Block; import net.minecraft.block.state.IBlockState; @@ -35,6 +36,7 @@ import net.minecraftforge.fluids.Fluid; import slimeknights.tconstruct.common.ModelRegisterUtil; import slimeknights.tconstruct.library.TinkerRegistry; import slimeknights.tconstruct.library.TinkerRegistryClient; +import slimeknights.tconstruct.library.client.CustomTextureCreator; import slimeknights.tconstruct.library.client.ToolBuildGuiInfo; import slimeknights.tconstruct.library.client.material.MaterialRenderInfoLoader; import slimeknights.tconstruct.library.materials.Material; @@ -52,7 +54,8 @@ public class ClientProxy extends CommonProxy { ToolBuildGuiInfo roundshieldGUI; ToolBuildGuiInfo heatershieldGUI; - + ToolBuildGuiInfo towershieldGUI; + ToolBuildGuiInfo zweihanderGUI; ToolBuildGuiInfo shearsGUI; ToolBuildGuiInfo fishingRodGUI; @@ -83,6 +86,9 @@ public class ClientProxy extends CommonProxy { ClientCommandHandler.instance.registerCommand(new TD_Commands()); MaterialRenderInfoLoader.addRenderInfo("alpha_color", AlphaColorTextureDeserializer.class); + + //register all armor textures into tinkers + //CustomTextureCreator.registerTexture(new ResourceLocation(Reference.MOD_ID, "armor/hood/_hood_cloth")); } @@ -147,6 +153,7 @@ public class ClientProxy extends CommonProxy { public void createToolGuis() { roundshieldGUI = new ToolBuildGuiInfo(TDTools.roundshield); heatershieldGUI = new ToolBuildGuiInfo(TDTools.heatershield); + towershieldGUI = new ToolBuildGuiInfo(TDTools.towershield); zweihanderGUI = new ToolBuildGuiInfo(TDTools.zweihander); shearsGUI = new ToolBuildGuiInfo(TDTools.shears); fishingRodGUI = new ToolBuildGuiInfo(TDTools.fishingRod); @@ -176,6 +183,11 @@ public class ClientProxy extends CommonProxy { heatershieldGUI.addSlotPosition(25, 33 + 8); heatershieldGUI.addSlotPosition(43, 33 + 8); heatershieldGUI.addSlotPosition(34, 51 + 8); + + towershieldGUI.addSlotPosition(34, 15 + 8); + towershieldGUI.addSlotPosition(25, 33 + 8); + towershieldGUI.addSlotPosition(43, 33 + 8); + towershieldGUI.addSlotPosition(34, 51 + 8); zweihanderGUI.addSlotPosition(34, 15 + 8); zweihanderGUI.addSlotPosition(25, 33 + 8); @@ -195,7 +207,8 @@ public class ClientProxy extends CommonProxy { robeGUI.addSlotPosition(34, 51 + 8); shoesGUI.addSlotPosition(34, 15 + 8); - shoesGUI.addSlotPosition(43, 33 + 8); + shoesGUI.addSlotPosition(25, 33 + 8); + shoesGUI.addSlotPosition(43, 51 + 8); shoesGUI.addSlotPosition(34, 51 + 8); shearsGUI.addSlotPosition(34, 15 + 8); @@ -220,6 +233,7 @@ public class ClientProxy extends CommonProxy { public void registerToolGuis() { TinkerRegistryClient.addToolBuilding(roundshieldGUI); TinkerRegistryClient.addToolBuilding(heatershieldGUI); + TinkerRegistryClient.addToolBuilding(towershieldGUI); TinkerRegistryClient.addToolBuilding(zweihanderGUI); TinkerRegistryClient.addToolBuilding(shearsGUI); TinkerRegistryClient.addToolBuilding(fishingRodGUI); @@ -267,6 +281,12 @@ public class ClientProxy extends CommonProxy { heatershieldGUI.addSlotPosition(25, 33); heatershieldGUI.addSlotPosition(43, 33); heatershieldGUI.addSlotPosition(34, 51); + + towershieldGUI.positions.clear(); + towershieldGUI.addSlotPosition(34, 15); + towershieldGUI.addSlotPosition(25, 33); + towershieldGUI.addSlotPosition(43, 33); + towershieldGUI.addSlotPosition(34, 51); zweihanderGUI.positions.clear(); zweihanderGUI.addSlotPosition(34, 15); @@ -291,7 +311,8 @@ public class ClientProxy extends CommonProxy { shoesGUI.positions.clear(); shoesGUI.addSlotPosition(34, 15 + 8); - shoesGUI.addSlotPosition(43, 33 + 8); + shoesGUI.addSlotPosition(25, 33 + 8); + shoesGUI.addSlotPosition(43, 51 + 8); shoesGUI.addSlotPosition(34, 51 + 8); breastplateGUI.positions.clear(); @@ -348,8 +369,6 @@ public class ClientProxy extends CommonProxy { sheathe = new SheatheModel(); } - - @Override public void registerItemRenderer(Item item, int meta, String id) { ModelLoader.setCustomModelResourceLocation(item, meta, |
