From bab1e30d6ca1796458db5ca5ce0ad4f2f2b21a61 Mon Sep 17 00:00:00 2001 From: Eragonn1490 Date: Sun, 13 Oct 2013 00:49:37 -0400 Subject: [PATCH] Added Gears to Ore Dictionary Added Imports for OreDictionary Added all the gears to the OreDictionary --- common/buildcraft/BuildCraftCore.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/common/buildcraft/BuildCraftCore.java b/common/buildcraft/BuildCraftCore.java index a5eac72c..e56bd62b 100644 --- a/common/buildcraft/BuildCraftCore.java +++ b/common/buildcraft/BuildCraftCore.java @@ -25,6 +25,7 @@ import net.minecraftforge.common.IPlantable; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.common.Property; import net.minecraftforge.event.ForgeSubscribe; +import net.minecraftforge.oredict.OreDictionary; import net.minecraftforge.fluids.IFluidBlock; import buildcraft.api.core.BuildCraftAPI; import buildcraft.api.core.IIconProvider; @@ -241,22 +242,27 @@ public class BuildCraftCore { woodenGearItem = (new ItemBuildCraft(woodenGearId.getInt())).setUnlocalizedName("woodenGearItem"); LanguageRegistry.addName(woodenGearItem, "Wooden Gear"); CoreProxy.proxy.registerItem(woodenGearItem); + OreDictionary.registerOre("gearWooden", new ItemStack(woodenGearItem,1,0)); stoneGearItem = (new ItemBuildCraft(stoneGearId.getInt())).setUnlocalizedName("stoneGearItem"); LanguageRegistry.addName(stoneGearItem, "Stone Gear"); CoreProxy.proxy.registerItem(stoneGearItem); + OreDictionary.registerOre("gearStone", new ItemStack(stoneGearItem,1,0)); ironGearItem = (new ItemBuildCraft(ironGearId.getInt())).setUnlocalizedName("ironGearItem"); LanguageRegistry.addName(ironGearItem, "Iron Gear"); CoreProxy.proxy.registerItem(ironGearItem); - + OreDictionary.registerOre("gearIron", new ItemStack(ironGearItem,1,0)); + goldGearItem = (new ItemBuildCraft(goldenGearId.getInt())).setUnlocalizedName("goldGearItem"); LanguageRegistry.addName(goldGearItem, "Gold Gear"); CoreProxy.proxy.registerItem(goldGearItem); + OreDictionary.registerOre("gearGold", new ItemStack(goldGearItem,1,0)); diamondGearItem = (new ItemBuildCraft(diamondGearId.getInt())).setUnlocalizedName("diamondGearItem"); LanguageRegistry.addName(diamondGearItem, "Diamond Gear"); CoreProxy.proxy.registerItem(diamondGearItem); + OreDictionary.registerOre("gearDiamond", new ItemStack(diamondGearItem,1,0)); Property colorBlindProp = BuildCraftCore.mainConfiguration.get(Configuration.CATEGORY_GENERAL, "client.colorblindmode", false); colorBlindProp.comment = "Set to true to enable alternate textures";