diff options
author | Draknyte1 <Draknyte1@hotmail.com> | 2016-06-30 03:42:21 +1000 |
---|---|---|
committer | Draknyte1 <Draknyte1@hotmail.com> | 2016-06-30 03:42:21 +1000 |
commit | b705cd62b037f8bf40c74d130177b5b2524d2e1b (patch) | |
tree | e16f65ddbb5d215f7a53618c6716e83e011449b3 /src/Java/miscutil/core/common | |
parent | 3304d37df6a306fa0b554ee25e99c78115b46c2b (diff) | |
download | GT5-Unofficial-b705cd62b037f8bf40c74d130177b5b2524d2e1b.tar.gz GT5-Unofficial-b705cd62b037f8bf40c74d130177b5b2524d2e1b.tar.bz2 GT5-Unofficial-b705cd62b037f8bf40c74d130177b5b2524d2e1b.zip |
% More Work on the GT Material System implementation.
Diffstat (limited to 'src/Java/miscutil/core/common')
-rw-r--r-- | src/Java/miscutil/core/common/CommonProxy.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/Java/miscutil/core/common/CommonProxy.java b/src/Java/miscutil/core/common/CommonProxy.java index 3197eaffca..1d67860537 100644 --- a/src/Java/miscutil/core/common/CommonProxy.java +++ b/src/Java/miscutil/core/common/CommonProxy.java @@ -1,6 +1,9 @@ package miscutil.core.common; import static miscutil.core.lib.CORE.DEBUG; + +import java.util.Iterator; + import miscutil.core.block.ModBlocks; import miscutil.core.creative.AddToCreativeTab; import miscutil.core.gui.ModGUI; @@ -14,13 +17,32 @@ import miscutil.core.tileentities.ModTileEntities; import miscutil.core.util.Utils; import miscutil.core.util.debug.DEBUG_INIT; import miscutil.core.util.player.PlayerCache; +import miscutil.gregtech.common.Meta_GT_Proxy; +import net.minecraft.item.ItemStack; import net.minecraftforge.common.MinecraftForge; +import net.minecraftforge.oredict.OreDictionary; +import cpw.mods.fml.common.FMLCommonHandler; 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.event.FMLServerStartingEvent; public class CommonProxy { + + public CommonProxy(){ + //Should Register Gregtech Materials I've Made + MinecraftForge.EVENT_BUS.register(this); + FMLCommonHandler.instance().bus().register(this); + if (LoadedMods.Gregtech){ + for (String tOreName : OreDictionary.getOreNames()) { + ItemStack tOreStack; + for (Iterator i$ = OreDictionary.getOres(tOreName).iterator(); i$.hasNext(); Meta_GT_Proxy.registerOre(new OreDictionary.OreRegisterEvent(tOreName, tOreStack))) { + Utils.LOG_INFO("Iterating Material"); + tOreStack = (ItemStack) i$.next(); + } + } + } + } public void preInit(FMLPreInitializationEvent e) { Utils.LOG_INFO("Doing some house cleaning."); |