use of cpw.mods.fml.common.Mod.EventHandler in project NewHorizonsCoreMod by GTNewHorizons.
the class MainRegistry method load.
@EventHandler
public void load(FMLInitializationEvent event) {
// register events in modules
RegisterModuleEvents();
if (CoreConfig.ModBabyChest_Enabled)
InitAdditionalBlocks();
// Register Dimensions in GalacticGregGT5
if (Loader.isModLoaded("galacticgreg")) {
SpaceDimReg = new SpaceDimRegisterer();
if (!SpaceDimReg.Init()) {
Logger.error("Unable to register SpaceDimensions; You are probably using the wrong Version of GalacticGreg");
AddLoginError("[SpaceDim] Unable to register SpaceDimensions. Wrong Version of GGreg found!");
} else {
Logger.debug("Registering SpaceDimensions");
SpaceDimReg.Register();
}
}
}
use of cpw.mods.fml.common.Mod.EventHandler in project NewHorizonsCoreMod by GTNewHorizons.
the class MainRegistry method PostLoad.
@EventHandler
public void PostLoad(FMLPostInitializationEvent PostEvent) {
if (CoreConfig.ModHazardousItems_Enabled)
Module_HazardousItems.LoadConfig();
if (CoreConfig.ModCustomToolTips_Enabled)
Module_CustomToolTips.LoadConfig();
if (CoreConfig.ModCustomFuels_Enabled)
Module_CustomFuels.LoadConfig();
if (CoreConfig.ModCustomDrops_Enabled)
Module_CustomDrops.LoadConfig();
GT_Loader_ItemPipes.registerPipes();
GTCustomLoader = new GT_CustomLoader();
GTCustomLoader.run();
registerModFixes();
// Register modfixes in registerModFixes()
// Don't call enableModFixes() yourself
// Don't register fixes after enableModFixes() has been executed
ModFixesMaster.enableModFixes();
}
use of cpw.mods.fml.common.Mod.EventHandler in project SecurityCraft by Geforce132.
the class mod_SecurityCraft method serverStarting.
//public static Item testChestplate;
@EventHandler
public void serverStarting(FMLServerStartingEvent event) {
event.registerServerCommand(new CommandSCHelp());
event.registerServerCommand(new CommandModule());
if (this.debuggingMode) {
event.registerServerCommand(new CommandSCLog());
}
}
use of cpw.mods.fml.common.Mod.EventHandler in project BetterStorage by copygirl.
the class BetterStorage method preInit.
@EventHandler
public void preInit(FMLPreInitializationEvent event) {
networkChannel = new ChannelHandler();
log = event.getModLog();
creativeTab = new CreativeTabBetterStorage();
Addon.initialize();
globalConfig = new GlobalConfig(event.getSuggestedConfigurationFile());
Addon.setupConfigsAll();
globalConfig.load();
globalConfig.save();
BetterStorageTiles.initialize();
BetterStorageItems.initialize();
EnchantmentBetterStorage.initialize();
BetterStorageTileEntities.register();
BetterStorageEntities.register();
DungeonLoot.add();
}
use of cpw.mods.fml.common.Mod.EventHandler in project Minechem by iopleke.
the class Minechem method init.
@EventHandler
public void init(FMLInitializationEvent event) {
LogHelper.debug("Registering Recipes...");
RecipeRegistry.getInstance().init();
LogHelper.debug("Registering GUI and Container handlers...");
NetworkRegistry.INSTANCE.registerGuiHandler(this, new GuiHandler());
LogHelper.debug("Registering Renderers...");
proxy.registerRenderers();
LogHelper.debug("Registering Fonts...");
proxy.registerFonts();
LogHelper.debug("Registering Achievements...");
AchievementHandler.init();
}
Aggregations