public void preInit(FMLPreInitializationEvent event) { BotaniaAPI.internalHandler = new InternalMethodHandler(); ConfigHandler.loadConfig(event.getSuggestedConfigurationFile()); ModBlocks.init(); ModItems.init(); ModEntities.init(); ModPotions.init(); ModBrews.init(); ModCraftingRecipes.init(); ModPetalRecipes.init(); ModPureDaisyRecipes.init(); ModRuneRecipes.init(); ModManaAlchemyRecipes.init(); ModManaConjurationRecipes.init(); ModManaInfusionRecipes.init(); ModElvenTradeRecipes.init(); ModBrewRecipes.init(); ModAchievements.init(); ModMultiblocks.init(); if (Botania.etFuturumLoaded) ModBanners.init(); ChestGenHandler.init(); LexiconData.init(); if (Botania.gardenOfGlassLoaded) new WorldTypeSkyblock(); }
public void postInit(FMLPostInitializationEvent event) { if (Botania.thaumcraftLoaded) { ModBrews.initTC(); ModBrewRecipes.initTC(); } ModBlocks.addDispenserBehaviours(); ModBlocks.registerMultiparts(); ConfigHandler.loadPostInit(); LexiconData.postInit(); registerNEIStuff(); int words = 0; for (LexiconEntry entry : BotaniaAPI.getAllEntries()) for (LexiconPage page : entry.pages) { words += countWords(page.getUnlocalizedName()); if (page instanceof ITwoNamedPage) words += countWords(((ITwoNamedPage) page).getSecondUnlocalizedName()); } FMLLog.log(Level.INFO, "[Botania] The Lexica Botania has %d words.", words); }