use of net.silentchaos512.gems.init.ModPotions in project SilentGems by SilentChaos512.
the class SilentGems method preInit.
@EventHandler
public void preInit(FMLPreInitializationEvent event) {
localizationHelper = new LocalizationHelper(MODID).setReplaceAmpersand(true);
SilentLib.instance.registerLocalizationHelperForMod(MODID, localizationHelper);
CommonItemStats.init();
ToolHelper.init();
GemsConfig.INSTANCE.init(event.getSuggestedConfigurationFile());
registry.addRegistrationHandler(new ModEnchantments(), Enchantment.class);
registry.addRegistrationHandler(new ModBlocks(), Block.class);
registry.addRegistrationHandler(new ModItems(), Item.class);
registry.addRegistrationHandler(new ModPotions(), Potion.class);
registry.addRegistrationHandler(new ModRecipes(), IRecipe.class);
ModParts.init();
SoulSkill.init();
GemsConfig.INSTANCE.loadModuleConfigs();
// TODO: Achievements
// World generation
GameRegistry.registerWorldGenerator(new GemsWorldGenerator(), 0);
GameRegistry.registerWorldGenerator(new GemsGeodeWorldGenerator(), -10);
// Headcrumbs
FMLInterModComms.sendMessage("headcrumbs", "add-username", Names.SILENT_CHAOS_512);
// Load TCon compatibility stuff?
if (Loader.isModLoaded("tconstruct")) {
TConstructGemsCompat.preInit();
}
VeinMinerCompat.init();
proxy.preInit(registry);
}
Aggregations