Search in sources :

Example 16 with EventHandler

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();
        }
    }
}
Also used : SpaceDimRegisterer(com.dreammaster.galacticgreg.SpaceDimRegisterer) EventHandler(cpw.mods.fml.common.Mod.EventHandler)

Example 17 with EventHandler

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();
}
Also used : GT_CustomLoader(com.dreammaster.gthandler.GT_CustomLoader) EventHandler(cpw.mods.fml.common.Mod.EventHandler)

Example 18 with EventHandler

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());
    }
}
Also used : CommandModule(org.freeforums.geforce.securitycraft.commands.CommandModule) CommandSCHelp(org.freeforums.geforce.securitycraft.commands.CommandSCHelp) CommandSCLog(org.freeforums.geforce.securitycraft.commands.CommandSCLog) ForgeEventHandler(org.freeforums.geforce.securitycraft.handlers.ForgeEventHandler) EventHandler(cpw.mods.fml.common.Mod.EventHandler)

Example 19 with EventHandler

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();
}
Also used : GlobalConfig(net.mcft.copy.betterstorage.config.GlobalConfig) CreativeTabBetterStorage(net.mcft.copy.betterstorage.misc.CreativeTabBetterStorage) ChannelHandler(net.mcft.copy.betterstorage.network.ChannelHandler) EventHandler(cpw.mods.fml.common.Mod.EventHandler)

Example 20 with EventHandler

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();
}
Also used : GuiHandler(minechem.handler.GuiHandler) EventHandler(cpw.mods.fml.common.Mod.EventHandler)

Aggregations

EventHandler (cpw.mods.fml.common.Mod.EventHandler)34 ItemStack (net.minecraft.item.ItemStack)9 WorldConversionEventHandler (com.bluepowermod.convert.WorldConversionEventHandler)4 BPEventHandler (com.bluepowermod.event.BPEventHandler)4 MRHandlerItemStack (com.builtbroken.mc.lib.recipe.item.MRHandlerItemStack)4 Configuration (net.minecraftforge.common.config.Configuration)4 ServerCommandManager (net.minecraft.command.ServerCommandManager)3 IWorkerThread (com.builtbroken.mc.api.process.IWorkerThread)2 MissingMapping (cpw.mods.fml.common.event.FMLMissingMappingsEvent.MissingMapping)2 ICommandManager (net.minecraft.command.ICommandManager)2 AMConfig (am2.configuration.AMConfig)1 SkillConfiguration (am2.configuration.SkillConfiguration)1 GUIHandler (com.bluepowermod.client.gui.GUIHandler)1 Config (com.bluepowermod.init.Config)1 RedstoneProviderQmunityLib (com.bluepowermod.redstone.RedstoneProviderQmunityLib)1 RedstoneProviderVanilla (com.bluepowermod.redstone.RedstoneProviderVanilla)1 WorldGenerationHandler (com.bluepowermod.world.WorldGenerationHandler)1 ProxyASMTest (com.builtbroken.mc.core.asm.ProxyASMTest)1 BlockHeatedStone (com.builtbroken.mc.core.content.blocks.BlockHeatedStone)1 ItemDevData (com.builtbroken.mc.core.content.debug.ItemDevData)1