@Mod.EventHandler public void init(FMLInitializationEvent evt) { // init modintegration PluginManager.init(); // register gui handler NetworkRegistry.INSTANCE.registerGuiHandler(this, new GuiHandler()); // register TileEntities ModBlocks.registerTileEntities(); // init rendering proxy.registerRenderer(); // register EventHandlers proxy.registerEvents(); // Config handler FMLCommonHandler.instance().bus().register(config); // load Entities ModEntities.init(); // load recipes ModRecipes.init(); // init networking }
@Mod.EventHandler public void preInit(FMLPreInitializationEvent evt) { // load config config = new ConfigHandler(evt.getSuggestedConfigurationFile()); config.load(true); // init networking // init keybindings // registerItems items ModItems.registerItems(); // registerBlocks blocks ModBlocks.registerBlocks(); }