diff options
| author | Lance5057 <Lance5057@gmail.com> | 2017-03-12 18:15:17 -0500 |
|---|---|---|
| committer | Lance5057 <Lance5057@gmail.com> | 2017-03-12 18:15:17 -0500 |
| commit | f692d8983ee8787843d874ae1aa329c1439e3223 (patch) | |
| tree | a19cbd6d584d0ccd3d6117d63489168a89a19c3c /src/main/java/lance5057/tDefense/TinkersDefense.java | |
| parent | a7ea7c80bff70096191fd772a0416aec15d41a69 (diff) | |
Hopefully this unfucks whatever got fucked.
Diffstat (limited to 'src/main/java/lance5057/tDefense/TinkersDefense.java')
| -rw-r--r-- | src/main/java/lance5057/tDefense/TinkersDefense.java | 1404 |
1 files changed, 454 insertions, 950 deletions
diff --git a/src/main/java/lance5057/tDefense/TinkersDefense.java b/src/main/java/lance5057/tDefense/TinkersDefense.java index e610a2b..bf58ba3 100644 --- a/src/main/java/lance5057/tDefense/TinkersDefense.java +++ b/src/main/java/lance5057/tDefense/TinkersDefense.java @@ -1,1000 +1,504 @@ package lance5057.tDefense; -import static net.minecraft.util.EnumChatFormatting.DARK_RED; -import static net.minecraft.util.EnumChatFormatting.GOLD; -import static net.minecraft.util.EnumChatFormatting.LIGHT_PURPLE; - import java.util.Iterator; import java.util.List; -import lance5057.tDefense.armor.TDArmorAddon; -import lance5057.tDefense.armor.parts.Cloth; -import lance5057.tDefense.armor.parts.ClothMaterial; -import lance5057.tDefense.baubles.blocks.JewelersBench; -import lance5057.tDefense.baubles.tileentities.TileEntity_JewelersBench; -import lance5057.tDefense.core.TD_Patterns; -import lance5057.tDefense.core.blocks.AeonSteelBlock; -import lance5057.tDefense.core.blocks.DogbeariumBlock; -import lance5057.tDefense.core.blocks.GreenMintBlock; -import lance5057.tDefense.core.blocks.QueensGoldBlock; -import lance5057.tDefense.core.blocks.RedMintBlock; -import lance5057.tDefense.core.blocks.crestMount.CrestMount; -import lance5057.tDefense.core.blocks.crestMount.TileEntity_CrestMount; -import lance5057.tDefense.core.events.TDEventHandler; -//import lance5057.tDefense.core.items.GuideBook; -import lance5057.tDefense.core.liquids.MoltenFluid; -import lance5057.tDefense.core.network.PacketHandler; -import lance5057.tDefense.core.tools.HeaterShield; -import lance5057.tDefense.core.tools.RoundShield; -import lance5057.tDefense.core.tools.Shears; -import lance5057.tDefense.core.tools.TinkerWrench; -import lance5057.tDefense.core.tools.TinkerZweihander; -//import lance5057.tDefense.core.tools.TinkersHookshot; -import lance5057.tDefense.core.tools.modifiers.Modifiers; -import lance5057.tDefense.core.tools.modifiers.Botania.BotaniaMods; -import lance5057.tDefense.finishingAnvil.blocks.finishingAnvil.FinishingAnvil; -import lance5057.tDefense.finishingAnvil.blocks.finishingAnvil.TileEntity_FinishingAnvil; -import lance5057.tDefense.finishingAnvil.utilities.Injector; +import lance5057.tDefense.core.CoreBase; +import lance5057.tDefense.core.materials.TDMaterials; +import lance5057.tDefense.core.tools.TDTools; +import lance5057.tDefense.holiday.HolidayBase; import lance5057.tDefense.proxy.CommonProxy; +import lance5057.tDefense.util.ModuleBase; import net.minecraft.block.Block; -import net.minecraft.block.material.Material; -import net.minecraft.creativetab.CreativeTabs; -import net.minecraft.init.Blocks; -import net.minecraft.init.Items; -import net.minecraft.item.Item; -import net.minecraft.item.ItemStack; import net.minecraft.item.crafting.CraftingManager; import net.minecraft.item.crafting.IRecipe; -import net.minecraft.util.StatCollector; -import net.minecraftforge.client.ClientCommandHandler; -import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.fluids.Fluid; -import net.minecraftforge.fluids.FluidRegistry; -import net.minecraftforge.fluids.FluidStack; -import tconstruct.TConstruct; -import tconstruct.armor.TinkerArmor; -import tconstruct.library.TConstructRegistry; -import tconstruct.library.client.StencilGuiElement; -import tconstruct.library.client.TConstructClientRegistry; -import tconstruct.library.client.ToolGuiElement; -import tconstruct.library.crafting.FluidType; -import tconstruct.library.crafting.LiquidCasting; -import tconstruct.library.crafting.PatternBuilder; -import tconstruct.library.crafting.Smeltery; -import tconstruct.library.crafting.StencilBuilder; -import tconstruct.library.crafting.ToolBuilder; -import tconstruct.library.tools.DynamicToolPart; -import tconstruct.library.tools.ToolCore; -import tconstruct.smeltery.TinkerSmeltery; -import tconstruct.tools.TinkerTools; -import tconstruct.tools.items.Pattern; -import cpw.mods.fml.common.Mod; -import cpw.mods.fml.common.Mod.EventHandler; -import cpw.mods.fml.common.Mod.Instance; -import cpw.mods.fml.common.SidedProxy; -import cpw.mods.fml.common.event.FMLInitializationEvent; -import cpw.mods.fml.common.event.FMLPostInitializationEvent; -import cpw.mods.fml.common.event.FMLPreInitializationEvent; -import cpw.mods.fml.common.network.NetworkRegistry; -import cpw.mods.fml.common.network.simpleimpl.SimpleNetworkWrapper; -import cpw.mods.fml.common.registry.GameRegistry; +import net.minecraftforge.fml.common.Mod; +import net.minecraftforge.fml.common.Mod.EventHandler; +import net.minecraftforge.fml.common.Mod.Instance; +import net.minecraftforge.fml.common.SidedProxy; +import net.minecraftforge.fml.common.event.FMLInitializationEvent; +import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; +import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; +import net.minecraftforge.fml.common.network.NetworkRegistry; +import net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper; +import scala.reflect.internal.Trees.Modifiers; @Mod(modid = Reference.MOD_ID, version = Reference.VERSION, name = Reference.MOD_NAME) -public class TinkersDefense -{ - public static String[] colors = {"black", "red", "green", "brown", "blue", "purple", "cyan", "lightgray", "gray", "pink", "lime", "yellow", "lightblue", "magenta", "orange", "white"}; +public class TinkersDefense { - private static int modGuiIndex = 0; - public static final int GUI_CREST_INV = modGuiIndex++; - public static final int GUI_ANVIL_INV = modGuiIndex++; - public static final int GUI_GUIDEBOOK = modGuiIndex++; + private static int modGuiIndex = 0; + public static final int GUI_CREST_INV = modGuiIndex++; + public static final int GUI_ANVIL_INV = modGuiIndex++; + public static final int GUI_GUIDEBOOK = modGuiIndex++; @Instance(Reference.MOD_ID) - public static TinkersDefense instance = new TinkersDefense(); + public static TinkersDefense instance = new TinkersDefense(); - public static CreativeTabs tabName; + HolidayBase holiday; + ModuleBase core; - public static TDEventHandler TDevents; + // public static TDEventHandler TDevents; - public static TD_Config config; + public static TD_Config config; - public static final SimpleNetworkWrapper INSTANCE = NetworkRegistry.INSTANCE.newSimpleChannel(Reference.MOD_ID); + public static final SimpleNetworkWrapper INSTANCE = NetworkRegistry.INSTANCE + .newSimpleChannel(Reference.MOD_ID); - public static Modifiers mods; + public static Modifiers mods; - //public static Item item_Guidebook; + // public static Item item_Guidebook; - public static Item item_aeonsteelIngot; - public static Block block_aeonsteelBlock; - public static Fluid moltenaeonsteel; - public static Block moltenaeonsteelBlock; + TDTools tools; + TDMaterials mats; - public static Item item_queensgoldIngot; - public static Block block_queensgoldBlock; - public static Fluid moltenqueensgold; - public static Block moltenqueensgoldBlock; + public static Block block_aeonsteelBlock; + public static Fluid moltenaeonsteel; + public static Block moltenaeonsteelBlock; - public static Item item_dogbeariumIngot; - public static Block block_dogbeariumBlock; - public static Fluid moltendogbearium; - public static Block moltendogbeariumBlock; + public static Block block_queensgoldBlock; + public static Fluid moltenqueensgold; + public static Block moltenqueensgoldBlock; - public static Item item_redmintcane; - public static Item item_greenmintcane; + public static Block block_dogbeariumBlock; + public static Fluid moltendogbearium; + public static Block moltendogbeariumBlock; - public static Item item_redmintIngot; - public static Block block_redmintBlock; - public static Fluid moltenredmint; - public static Block moltenredmintBlock; + public static Block block_redmintBlock; + public static Fluid moltenredmint; + public static Block moltenredmintBlock; - public static Item item_greenmintIngot; - public static Block block_greenmintBlock; - public static Fluid moltengreenmint; - public static Block moltengreenmintBlock; + public static Block block_greenmintBlock; + public static Fluid moltengreenmint; + public static Block moltengreenmintBlock; - // public static Item item_RawSapphire; - // public static Item item_RawRuby; - // public static Item item_RawAmethyst; - // public static Item item_RawAmber; + // public static Item item_RawSapphire; + // public static Item item_RawRuby; + // public static Item item_RawAmethyst; + // public static Item item_RawAmber; // - // public static Block block_SapphireOre; - // public static Block block_RubyOre; - // public static Block block_AmethystOre; - // public static Block block_AmberOre; - - public static ToolCore tool_roundShield; - public static ToolCore tool_heaterShield; - public static ToolCore tool_wrench; - public static ToolCore tool_zweihander; - public static ToolCore tool_shears; - //public static ToolCore tool_hookshot; - - public static Block block_CrestMount; - public static Block block_ArmorAnvil; - public static Block block_JewelersBench; - - //public static Item item_ChainArmor; - public static Pattern woodPattern; - public static Pattern metalPattern; - - public static Item partRivet; - public static Item partArmorplate; - public static Item partClasp; - public static Item partCloth; - public static Item partChainmaille; - - public static ToolCore tcInject; + // public static Block block_SapphireOre; + // public static Block block_RubyOre; + // public static Block block_AmethystOre; + // public static Block block_AmberOre; + + // public static ToolCore tool_roundShield; + // public static ToolCore tool_heaterShield; + // public static ToolCore tool_wrench; + // public static ToolCore tool_zweihander; + // public static ToolCore tool_shears; + // public static ToolCore tool_hookshot; + + // public static Block block_CrestMount; + // public static Block block_ArmorAnvil; + // public static Block block_JewelersBench; + // + // //public static Item item_ChainArmor; + // public static Pattern woodPattern; + // public static Pattern metalPattern; + // + // public static Item partRivet; + // public static Item partArmorplate; + // public static Item partClasp; + // public static Item partCloth; + // public static Item partChainmaille; + // + // public static ToolCore tcInject; - public static BotaniaMods flowermod; + // public static BotaniaMods flowermod; @SidedProxy(clientSide = "lance5057.tDefense.proxy.ClientProxy", serverSide = "lance5057.tDefense.proxy.CommonProxy") - public static CommonProxy proxy; - public static int month; + public static CommonProxy proxy; + public static int month; - public TDArmorAddon ArmorAddon = new TDArmorAddon(); + // public TDArmorAddon ArmorAddon = new TDArmorAddon(); @EventHandler - public void preInit(FMLPreInitializationEvent e) - { - tabName = new CreativeTabs("tabName") - { - - @Override - public Item getTabIconItem() - { - return ToolBuilder.instance.buildTool(new ItemStack( - TinkersDefense.partArmorplate, 1, 2), new ItemStack( - TinkerTools.toughRod, 1, 2), new ItemStack( - TinkersDefense.partArmorplate, 1, 2), new ItemStack( - TinkersDefense.partRivet, 1, 2), "TDTab").getItem(); - } - - }; - - PacketHandler.init(); - - NetworkRegistry.INSTANCE.registerGuiHandler(TinkersDefense.instance, new CommonProxy()); - MinecraftForge.EVENT_BUS.register(this); - - ClientCommandHandler.instance.registerCommand(new TD_Commands()); - - //Initializations - //Internal Classes - TDevents = new TDEventHandler(); + public void preInit(FMLPreInitializationEvent e) { + core = new CoreBase(); + holiday = new HolidayBase(); + mats = new TDMaterials(); + tools = new TDTools(); config = new TD_Config(e); - mods = new Modifiers(); - - //Blocks - block_CrestMount = new CrestMount().setHardness(4.0F).setStepSound(Block.soundTypeStone).setBlockName("crestmount").setCreativeTab(tabName); - block_ArmorAnvil = new FinishingAnvil().setHardness(4.0F).setStepSound(Block.soundTypeAnvil).setBlockName("armoranvil").setCreativeTab(tabName); - block_JewelersBench = new JewelersBench().setHardness(4.0F).setStepSound(Block.soundTypeWood).setBlockName("jewelersbench").setCreativeTab(tabName); - - block_aeonsteelBlock = new AeonSteelBlock(Material.iron).setHardness(4.0F).setStepSound(Block.soundTypeMetal).setBlockName("aeonsteelblock").setCreativeTab(tabName).setBlockTextureName(Reference.MOD_ID + ":aeonsteelblock"); - block_queensgoldBlock = new QueensGoldBlock(Material.iron).setHardness(4.0F).setStepSound(Block.soundTypeMetal).setBlockName("queensgoldblock").setCreativeTab(tabName).setBlockTextureName(Reference.MOD_ID + ":queensgoldblock"); - block_dogbeariumBlock = new DogbeariumBlock(Material.iron).setHardness(4.0F).setStepSound(Block.soundTypeMetal).setBlockName("dogbeariumblock").setCreativeTab(tabName).setBlockTextureName(Reference.MOD_ID + ":dogbeariumblock"); - block_redmintBlock = new RedMintBlock(Material.iron).setHardness(4.0F).setStepSound(Block.soundTypeMetal).setBlockName("redmintblock").setCreativeTab(tabName).setBlockTextureName(Reference.MOD_ID + ":redmintblock"); - block_greenmintBlock = new GreenMintBlock(Material.iron).setHardness(4.0F).setStepSound(Block.soundTypeMetal).setBlockName("greenmintblock").setCreativeTab(tabName).setBlockTextureName(Reference.MOD_ID + ":greenmintblock"); - - //Items - //item_Guidebook = new GuideBook(); - item_aeonsteelIngot = new Item().setCreativeTab(tabName).setMaxStackSize(64).setUnlocalizedName("aeonsteelingot").setTextureName(Reference.MOD_ID + ":aeonsteelingot"); - item_queensgoldIngot = new Item().setCreativeTab(tabName).setMaxStackSize(64).setUnlocalizedName("queensgoldingot").setTextureName(Reference.MOD_ID + ":queensgoldingot"); - item_dogbeariumIngot = new Item().setCreativeTab(tabName).setMaxStackSize(64).setUnlocalizedName("dogbeariumingot").setTextureName(Reference.MOD_ID + ":dogbeariumingot"); - item_redmintcane = new Item().setCreativeTab(tabName).setMaxStackSize(64).setUnlocalizedName("redmintcane").setTextureName(Reference.MOD_ID + ":redmintcane"); - item_redmintIngot = new Item().setCreativeTab(tabName).setMaxStackSize(64).setUnlocalizedName("redmintIngot").setTextureName(Reference.MOD_ID + ":redmintingot"); - item_greenmintcane = new Item().setCreativeTab(tabName).setMaxStackSize(64).setUnlocalizedName("greenmintcane").setTextureName(Reference.MOD_ID + ":greenmintcane"); - item_greenmintIngot = new Item().setCreativeTab(tabName).setMaxStackSize(64).setUnlocalizedName("greenmintIngot").setTextureName(Reference.MOD_ID + ":greenmintingot"); - - //Fluids - moltenaeonsteel = new Fluid("moltenaeonsteel").setLuminosity(15).setDensity(3000).setViscosity(6000).setTemperature(1300); - moltenqueensgold = new Fluid("moltenqueensgold").setLuminosity(15).setDensity(3000).setViscosity(6000).setTemperature(1300); - moltendogbearium = new Fluid("moltendogbearium").setLuminosity(15).setDensity(3000).setViscosity(6000).setTemperature(1300); - moltenredmint = new Fluid("moltenredmint").setLuminosity(15).setDensity(3000).setViscosity(6000).setTemperature(1300); - moltengreenmint = new Fluid("moltengreenmint").setLuminosity(15).setDensity(3000).setViscosity(6000).setTemperature(1300); - - //Tools - tool_roundShield = new RoundShield(); - tool_heaterShield = new HeaterShield(); - tool_shears = new Shears(); - tool_wrench = new TinkerWrench(); - tool_zweihander = new TinkerZweihander(0); - //tool_hookshot = new TinkersHookshot(); - - //Patterns - woodPattern = new TD_Patterns("pattern_", "Pattern"); - metalPattern = new TD_Patterns("cast_", "MetalPattern"); - - //Minecraft Registrations - //Blocks - GameRegistry.registerBlock(block_CrestMount, "block_crestmount"); - GameRegistry.registerBlock(block_ArmorAnvil, "block_armoranvil"); - GameRegistry.registerBlock(block_JewelersBench, "block_jewelersbench"); - GameRegistry.registerBlock(block_aeonsteelBlock, "aeonsteelblock"); - GameRegistry.registerBlock(block_queensgoldBlock, "queensgoldblock"); - GameRegistry.registerBlock(block_dogbeariumBlock, "dogbeariumblock"); - GameRegistry.registerBlock(block_redmintBlock, "redmintblock"); - GameRegistry.registerBlock(block_greenmintBlock, "greenmintblock"); - - //Items - //GameRegistry.registerItem(item_Guidebook, "guidebook"); - - GameRegistry.registerItem(item_aeonsteelIngot, "aeonsteelingot"); - GameRegistry.registerItem(item_queensgoldIngot, "queensgoldingot"); - GameRegistry.registerItem(item_dogbeariumIngot, "dogbeariumingot"); - - GameRegistry.registerItem(item_redmintcane, "redmintcane"); - GameRegistry.registerItem(item_redmintIngot, "redmintingot"); - GameRegistry.registerItem(item_greenmintcane, "greenmintcane"); - GameRegistry.registerItem(item_greenmintIngot, "greenmintingot"); - - //Tools - GameRegistry.registerItem(tool_roundShield, "Round Shield"); - GameRegistry.registerItem(tool_heaterShield, "Heater Shield"); - - GameRegistry.registerItem(tool_shears, "Tinker Shears"); - GameRegistry.registerItem(tool_wrench, "Tinker Wrench"); - GameRegistry.registerItem(tool_zweihander, "Zweihander"); - //GameRegistry.registerItem(tool_hookshot, "Hookshot"); - - //Patterns - GameRegistry.registerItem(woodPattern, "Pattern"); - GameRegistry.registerItem(metalPattern, "Cast"); - - //TileEntities - GameRegistry.registerTileEntity(TileEntity_CrestMount.class, "tile_crestmount"); - GameRegistry.registerTileEntity(TileEntity_FinishingAnvil.class, "tile_armoranvil"); - GameRegistry.registerTileEntity(TileEntity_JewelersBench.class, "tile_jewelersbench"); - - //Fluids - FluidRegistry.registerFluid(moltenaeonsteel); - FluidRegistry.registerFluid(moltenqueensgold); - FluidRegistry.registerFluid(moltendogbearium); - FluidRegistry.registerFluid(moltenredmint); - FluidRegistry.registerFluid(moltengreenmint); - - //FluidBlocks - moltenaeonsteelBlock = new MoltenFluid(moltenaeonsteel, "aeonsteel"); - moltenqueensgoldBlock = new MoltenFluid(moltenqueensgold, "queensgold"); - moltendogbeariumBlock = new MoltenFluid(moltendogbearium, "dogbearium"); - moltenredmintBlock = new MoltenFluid(moltenredmint, "redmint"); - moltengreenmintBlock = new MoltenFluid(moltengreenmint, "greenmint"); - - GameRegistry.registerBlock(moltenaeonsteelBlock, "moltenaeonsteel"); - GameRegistry.registerBlock(moltenqueensgoldBlock, "moltenqueensgold"); - GameRegistry.registerBlock(moltendogbeariumBlock, "moltendogbearium"); - GameRegistry.registerBlock(moltenredmintBlock, "moltenredmint"); - GameRegistry.registerBlock(moltengreenmintBlock, "moltengreenmint"); - - //Recipes - GameRegistry.addShapedRecipe(new ItemStack(block_CrestMount), new Object[] {"xxx", "-i-", "---", 'x', new ItemStack( - TinkerTools.toughRod, 1, 1), 'i', new ItemStack( - TinkerTools.toolRod, 1, 1)}); - GameRegistry.addShapedRecipe(new ItemStack(block_ArmorAnvil), new Object[] {"ai-", "lr-", "---", 'r', new ItemStack( - TinkerTools.toughRod, 1, 0), 'a', Blocks.anvil, 'i', Items.iron_ingot, 'l', Blocks.log}); - GameRegistry.addShapedRecipe(new ItemStack(block_aeonsteelBlock), new Object[] {"xxx", "xxx", "xxx", 'x', item_aeonsteelIngot}); - GameRegistry.addShapelessRecipe(new ItemStack(item_aeonsteelIngot, 9), new Object[] {new ItemStack( - block_aeonsteelBlock)}); - GameRegistry.addShapedRecipe(new ItemStack(block_queensgoldBlock), new Object[] {"xxx", "xxx", "xxx", 'x', item_queensgoldIngot}); - GameRegistry.addShapelessRecipe(new ItemStack(item_queensgoldIngot, 9), new Object[] {new ItemStack( - block_queensgoldBlock)}); - GameRegistry.addShapedRecipe(new ItemStack(block_dogbeariumBlock), new Object[] {"xxx", "xxx", "xxx", 'x', item_dogbeariumIngot}); - GameRegistry.addShapelessRecipe(new ItemStack(item_dogbeariumIngot, 9), new Object[] {new ItemStack( - block_dogbeariumBlock)}); - GameRegistry.addShapedRecipe(new ItemStack(block_redmintBlock), new Object[] {"xxx", "xxx", "xxx", 'x', new ItemStack( - item_redmintcane, 1, 2)}); - GameRegistry.addShapelessRecipe(new ItemStack(item_redmintcane, 9, 2), new Object[] {new ItemStack( - block_redmintBlock)}); - GameRegistry.addShapedRecipe(new ItemStack(block_greenmintBlock), new Object[] {"xxx", "xxx", "xxx", 'x', new ItemStack( - item_greenmintcane, 1, 3)}); - GameRegistry.addShapelessRecipe(new ItemStack(item_greenmintcane, 9, 3), new Object[] {new ItemStack( - block_greenmintBlock)}); - - //TinkersConstruct Registrations - //Tools - TConstructRegistry.addItemToDirectory("Round Shield", tool_roundShield); - TConstructRegistry.addItemToDirectory("Heater Shield", tool_heaterShield); - - TConstructRegistry.addItemToDirectory("Tinker Shears", tool_shears); - TConstructRegistry.addItemToDirectory("Tinker Wrench", tool_wrench); - TConstructRegistry.addItemToDirectory("Zweihander", tool_zweihander); - //TConstructRegistry.addItemToDirectory("Hookshot", tool_hookshot); - - //Patterns - TConstructRegistry.addItemStackToDirectory("rivets Pattern", new ItemStack( - woodPattern, 1, 0)); - TConstructRegistry.addItemStackToDirectory("clasp Pattern", new ItemStack( - woodPattern, 1, 1)); - TConstructRegistry.addItemStackToDirectory("armorplate Pattern", new ItemStack( - woodPattern, 1, 2)); - - //Entities - // EntityRegistry.registerModEntity(EntityHookshotHook.class, "EntityHookshotHook", 0, this, 64, 10, true); - - if(config.ArmorAddon) - { - ArmorAddon.preInit(e); - } - - TDIntegration.Integrate(); - mods.preInit(); - proxy.registerRenderers(); + // mods = new Modifiers(); + + // Blocks + // block_CrestMount = new + // CrestMount().setHardness(4.0F).setStepSound(Block.soundTypeStone).setBlockName("crestmount").setCreativeTab(tabName); + // block_ArmorAnvil = new + // FinishingAnvil().setHardness(4.0F).setStepSound(Block.soundTypeAnvil).setBlockName("armoranvil").setCreativeTab(tabName); + // block_JewelersBench = new + // JewelersBench().setHardness(4.0F).setStepSound(Block.soundTypeWood).setBlockName("jewelersbench").setCreativeTab(tabName); + // + // block_aeonsteelBlock = new + // AeonSteelBlock(Material.iron).setHardness(4.0F).setStepSound(Block.soundTypeMetal).setBlockName("aeonsteelblock").setCreativeTab(tabName).setBlockTextureName(Reference.MOD_ID + // + ":aeonsteelblock"); + // block_queensgoldBlock = new + // QueensGoldBlock(Material.iron).setHardness(4.0F).setStepSound(Block.soundTypeMetal).setBlockName("queensgoldblock").setCreativeTab(tabName).setBlockTextureName(Reference.MOD_ID + // + ":queensgoldblock"); + // block_dogbeariumBlock = new + // DogbeariumBlock(Material.iron).setHardness(4.0F).setStepSound(Block.soundTypeMetal).setBlockName("dogbeariumblock").setCreativeTab(tabName).setBlockTextureName(Reference.MOD_ID + // + ":dogbeariumblock"); + // block_redmintBlock = new + // RedMintBlock(Material.iron).setHardness(4.0F).setStepSound(Block.soundTypeMetal).setBlockName("redmintblock").setCreativeTab(tabName).setBlockTextureName(Reference.MOD_ID + // + ":redmintblock"); + // block_greenmintBlock = new + // GreenMintBlock(Material.iron).setHardness(4.0F).setStepSound(Block.soundTypeMetal).setBlockName("greenmintblock").setCreativeTab(tabName).setBlockTextureName(Reference.MOD_ID + // + ":greenmintblock"); + + // Items + // item_Guidebook = new GuideBook(); + + // Fluids + // moltenaeonsteel = new + // Fluid("moltenaeonsteel").setLuminosity(15).setDensity(3000).setViscosity(6000).setTemperature(1300); + // moltenqueensgold = new + // Fluid("moltenqueensgold").setLuminosity(15).setDensity(3000).setViscosity(6000).setTemperature(1300); + // moltendogbearium = new + // Fluid("moltendogbearium").setLuminosity(15).setDensity(3000).setViscosity(6000).setTemperature(1300); + // moltenredmint = new + // Fluid("moltenredmint").setLuminosity(15).setDensity(3000).setViscosity(6000).setTemperature(1300); + // moltengreenmint = new + // Fluid("moltengreenmint").setLuminosity(15).setDensity(3000).setViscosity(6000).setTemperature(1300); + + // Tools + // tool_roundShield = new RoundShield(); + // tool_heaterShield = new HeaterShield(); + // tool_shears = new Shears(); + // tool_wrench = new TinkerWrench(); + // tool_zweihander = new TinkerZweihander(0); + // tool_hookshot = new TinkersHookshot(); + + // Patterns + // woodPattern = new TD_Patterns("pattern_", "Pattern"); + // metalPattern = new TD_Patterns("cast_", "MetalPattern"); + + // Minecraft Registrations + // Blocks + // GameRegistry.registerBlock(block_CrestMount, "block_crestmount"); + // GameRegistry.registerBlock(block_ArmorAnvil, "block_armoranvil"); + // GameRegistry.registerBlock(block_JewelersBench, + // "block_jewelersbench"); + // GameRegistry.registerBlock(block_aeonsteelBlock, "aeonsteelblock"); + // GameRegistry.registerBlock(block_queensgoldBlock, "queensgoldblock"); + // GameRegistry.registerBlock(block_dogbeariumBlock, "dogbeariumblock"); + // GameRegistry.registerBlock(block_redmintBlock, "redmintblock"); + // GameRegistry.registerBlock(block_greenmintBlock, "greenmintblock"); + + // Items + // GameRegistry.registerItem(item_Guidebook, "guidebook"); + + // GameRegistry.registerItem(item_aeonsteelIngot, "aeonsteelingot"); + // GameRegistry.registerItem(item_queensgoldIngot, "queensgoldingot"); + // GameRegistry.registerItem(item_dogbeariumIngot, "dogbeariumingot"); + // + // GameRegistry.registerItem(item_redmintcane, "redmintcane"); + // GameRegistry.registerItem(item_redmintIngot, "redmintingot"); + // GameRegistry.registerItem(item_greenmintcane, "greenmintcane"); + // GameRegistry.registerItem(item_greenmintIngot, "greenmintingot"); + + // Tools + // GameRegistry.registerItem(tool_roundShield, "Round Shield"); + // GameRegistry.registerItem(tool_heaterShield, "Heater Shield"); + // + // GameRegistry.registerItem(tool_shears, "Tinker Shears"); + // GameRegistry.registerItem(tool_wrench, "Tinker Wrench"); + // GameRegistry.registerItem(tool_zweihander, "Zweihander"); + // //GameRegistry.registerItem(tool_hookshot, "Hookshot"); + + // Patterns + // GameRegistry.registerItem(woodPattern, "Pattern"); + // GameRegistry.registerItem(metalPattern, "Cast"); + + // TileEntities + // GameRegistry.registerTileEntity(TileEntity_CrestMount.class, + // "tile_crestmount"); + // GameRegistry.registerTileEntity(TileEntity_FinishingAnvil.class, + // "tile_armoranvil"); + // GameRegistry.registerTileEntity(TileEntity_JewelersBench.class, + // "tile_jewelersbench"); + + // Fluids + // FluidRegistry.registerFluid(moltenaeonsteel); + // FluidRegistry.registerFluid(moltenqueensgold); + // FluidRegistry.registerFluid(moltendogbearium); + // FluidRegistry.registerFluid(moltenredmint); + // FluidRegistry.registerFluid(moltengreenmint); + + // FluidBlocks + // moltenaeonsteelBlock = new MoltenFluid(moltenaeonsteel, "aeonsteel"); + // moltenqueensgoldBlock = new MoltenFluid(moltenqueensgold, + // "queensgold"); + // moltendogbeariumBlock = new MoltenFluid(moltendogbearium, + // "dogbearium"); + // moltenredmintBlock = new MoltenFluid(moltenredmint, "redmint"); + // moltengreenmintBlock = new MoltenFluid(moltengreenmint, "greenmint"); + + // GameRegistry.registerBlock(moltenaeonsteelBlock, "moltenaeonsteel"); + // GameRegistry.registerBlock(moltenqueensgoldBlock, + // "moltenqueensgold"); + // GameRegistry.registerBlock(moltendogbeariumBlock, + // "moltendogbearium"); + // GameRegistry.registerBlock(moltenredmintBlock, "moltenredmint"); + // GameRegistry.registerBlock(moltengreenmintBlock, "moltengreenmint"); + + // Recipes + // GameRegistry.addShapedRecipe(new ItemStack(block_CrestMount), new + // Object[] {"xxx", "-i-", "---", 'x', new ItemStack( + // TinkerTools.toughRod, 1, 1), 'i', new ItemStack( + // TinkerTools.toolRod, 1, 1)}); + // GameRegistry.addShapedRecipe(new ItemStack(block_ArmorAnvil), new + // Object[] {"ai-", "lr-", "---", 'r', new ItemStack( + // TinkerTools.toughRod, 1, 0), 'a', Blocks.anvil, 'i', + // Items.iron_ingot, 'l', Blocks.log}); + // GameRegistry.addShapedRecipe(new ItemStack(block_aeonsteelBlock), new + // Object[] {"xxx", "xxx", "xxx", 'x', item_aeonsteelIngot}); + // GameRegistry.addShapelessRecipe(new ItemStack(item_aeonsteelIngot, + // 9), new Object[] {new ItemStack( + // block_aeonsteelBlock)}); + // GameRegistry.addShapedRecipe(new ItemStack(block_queensgoldBlock), + // new Object[] {"xxx", "xxx", "xxx", 'x', item_queensgoldIngot}); + // GameRegistry.addShapelessRecipe(new ItemStack(item_queensgoldIngot, + // 9), new Object[] {new ItemStack( + // block_queensgoldBlock)}); + // GameRegistry.addShapedRecipe(new ItemStack(block_dogbeariumBlock), + // new Object[] {"xxx", "xxx", "xxx", 'x', item_dogbeariumIngot}); + // GameRegistry.addShapelessRecipe(new ItemStack(item_dogbeariumIngot, + // 9), new Object[] {new ItemStack( + // block_dogbeariumBlock)}); + // GameRegistry.addShapedRecipe(new ItemStack(block_redmintBlock), new + // Object[] {"xxx", "xxx", "xxx", 'x', new ItemStack( + // item_redmintcane, 1, 2)}); + // GameRegistry.addShapelessRecipe(new ItemStack(item_redmintcane, 9, + // 2), new Object[] {new ItemStack( + // block_redmintBlock)}); + // GameRegistry.addShapedRecipe(new ItemStack(block_greenmintBlock), new + // Object[] {"xxx", "xxx", "xxx", 'x', new ItemStack( + // item_greenmintcane, 1, 3)}); + // GameRegistry.addShapelessRecipe(new ItemStack(item_greenmintcane, 9, + // 3), new Object[] {new ItemStack( + // block_greenmintBlock)}); + + // TinkersConstruct Registrations + // Tools + // TConstructRegistry.addItemToDirectory("Round Shield", + // tool_roundShield); + // TConstructRegistry.addItemToDirectory("Heater Shield", + // tool_heaterShield); + // + // TConstructRegistry.addItemToDirectory("Tinker Shears", tool_shears); + // TConstructRegistry.addItemToDirectory("Tinker Wrench", tool_wrench); + // TConstructRegistry.addItemToDirectory("Zweihander", tool_zweihander); + // TConstructRegistry.addItemToDirectory("Hookshot", tool_hookshot); + + // Patterns + // TConstructRegistry.addItemStackToDirectory("rivets Pattern", new + // ItemStack( + // woodPattern, 1, 0)); + // TConstructRegistry.addItemStackToDirectory("clasp Pattern", new + // ItemStack( + // woodPattern, 1, 1)); + // TConstructRegistry.addItemStackToDirectory("armorplate Pattern", new + // ItemStack( + // woodPattern, 1, 2)); + // + // //Entities + // // EntityRegistry.registerModEntity(EntityHookshotHook.class, + // "EntityHookshotHook", 0, this, 64, 10, true); + // + // if(config.ArmorAddon) + // { + // ArmorAddon.preInit(e); + // } + // + // TDIntegration.Integrate(); + // mods.preInit(); + // proxy.registerRenderers(); + + core.preInit(); + holiday.preInit(); + tools.preInit(e); + proxy.preInit(); } @EventHandler - public void init(FMLInitializationEvent e) - { - //I reject your moss and substitute my own! - if(config.mossEnabled || config.mossHard) - { - final List<IRecipe> recipes = CraftingManager.getInstance().getRecipeList(); - final Iterator<IRecipe> recipe = recipes.iterator(); - - while(recipe.hasNext()) - { - final ItemStack next = recipe.next().getRecipeOutput(); - if(next != null) - { - if(next.getItem() == TConstructRegistry.getItemStack("mossBall").getItem() && next.getItemDamage() == TConstructRegistry.getItemStack("mossBall").getItemDamage()) - { - recipe.remove(); - } - } - } - - if(config.mossHard) - { - GameRegistry.addShapedRecipe(TConstructRegistry.getItemStack("mossBall"), new Object[] {"hmh", "msm", "hmh", 'h', new ItemStack( - TinkerArmor.heartCanister, 1, 3), 'm', new ItemStack( - Blocks.mossy_cobblestone, 1, 0), 's', new ItemStack( - Items.nether_star, 1, 0)}); - } - } + public void init(FMLInitializationEvent e) { - final int[] stencils = new int[5]; - for(int i = 0; i < 5; i++) - { - stencils[i] = StencilBuilder.getStencilCount() + i; - } - - StencilBuilder.registerStencil(stencils[0], woodPattern, 0); // rivets - StencilBuilder.registerStencil(stencils[1], woodPattern, 1); // clasp - StencilBuilder.registerStencil(stencils[2], woodPattern, 2); // armorplate - StencilBuilder.registerStencil(stencils[3], woodPattern, 3); // cloth - StencilBuilder.registerStencil(stencils[4], woodPattern, 4); // chainmaille - - PatternBuilder.instance.addToolPattern(woodPattern); - - partRivet = new DynamicToolPart("_rivets", "Rivets"); - partClasp = new DynamicToolPart("_clasp", "Clasp"); - partArmorplate = new DynamicToolPart("_armorplate", "Armor Plate"); - partCloth = new Cloth().setUnlocalizedName("TD.Cloth"); - partChainmaille = new DynamicToolPart("_chainmaille", "Chainmaille"); - - GameRegistry.registerItem(partRivet, "RivetPart"); - GameRegistry.registerItem(partClasp, "ClaspPart"); - GameRegistry.registerItem(partArmorplate, "ArmorPlatePart"); - GameRegistry.registerItem(partCloth, "clothPart"); - GameRegistry.registerItem(partChainmaille, "chainmaillePart"); - - buildParts(partRivet, 0); - buildParts(partClasp, 1); - buildParts(partArmorplate, 2); - //buildParts(partCloth, 3); - buildParts(partChainmaille, 4); - - TConstructClientRegistry.stencilButtons2.add(new StencilGuiElement(0, - 0, stencils[0], - "tinkersdefense", "textures/gui/icons.png")); - TConstructClientRegistry.stencilButtons2.add(new StencilGuiElement(0, - 0, stencils[1], - "tinkersdefense", "textures/gui/icons.png")); - TConstructClientRegistry.stencilButtons2.add(new StencilGuiElement(0, - 0, stencils[2], - "tinkersdefense", "textures/gui/icons.png")); - TConstructClientRegistry.stencilButtons2.add(new StencilGuiElement(0, - 0, stencils[3], - "tinkersdefense", "textures/gui/icons.png")); - TConstructClientRegistry.stencilButtons2.add(new StencilGuiElement(0, - 0, stencils[4], - "tinkersdefense", "textures/gui/icons.png")); - - final PatternBuilder pb = PatternBuilder.instance; - - //Shields - TConstructClientRegistry.toolButtons.add(new ToolGuiElement( - 0, - 0, - 6, - new int[] {0, 0, 4, 0}, - new int[] {7, 3, 2, 0}, - StatCollector.translateToLocal("gui.toolstation.roundshield.name"), - StatCollector.translateToLocal("gui.toolstation.roundshield.desc"), - "tinkersdefense", "textures/gui/icons.png")); - - TConstructClientRegistry.tierTwoButtons.add(new ToolGuiElement( - 5, - 1, - 6, - new int[] {0, 8, 0, 2}, - new int[] {7, 3, 7, 7}, - StatCollector.translateToLocal("gui.toolstation.heatershield.name"), - StatCollector.translateToLocal("gui.toolstation.heatershield.desc"), - "tinkersdefense:", "textures/gui/icons.png")); - - //Cloth - //Hood - TConstructClientRegistry.toolButtons.add(new ToolGuiElement(0, 2, 6, - new int[] {4, 0, 4, 0}, new int[] {7, 3, 7, 0}, - StatCollector.translateToLocal("gui.toolstation.hood.name"), - StatCollector.translateToLocal("gui.toolstation.hood.desc"), - "tinkersdefense", "textures/gui/icons.png")); - //Shawl - TConstructClientRegistry.toolButtons.add(new ToolGuiElement(0, 3, 6, - new int[] {4, 0, 4, 0}, new int[] {7, 7, 7, 0}, - StatCollector.translateToLocal("gui.toolstation.shawl.name"), - StatCollector.translateToLocal("gui.toolstation.shawl.desc"), - "tinkersdefense", "textures/gui/icons.png")); - //Robe - TConstructClientRegistry.toolButtons.add(new ToolGuiElement(0, 4, 6, - new int[] {4, 3, 4, 0}, new int[] {7, 7, 7, 0}, - StatCollector.translateToLocal("gui.toolstation.robe.name"), - StatCollector.translateToLocal("gui.toolstation.robe.desc"), - "tinkersdefense", "textures/gui/icons.png")); - //Shoes - TConstructClientRegistry.toolButtons.add(new ToolGuiElement(0, 5, 6, - new int[] {4, 2, 4, 0}, new int[] {7, 7, 7, 0}, - StatCollector.translateToLocal("gui.toolstation.shoes.name"), - StatCollector.translateToLocal("gui.toolstation.shoes.desc"), - "tinkersdefense", "textures/gui/icons.png")); - - //Chain - //Coif - TConstructClientRegistry.toolButtons.add(new ToolGuiElement(0, 6, 6, - new int[] {1, 8, 4, 0}, new int[] {7, 3, 7, 0}, - StatCollector.translateToLocal("gui.toolstation.coif.name"), - StatCollector.translateToLocal("gui.toolstation.coif.desc"), - "tinkersdefense", "textures/gui/icons.png")); - //Hauberk - TConstructClientRegistry.toolButtons.add(new ToolGuiElement(0, 7, 6, - new int[] {1, 9, 4, 0}, new int[] {7, 2, 7, 0}, - StatCollector.translateToLocal("gui.toolstation.hauberk.name"), - StatCollector.translateToLocal("gui.toolstation.hauberk.desc"), - "tinkersdefense", "textures/gui/icons.png")); - //Chausses - TConstructClientRegistry.toolButtons.add(new ToolGuiElement( - 0, - 8, - 6, - new int[] {1, 0, 4, 0}, - new int[] {7, 7, 7, 0}, - StatCollector.translateToLocal("gui.toolstation.chausses.name"), - StatCollector.translateToLocal("gui.toolstation.chausses.desc"), - "tinkersdefense", "textures/gui/icons.png")); - //Boots - TConstructClientRegistry.toolButtons.add(new ToolGuiElement(0, 9, 6, - new int[] {1, 4, 2, 0}, new int[] {7, 7, 7, 0}, - StatCollector.translateToLocal("gui.toolstation.boots.name"), - StatCollector.translateToLocal("gui.toolstation.boots.desc"), - "tinkersdefense", "textures/gui/icons.png")); - - //Plate - //Helm - TConstructClientRegistry.tierTwoButtons.add(new ToolGuiElement(0, 10, - 6, - new int[] {4, 8, 0, 1}, new int[] {2, 3, 7, 7}, - StatCollector.translateToLocal("gui.toolstation.helm.name"), - StatCollector.translateToLocal("gui.toolstation.helm.desc"), - "tinkersdefense", "textures/gui/icons.png")); - //Breastplate - TConstructClientRegistry.tierTwoButtons.add(new ToolGuiElement( - 0, - 11, - 6, - new int[] {9, 8, 0, 1}, - new int[] {2, 3, 7, 7}, - StatCollector.translateToLocal("gui.toolstation.breastplate.name"), - StatCollector.translateToLocal("gui.toolstation.breastplate.desc"), - "tinkersdefense", "textures/gui/icons.png")); - //Grieves - TConstructClientRegistry.tierTwoButtons.add(new ToolGuiElement( - 0, - 12, - 6, - new int[] {0, 8, 1, 4}, - new int[] {7, 3, 7, 7}, - StatCollector.translateToLocal("gui.toolstation.chausses.name"), - StatCollector.translateToLocal("gui.toolstation.chausses.desc"), - "tinkersdefense", "textures/gui/icons.png")); - //Sabatons - TConstructClientRegistry.tierTwoButtons.add(new ToolGuiElement( - 0, - 13, - 6, - new int[] {0, 8, 0, 4}, - new int[] {7, 3, 7, 7}, - StatCollector.translateToLocal("gui.toolstation.sabatons.name"), - StatCollector.translateToLocal("gui.toolstation.sabatons.desc"), - "tinkersdefense", "textures/gui/icons.png")); - - //Gauntlets - TConstructClientRegistry.toolButtons.add(new ToolGuiElement( - 0, - 0, - 8, - new int[] {0, 8, 2, 0}, - new int[] {7, 3, 7, 0}, - StatCollector.translateToLocal("gui.toolstation.gauntlets.name"), - StatCollector.translateToLocal("gui.toolstation.gauntlets.desc"), - "tinkersdefense", "textures/gui/icons.png")); - - //Zweihander - TConstructClientRegistry.tierTwoButtons.add(new ToolGuiElement( - 0, - 3, - 8, - new int[] {6, 8, 2, 1}, - new int[] {3, 3, 3, 2}, - StatCollector.translateToLocal("gui.toolstation.zweihander.name"), - StatCollector.translateToLocal("gui.toolstation.zweihander.desc"), - "tinkersdefense", "textures/gui/icons.png")); - - //Wrench - TConstructClientRegistry.toolButtons.add(new ToolGuiElement(0, 1, 8, - new int[] {3, 0, 1, 0}, - new int[] {3, 3, 3, 0}, - StatCollector.translateToLocal("gui.toolstation.wrench.name"), - StatCollector.translateToLocal("gui.toolstation.wrench.desc"), - "tinkersdefense", "textures/gui/icons.png")); - - //Shears - TConstructClientRegistry.toolButtons.add(new ToolGuiElement(0, 2, 8, - new int[] {7, 1, 7, 0}, - new int[] {2, 3, 2, 0}, - StatCollector.translateToLocal("gui.toolstation.shears.name"), - StatCollector.translateToLocal("gui.toolstation.shears.desc"), - "tinkersdefense", "textures/gui/icons.png")); - - // aeonsteel - pb.registerMaterialSet("aeonsteel", new ItemStack( - TinkerTools.toolShard, 1, 10), new ItemStack( - TinkerTools.toolRod, 1, 10), config.AeonsteelMatID); - - TConstructClientRegistry.addMaterialRenderMapping(config.AeonsteelMatID, "tinker", "aeonsteel", true); - - // Tool Materials: id, name, harvestlevel, durability, speed, damage, - // handlemodifier, reinforced, shoddy, style color, primary color for - // block use - TConstructRegistry.addToolMaterial(config.AeonsteelMatID, "aeonsteel", 4, 822, 1100, 3, 1.6F, 2, 0f, LIGHT_PURPLE.toString(), 0xb565e6); - TinkerTools.registerPatternMaterial("aeonsteelIngot", 2, "aeonsteel"); - TConstructRegistry.addDefaultToolPartMaterial(config.AeonsteelMatID); - - Smeltery.addMelting(new ItemStack(item_aeonsteelIngot, 1, 0), block_aeonsteelBlock, 0, 500, new FluidStack( - moltenaeonsteel, TConstruct.ingotLiquidValue)); - Smeltery.addMelting(block_aeonsteelBlock, 0, 500, new FluidStack( - moltenaeonsteel, TConstruct.ingotLiquidValue * 9)); - - TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( - item_aeonsteelIngot, 1, 0), new FluidStack(moltenaeonsteel, - TConstruct.ingotLiquidValue), TConstructRegistry.getItemStack("ingotCast"), false, 50); - - TConstructRegistry.getBasinCasting().addCastingRecipe(new ItemStack( - block_aeonsteelBlock, 1, 0), new FluidStack(moltenaeonsteel, - TConstruct.ingotLiquidValue * 9), 100); - - castmolten(moltenaeonsteel, config.AeonsteelMatID); - - PatternBuilder.instance.registerFullMaterial(new ItemStack( - item_aeonsteelIngot, 1, 0), 2, "aeonsteel", new ItemStack( - TinkerTools.toolShard, 1, config.AeonsteelMatID), new ItemStack( - TinkerTools.toolRod, 1, config.AeonsteelMatID), config.AeonsteelMatID); - - Smeltery.addAlloyMixing(new FluidStack(moltenaeonsteel, 144), new FluidStack[] {new FluidStack( - TinkerSmeltery.moltenAlumiteFluid, 144), new FluidStack( - TinkerSmeltery.moltenCobaltFluid, 144)}); - - // Queen's Gold - pb.registerMaterialSet("queensgold", new ItemStack( - TinkerTools.toolShard, 1, 10), new ItemStack( - TinkerTools.toolRod, 1, 10), config.QueensGoldMatID); - - TConstructClientRegistry.addMaterialRenderMapping(config.QueensGoldMatID, "tinker", "queensgold", true); - TConstructRegistry.addToolMaterial(config.QueensGoldMatID, "queensgold", 3, 100, 500, 2, 1.0F, 0, 0f, GOLD.toString(), 0xeaee57); - TinkerTools.registerPatternMaterial("queensgoldIngot", 2, "queensgold"); - TConstructRegistry.addDefaultToolPartMaterial(config.QueensGoldMatID); - - Smeltery.addMelting(new ItemStack(item_queensgoldIngot, 1, 0), block_queensgoldBlock, 0, 500, new FluidStack( - moltenqueensgold, TConstruct.ingotLiquidValue)); - Smeltery.addMelting(block_queensgoldBlock, 0, 500, new FluidStack( - moltenqueensgold, TConstruct.ingotLiquidValue * 9)); - - TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( - item_queensgoldIngot, 1, 0), new FluidStack(moltenqueensgold, - TConstruct.ingotLiquidValue), TConstructRegistry.getItemStack("ingotCast"), false, 50); - - TConstructRegistry.getBasinCasting().addCastingRecipe(new ItemStack( - block_queensgoldBlock, 1, 0), new FluidStack(moltenqueensgold, - TConstruct.ingotLiquidValue * 9), 100); - - castmolten(moltenqueensgold, config.QueensGoldMatID); - - PatternBuilder.instance.registerFullMaterial(new ItemStack( - item_queensgoldIngot, 1, 0), 2, "queensgold", new ItemStack( - TinkerTools.toolShard, 1, config.QueensGoldMatID), new ItemStack( - TinkerTools.toolRod, 1, config.QueensGoldMatID), config.QueensGoldMatID); - - Smeltery.addAlloyMixing(new FluidStack(moltenqueensgold, 144 * 8), new FluidStack[] {new FluidStack( - TinkerSmeltery.moltenGoldFluid, 144 * 8), new FluidStack( - TinkerSmeltery.moltenEmeraldFluid, 80)}); - - // dogbearium - pb.registerMaterialSet("dogbearium", new ItemStack( - TinkerTools.toolShard, 1, 10), new ItemStack( - TinkerTools.toolRod, 1, 10), config.DogbeariumMatID); - - TConstructClientRegistry.addMaterialRenderMapping(config.DogbeariumMatID, "tinker", "dogbearium", true); - TConstructRegistry.addToolMaterial(config.DogbeariumMatID, "dogbearium", 4, 600, 800, 2, 1.6F, 0, -2f, DARK_RED.toString(), 0x754200); - TinkerTools.registerPatternMaterial("dogbeariumIngot", 2, "dogbearium"); - TConstructRegistry.addDefaultToolPartMaterial(config.DogbeariumMatID); - - Smeltery.addMelting(new ItemStack(item_dogbeariumIngot, 1, 0), block_dogbeariumBlock, 0, 500, new FluidStack( - moltendogbearium, TConstruct.ingotLiquidValue)); - Smeltery.addMelting(block_dogbeariumBlock, 0, 500, new FluidStack( - moltendogbearium, TConstruct.ingotLiquidValue * 9)); - - TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( - item_dogbeariumIngot, 1, 0), new FluidStack(moltendogbearium, - TConstruct.ingotLiquidValue), TConstructRegistry.getItemStack("ingotCast"), false, 50); - - TConstructRegistry.getBasinCasting().addCastingRecipe(new ItemStack( - block_dogbeariumBlock, 1, 0), new FluidStack(moltendogbearium, - TConstruct.ingotLiquidValue * 9), 100); - - castmolten(moltendogbearium, config.DogbeariumMatID); - - PatternBuilder.instance.registerFullMaterial(new ItemStack( - item_dogbeariumIngot, 1, 0), 2, "dogbearium", new ItemStack( - TinkerTools.toolShard, 1, config.DogbeariumMatID), new ItemStack( - TinkerTools.toolRod, 1, config.DogbeariumMatID), config.DogbeariumMatID); - - Smeltery.addAlloyMixing(new FluidStack(moltendogbearium, 144 * 2), new FluidStack[] {new FluidStack( - TinkerSmeltery.moltenArditeFluid, 144), new FluidStack( - TinkerSmeltery.bloodFluid, 160), new FluidStack( - TinkerSmeltery.moltenEnderFluid, 250)}); - - //Red Mint - pb.registerMaterialSet("redmint", new ItemStack(TinkerTools.toolShard, - 1, 10), new ItemStack(TinkerTools.toolRod, 1, 10), config.RedMintMatID); - - TConstructClientRegistry.addMaterialRenderMapping(config.RedMintMatID, "tinker", "redmint", true); - TConstructRegistry.addToolMaterial(config.RedMintMatID, "redmint", 1, 50, 10, 0, 0F, 0, 0f, DARK_RED.toString(), 0xFF0000); - TinkerTools.registerPatternMaterial("redmintIngot", 2, "redmint"); - TConstructRegistry.addDefaultToolPartMaterial(config.RedMintMatID); - - Smeltery.addMelting(new ItemStack(item_redmintcane, 1, 0), block_redmintBlock, 0, 250, new FluidStack( - moltenredmint, TConstruct.chunkLiquidValue)); - Smeltery.addMelting(new ItemStack(item_redmintIngot, 1, 0), block_redmintBlock, 0, 500, new FluidStack( - moltenredmint, TConstruct.ingotLiquidValue)); - Smeltery.addMelting(block_redmintBlock, 0, 500, new FluidStack( - moltenredmint, TConstruct.ingotLiquidValue * 9)); - - TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( - item_redmintIngot, 1, 0), new FluidStack(moltenredmint, - TConstruct.ingotLiquidValue), TConstructRegistry.getItemStack("ingotCast"), false, 50); - - TConstructRegistry.getBasinCasting().addCastingRecipe(new ItemStack( - block_redmintBlock, 1, 0), new FluidStack(moltenredmint, - TConstruct.ingotLiquidValue * 9), 100); - - castmolten(moltenredmint, config.RedMintMatID); - - PatternBuilder.instance.registerFullMaterial(new ItemStack( - item_redmintcane, 1, 0), 2, "redmint", new ItemStack( - TinkerTools.toolShard, 1, config.RedMintMatID), new ItemStack( - TinkerTools.toolRod, 1, config.RedMintMatID), config.RedMintMatID); - - //Green Mint - pb.registerMaterialSet("greenmint", new ItemStack( - TinkerTools.toolShard, 1, 10), new ItemStack( - TinkerTools.toolRod, 1, 10), config.GreenMintMatID); - - TConstructClientRegistry.addMaterialRenderMapping(config.GreenMintMatID, "tinker", "greenmint", true); - TConstructRegistry.addToolMaterial(config.GreenMintMatID, "greenmint", 1, 50, 10, 0, 0F, 0, 0f, DARK_RED.toString(), 0x5bde4b); - TinkerTools.registerPatternMaterial("greenmintIngot", 2, "greenmint"); - TConstructRegistry.addDefaultToolPartMaterial(config.GreenMintMatID); - - Smeltery.addMelting(new ItemStack(item_greenmintcane, 1, 0), block_greenmintBlock, 0, 250, new FluidStack( - moltengreenmint, TConstruct.chunkLiquidValue)); - Smeltery.addMelting(new ItemStack(item_greenmintIngot, 1, 0), block_greenmintBlock, 0, 500, new FluidStack( - moltengreenmint, TConstruct.ingotLiquidValue)); - Smeltery.addMelting(block_greenmintBlock, 0, 500, new FluidStack( - moltengreenmint, TConstruct.ingotLiquidValue * 9)); - - TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( - item_greenmintIngot, 1, 0), new FluidStack(moltengreenmint, - TConstruct.ingotLiquidValue), TConstructRegistry.getItemStack("ingotCast"), false, 50); - - TConstructRegistry.getBasinCasting().addCastingRecipe(new ItemStack( - block_greenmintBlock, 1, 0), new FluidStack(moltengreenmint, - TConstruct.ingotLiquidValue * 9), 100); - - castmolten(moltengreenmint, config.GreenMintMatID); - - PatternBuilder.instance.registerFullMaterial(new ItemStack( - item_greenmintcane, 1, 0), 2, "greenmint", new ItemStack( - TinkerTools.toolShard, 1, config.GreenMintMatID), new ItemStack( - TinkerTools.toolRod, 1, config.GreenMintMatID), config.GreenMintMatID); - - //Cloth - TConstructRegistry.addCustomMaterial(new ClothMaterial(0, 2, - new ItemStack(Blocks.wool, 1, 0), new ItemStack( - TinkersDefense.partCloth, 1, 0), 0xffffff)); - TConstructRegistry.addCustomMaterial(new ClothMaterial(1, 2, - new ItemStack(Blocks.wool, 1, 1), new ItemStack( - TinkersDefense.partCloth, 1, 1), 0xe08c54)); - TConstructRegistry.addCustomMaterial(new ClothMaterial(2, 2, - new ItemStack(Blocks.wool, 1, 2), new ItemStack( - TinkersDefense.partCloth, 1, 2), 0xc16bc9)); - TConstructRegistry.addCustomMaterial(new ClothMaterial(3, 2, - new ItemStack(Blocks.wool, 1, 3), new ItemStack( - TinkersDefense.partCloth, 1, 3), 0x8ba4d6)); - TConstructRegistry.addCustomMaterial(new ClothMaterial(4, 2, - new ItemStack(Blocks.wool, 1, 4), new ItemStack( - TinkersDefense.partCloth, 1, 4), 0xcfc231)); - TConstructRegistry.addCustomMaterial(new ClothMaterial(5, 2, - new ItemStack(Blocks.wool, 1, 5), new ItemStack( - TinkersDefense.partCloth, 1, 5), 0x50c447)); - TConstructRegistry.addCustomMaterial(new ClothMaterial(6, 2, - new ItemStack(Blocks.wool, 1, 6), new ItemStack( - TinkersDefense.partCloth, 1, 6), 0xdea5b3)); - TConstructRegistry.addCustomMaterial(new ClothMaterial(7, 2, - new ItemStack(Blocks.wool, 1, 7), new ItemStack( - TinkersDefense.partCloth, 1, 7), 0x494949)); - TConstructRegistry.addCustomMaterial(new ClothMaterial(8, 2, - new ItemStack(Blocks.wool, 1, 8), new ItemStack( - TinkersDefense.partCloth, 1, 8), 0xb6baba)); - TConstructRegistry.addCustomMaterial(new ClothMaterial(9, 2, - new ItemStack(Blocks.wool, 1, 9), new ItemStack( - TinkersDefense.partCloth, 1, 9), 0x3782a1)); - TConstructRegistry.addCustomMaterial(new ClothMaterial(10, 2, - new ItemStack(Blocks.wool, 1, 10), new ItemStack( - TinkersDefense.partCloth, 1, 10), 0x9453c9)); - TConstructRegistry.addCustomMaterial(new ClothMaterial(11, 2, - new ItemStack(Blocks.wool, 1, 11), new ItemStack( - TinkersDefense.partCloth, 1, 11), 0x3543a6)); - TConstructRegistry.addCustomMaterial(new ClothMaterial(12, 2, - new ItemStack(Blocks.wool, 1, 12), new ItemStack( - TinkersDefense.partCloth, 1, 12), 0x5c3a24)); - TConstructRegistry.addCustomMaterial(new ClothMaterial(13, 2, - new ItemStack(Blocks.wool, 1, 13), new ItemStack( - TinkersDefense.partCloth, 1, 13), 0x3e5420)); - TConstructRegistry.addCustomMaterial(new ClothMaterial(14, 2, - new ItemStack(Blocks.wool, 1, 14), new ItemStack( - TinkersDefense.partCloth, 1, 14), 0xb03e38)); - TConstructRegistry.addCustomMaterial(new ClothMaterial(15, 2, - new ItemStack(Blocks.wool, 1, 15), new ItemStack( - TinkersDefense.partCloth, 1, 15), 0x242222)); - - // Shields - TConstructRegistry.addToolRecipe(tool_roundShield, partArmorplate, TinkerTools.toolRod, TinkerTools.frypanHead); - - TConstructRegistry.addToolRecipe(tool_heaterShield, partArmorplate, TinkerTools.toughRod, partArmorplate, partRivet); - - // Wrench - TConstructRegistry.addToolRecipe(tool_wrench, TinkerTools.handGuard, TinkerTools.toolRod, TinkerTools.binding); - - TConstructRegistry.addToolRecipe(tool_shears, TinkerTools.knifeBlade, TinkerTools.binding, TinkerTools.knifeBlade); - - //Zweihander - TConstructRegistry.addToolRecipe(tool_zweihander, TinkerTools.largeSwordBlade, TinkerTools.toughRod, TinkerTools.wideGuard, TinkerTools.swordBlade); - - //TConstructRegistry.addToolRecipe(tool_hookshot, TinkersDefense.partArmorplate, TinkerTools.toughRod, TinkersDefense.partChainmaille); - - tcInject = new Injector(0); - GameRegistry.registerItem(tcInject, "???"); - - // GameRegistry.addShapelessRecipe(new ItemStack(item_Guidebook), new ItemStack( - // Items.book), new ItemStack(partArmorplate, 1, -1)); - - mods.Init(); - - // for(int i = 0; i < TConstructRegistry.tools.size(); i++) - // { - // if(!(TConstructRegistry.tools.get(i) instanceof Injector)) - // { - // tcInject.add(new Injector(i, TConstructRegistry.tools.get(i), injectLoc)); - // GameRegistry.registerItem(tcInject.get(i), "debugger_" + TConstructRegistry.tools.get(i).getLocalizedToolName()); - // } - // } - - //AMEvent.init(); - - if(config.ArmorAddon) - { - ArmorAddon.init(e); + // I reject your moss and substitute my own! + if (config.mossEnabled || config.mossHard) { } + final List<IRecipe> recipes = CraftingManager.getInstance() + .getRecipeList(); + final Iterator<IRecipe> recipe = recipes.iterator(); + + core.init(); + holiday.init(); + mats.setupMaterials(e); + tools.init(e); + proxy.Init(); } @EventHandler - public void postInit(FMLPostInitializationEvent e) - { - - if(config.ArmorAddon) - { - ArmorAddon.postInit(e); - } + public void postInit(FMLPostInitializationEvent e) { + // + // if(config.ArmorAddon) + // { + // ArmorAddon.postInit(e); + // } + tools.postInit(e); } - public void castmolten(Fluid fluid, int ID) - { - // .addCastingRecipe(output, fluid, cast, hardeningDelay) - TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( - TinkerTools.toolRod, 1, ID), new FluidStack(fluid, - (int) (144 * 0.5D)), TConstructRegistry.getItemStack("toolRodCast"), 50); - TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( - TinkerTools.pickaxeHead, 1, ID), new FluidStack(fluid, - (int) (144 * 1.0D)), TConstructRegistry.getItemStack("pickaxeHeadCast"), 50); - TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( - TinkerTools.shovelHead, 1, ID), new FluidStack(fluid, - (int) (144 * 1.0D)), TConstructRegistry.getItemStack("shovelHeadCast"), 50); - TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( - TinkerTools.hatchetHead, 1, ID), new FluidStack(fluid, - (int) (144 * 1.0D)), TConstructRegistry.getItemStack("hatchetHeadCast"), 50); - TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( - TinkerTools.swordBlade, 1, ID), new FluidStack(fluid, - (int) (144 * 1.0D)), TConstructRegistry.getItemStack("swordBladeCast"), 50); - TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( - TinkerTools.fullGuard, 1, ID), new FluidStack(fluid, - (int) (144 * 3.0D)), TConstructRegistry.getItemStack("fullGuardCast"), 50); - TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( - TinkerTools.wideGuard, 1, ID), new FluidStack(fluid, - (int) (144 * 0.5D)), TConstructRegistry.getItemStack("wideGuardCast"), 50); - TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( - TinkerTools.crossbar, 1, ID), new FluidStack(fluid, - (int) (144 * 0.5D)), TConstructRegistry.getItemStack("crossbarCast"), 50); - TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( - TinkerTools.binding, 1, ID), new FluidStack(fluid, - (int) (144 * 0.5D)), TConstructRegistry.getItemStack("bindingCast"), 50); - TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( - TinkerTools.handGuard, 1, ID), new FluidStack(fluid, - (int) (144 * 0.5D)), TConstructRegistry.getItemStack("handGuardCast"), 50); - TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( - TinkerTools.frypanHead, 1, ID), new FluidStack(fluid, - (int) (144 * 1.0D)), TConstructRegistry.getItemStack("frypanHeadCast"), 50); - TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( - TinkerTools.signHead, 1, ID), new FluidStack(fluid, - (int) (144 * 1.0D)), TConstructRegistry.getItemStack("signHeadCast"), 50); - TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( - TinkerTools.knifeBlade, 1, ID), new FluidStack(fluid, - (int) (144 * 0.5D)), TConstructRegistry.getItemStack("knifeBladeCast"), 50); - TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( - TinkerTools.chiselHead, 1, ID), new FluidStack(fluid, - (int) (144 * 0.5D)), TConstructRegistry.getItemStack("chiselHeadCast"), 50); - TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( - TinkerTools.toughRod, 1, ID), new FluidStack(fluid, - (int) (144 * 3.0D)), TConstructRegistry.getItemStack("toughRodCast"), 50); - TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( - TinkerTools.toughBinding, 1, ID), new FluidStack(fluid, - (int) (144 * 3.0D)), TConstructRegistry.getItemStack("toughBindingCast"), 50); - TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( - TinkerTools.largePlate, 1, ID), new FluidStack(fluid, - (int) (144 * 8.0D)), TConstructRegistry.getItemStack("largePlateCast"), 50); - TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( - TinkerTools.broadAxeHead, 1, ID), new FluidStack(fluid, - (int) (144 * 8.0D)), TConstructRegistry.getItemStack("broadAxeHeadCast"), 50); - TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( - TinkerTools.scytheBlade, 1, ID), new FluidStack(fluid, - (int) (144 * 8.0D)), TConstructRegistry.getItemStack("scytheHeadCast"), 50); - TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( - TinkerTools.excavatorHead, 1, ID), new FluidStack(fluid, - (int) (144 * 8.0D)), TConstructRegistry.getItemStack("excavatorHeadCast"), 50); - TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( - TinkerTools.largeSwordBlade, 1, ID), new FluidStack(fluid, - (int) (144 * 8.0D)), TConstructRegistry.getItemStack("largeBladeCast"), 50); - TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( - TinkerTools.hammerHead, 1, ID), new FluidStack(fluid, - (int) (144 * 8.0D)), TConstructRegistry.getItemStack("hammerHeadCast"), 50); - TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( - TinkerTools.arrowhead, 1, ID), new FluidStack(fluid, - (int) (144 * 1.0D)), TConstructRegistry.getItemStack("arrowheadCast"), 50); - TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( - partArmorplate, 1, ID), new FluidStack(fluid, - (int) (144 * 4.0D)), new ItemStack(metalPattern, 1, 2), 50); - TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( - partRivet, 1, ID), new FluidStack(fluid, (int) (144 * 0.5D)), new ItemStack( - metalPattern, 1, 0), 50); - TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( - partClasp, 1, ID), new FluidStack(fluid, (int) (144 * 1.0D)), new ItemStack( - metalPattern, 1, 1), 50); - TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( - partChainmaille, 1, ID), new FluidStack(fluid, - (int) (144 * 4.0D)), new ItemStack(metalPattern, 1, 4), 50); - } - - public void buildParts(Item item, int meta) - { - final int[] nonMetals = {0, 1, 3, 4, 5, 6, 7, 8, 9, 17}; - final int[] liquidDamage = new int[] {2, 13, 10, 11, 12, 14, 15, 6, 16, 18}; - - for(int mat = 0; mat < nonMetals.length; mat++) // - { - TConstructRegistry.addPartMapping(woodPattern, meta, mat, new ItemStack( - item, 1, mat)); - } - - final LiquidCasting tableCasting = TConstructRegistry.getTableCasting(); - // patternOutputs = new Item[] { partShuriken, partCrossbowLimb, - // partCrossbowBody, partBowLimb }; - - final ItemStack cast = new ItemStack(metalPattern, 1, meta); - - tableCasting.addCastingRecipe(cast, new FluidStack( - TinkerSmeltery.moltenAlubrassFluid, TConstruct.ingotLiquidValue), new ItemStack( - item, 1, Short.MAX_VALUE), false, 50); - tableCasting.addCastingRecipe(cast, new FluidStack( - TinkerSmeltery.moltenGoldFluid, TConstruct.ingotLiquidValue * 2), new ItemStack( - item, 1, Short.MAX_VALUE), false, 50); - - for(int iterTwo = 0; iterTwo < TinkerSmeltery.liquids.length; iterTwo++) - { - final Fluid fs = TinkerSmeltery.liquids[iterTwo].getFluid(); - final int fluidAmount = metalPattern.getPatternCost(cast) * TConstruct.ingotLiquidValue / 2; - final ItemStack metalCast = new ItemStack(item, 1, - liquidDamage[iterTwo]); - tableCasting.addCastingRecipe(metalCast, new FluidStack(fs, - fluidAmount), cast, 50); - Smeltery.addMelting(FluidType.getFluidType(fs), metalCast, 0, fluidAmount); - } + public void castmolten(Fluid fluid, int ID) { + // // .addCastingRecipe(output, fluid, cast, hardeningDelay) + // TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( + // TinkerTools.toolRod, 1, ID), new FluidStack(fluid, + // (int) (144 * 0.5D)), TConstructRegistry.getItemStack("toolRodCast"), + // 50); + // TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( + // TinkerTools.pickaxeHead, 1, ID), new FluidStack(fluid, + // (int) (144 * 1.0D)), + // TConstructRegistry.getItemStack("pickaxeHeadCast"), 50); + // TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( + // TinkerTools.shovelHead, 1, ID), new FluidStack(fluid, + // (int) (144 * 1.0D)), + // TConstructRegistry.getItemStack("shovelHeadCast"), 50); + // TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( + // TinkerTools.hatchetHead, 1, ID), new FluidStack(fluid, + // (int) (144 * 1.0D)), + // TConstructRegistry.getItemStack("hatchetHeadCast"), 50); + // TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( + // TinkerTools.swordBlade, 1, ID), new FluidStack(fluid, + // (int) (144 * 1.0D)), + // TConstructRegistry.getItemStack("swordBladeCast"), 50); + // TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( + // TinkerTools.fullGuard, 1, ID), new FluidStack(fluid, + // (int) (144 * 3.0D)), + // TConstructRegistry.getItemStack("fullGuardCast"), 50); + // TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( + // TinkerTools.wideGuard, 1, ID), new FluidStack(fluid, + // (int) (144 * 0.5D)), + // TConstructRegistry.getItemStack("wideGuardCast"), 50); + // TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( + // TinkerTools.crossbar, 1, ID), new FluidStack(fluid, + // (int) (144 * 0.5D)), TConstructRegistry.getItemStack("crossbarCast"), + // 50); + // TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( + // TinkerTools.binding, 1, ID), new FluidStack(fluid, + // (int) (144 * 0.5D)), TConstructRegistry.getItemStack("bindingCast"), + // 50); + // TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( + // TinkerTools.handGuard, 1, ID), new FluidStack(fluid, + // (int) (144 * 0.5D)), + // TConstructRegistry.getItemStack("handGuardCast"), 50); + // TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( + // TinkerTools.frypanHead, 1, ID), new FluidStack(fluid, + // (int) (144 * 1.0D)), + // TConstructRegistry.getItemStack("frypanHeadCast"), 50); + // TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( + // TinkerTools.signHead, 1, ID), new FluidStack(fluid, + // (int) (144 * 1.0D)), TConstructRegistry.getItemStack("signHeadCast"), + // 50); + // TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( + // TinkerTools.knifeBlade, 1, ID), new FluidStack(fluid, + // (int) (144 * 0.5D)), + // TConstructRegistry.getItemStack("knifeBladeCast"), 50); + // TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( + // TinkerTools.chiselHead, 1, ID), new FluidStack(fluid, + // (int) (144 * 0.5D)), + // TConstructRegistry.getItemStack("chiselHeadCast"), 50); + // TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( + // TinkerTools.toughRod, 1, ID), new FluidStack(fluid, + // (int) (144 * 3.0D)), TConstructRegistry.getItemStack("toughRodCast"), + // 50); + // TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( + // TinkerTools.toughBinding, 1, ID), new FluidStack(fluid, + // (int) (144 * 3.0D)), + // TConstructRegistry.getItemStack("toughBindingCast"), 50); + // TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( + // TinkerTools.largePlate, 1, ID), new FluidStack(fluid, + // (int) (144 * 8.0D)), + // TConstructRegistry.getItemStack("largePlateCast"), 50); + // TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( + // TinkerTools.broadAxeHead, 1, ID), new FluidStack(fluid, + // (int) (144 * 8.0D)), + // TConstructRegistry.getItemStack("broadAxeHeadCast"), 50); + // TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( + // TinkerTools.scytheBlade, 1, ID), new FluidStack(fluid, + // (int) (144 * 8.0D)), + // TConstructRegistry.getItemStack("scytheHeadCast"), 50); + // TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( + // TinkerTools.excavatorHead, 1, ID), new FluidStack(fluid, + // (int) (144 * 8.0D)), + // TConstructRegistry.getItemStack("excavatorHeadCast"), 50); + // TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( + // TinkerTools.largeSwordBlade, 1, ID), new FluidStack(fluid, + // (int) (144 * 8.0D)), + // TConstructRegistry.getItemStack("largeBladeCast"), 50); + // TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( + // TinkerTools.hammerHead, 1, ID), new FluidStack(fluid, + // (int) (144 * 8.0D)), + // TConstructRegistry.getItemStack("hammerHeadCast"), 50); + // TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( + // TinkerTools.arrowhead, 1, ID), new FluidStack(fluid, + // (int) (144 * 1.0D)), + // TConstructRegistry.getItemStack("arrowheadCast"), 50); + // TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( + // partArmorplate, 1, ID), new FluidStack(fluid, + // (int) (144 * 4.0D)), new ItemStack(metalPattern, 1, 2), 50); + // TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( + // partRivet, 1, ID), new FluidStack(fluid, (int) (144 * 0.5D)), new + // ItemStack( + // metalPattern, 1, 0), 50); + // TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( + // partClasp, 1, ID), new FluidStack(fluid, (int) (144 * 1.0D)), new + // ItemStack( + // metalPattern, 1, 1), 50); + // TConstructRegistry.getTableCasting().addCastingRecipe(new ItemStack( + // partChainmaille, 1, ID), new FluidStack(fluid, + // (int) (144 * 4.0D)), new ItemStack(metalPattern, 1, 4), 50); } - public static int[] hexToRGB(String hex) - { - final int color[] = new int[3]; - - color[0] = Integer.parseInt(hex.substring(0, 2), 16); - color[1] = Integer.parseInt(hex.substring(2, 4), 16); - color[2] = Integer.parseInt(hex.substring(4, 6), 16); - - return color; - } + // public void buildParts(Item item, int meta) + // { + // final int[] nonMetals = {0, 1, 3, 4, 5, 6, 7, 8, 9, 17}; + // final int[] liquidDamage = new int[] {2, 13, 10, 11, 12, 14, 15, 6, 16, + // 18}; + // + // for(int mat = 0; mat < nonMetals.length; mat++) // + // { + // TConstructRegistry.addPartMapping(woodPattern, meta, mat, new ItemStack( + // item, 1, mat)); + // } + // + // final LiquidCasting tableCasting = TConstructRegistry.getTableCasting(); + // // patternOutputs = new Item[] { partShuriken, partCrossbowLimb, + // // partCrossbowBody, partBowLimb }; + // + // final ItemStack cast = new ItemStack(metalPattern, 1, meta); + // + // tableCasting.addCastingRecipe(cast, new FluidStack( + // TinkerSmeltery.moltenAlubrassFluid, TConstruct.ingotLiquidValue), new + // ItemStack( + // item, 1, Short.MAX_VALUE), false, 50); + // tableCasting.addCastingRecipe(cast, new FluidStack( + // TinkerSmeltery.moltenGoldFluid, TConstruct.ingotLiquidValue * 2), new + // ItemStack( + // item, 1, Short.MAX_VALUE), false, 50); + // + // for(int iterTwo = 0; iterTwo < TinkerSmeltery.liquids.length; iterTwo++) + // { + // final Fluid fs = TinkerSmeltery.liquids[iterTwo].getFluid(); + // final int fluidAmount = metalPattern.getPatternCost(cast) * + // TConstruct.ingotLiquidValue / 2; + // final ItemStack metalCast = new ItemStack(item, 1, + // liquidDamage[iterTwo]); + // tableCasting.addCastingRecipe(metalCast, new FluidStack(fs, + // fluidAmount), cast, 50); + // Smeltery.addMelting(FluidType.getFluidType(fs), metalCast, 0, + // fluidAmount); + // } + // } + + } |
