(FMLPreInitializationEvent evt)
| 47 | } |
| 48 | |
| 49 | @Mod.EventHandler |
| 50 | public static void preInit(FMLPreInitializationEvent evt) { |
| 51 | BCLog.logger.info(""); |
| 52 | BCLog.logger.info("Starting BuildCraft " + BCLib.VERSION); |
| 53 | BCLog.logger.info("Copyright (c) the BuildCraft team, 2011-2016"); |
| 54 | BCLog.logger.info("http://www.mod-buildcraft.com"); |
| 55 | BCLog.logger.info(""); |
| 56 | |
| 57 | File cfgFolder = evt.getModConfigurationDirectory(); |
| 58 | cfgFolder = new File(cfgFolder, "buildcraft"); |
| 59 | RegistryHelper.setRegistryConfig(MODID, new File(cfgFolder, "objects.cfg")); |
| 60 | |
| 61 | BCCoreConfig.preInit(cfgFolder); |
| 62 | BCCoreProxy.getProxy().fmlPreInit(); |
| 63 | |
| 64 | CreativeTabManager.createTab("buildcraft.main"); |
| 65 | |
| 66 | BCCoreItems.preInit(); |
| 67 | BCCoreBlocks.preInit(); |
| 68 | BCCoreStatements.preInit(); |
| 69 | |
| 70 | CreativeTabManager.setItem("buildcraft.main", BCCoreItems.wrench); |
| 71 | |
| 72 | NetworkRegistry.INSTANCE.registerGuiHandler(INSTANCE, BCCoreProxy.getProxy()); |
| 73 | |
| 74 | MinecraftForge.EVENT_BUS.register(ListTooltipHandler.INSTANCE); |
| 75 | |
| 76 | OreDictionary.registerOre("craftingTableWood", Blocks.CRAFTING_TABLE); |
| 77 | } |
| 78 | |
| 79 | @Mod.EventHandler |
| 80 | public static void init(FMLInitializationEvent evt) { |
nothing calls this directly
no test coverage detected