MCPcopy Create free account
hub / github.com/BuildCraft/BuildCraft / preInit

Method preInit

common/buildcraft/core/BCCore.java:49–77  ·  view source on GitHub ↗
(FMLPreInitializationEvent evt)

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 10

setRegistryConfigMethod · 0.95
preInitMethod · 0.95
getProxyMethod · 0.95
createTabMethod · 0.95
preInitMethod · 0.95
preInitMethod · 0.95
preInitMethod · 0.95
setItemMethod · 0.95
fmlPreInitMethod · 0.45
registerMethod · 0.45

Tested by

no test coverage detected