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();
}
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 PneumaticCraft by MineMaarten.
the class PneumaticCraft method load.
@EventHandler
public void load(FMLInitializationEvent event) {
NetworkHandler.init();
if (Config.enableDungeonLoot) {
ChestGenHooks.getInfo(ChestGenHooks.VILLAGE_BLACKSMITH).addItem(new WeightedRandomChestContent(new ItemStack(Itemss.stopWorm), 1, 4, 10));
ChestGenHooks.getInfo(ChestGenHooks.DUNGEON_CHEST).addItem(new WeightedRandomChestContent(new ItemStack(Itemss.stopWorm), 1, 4, 10));
ChestGenHooks.getInfo(ChestGenHooks.MINESHAFT_CORRIDOR).addItem(new WeightedRandomChestContent(new ItemStack(Itemss.stopWorm), 1, 4, 10));
ChestGenHooks.getInfo(ChestGenHooks.PYRAMID_DESERT_CHEST).addItem(new WeightedRandomChestContent(new ItemStack(Itemss.stopWorm), 1, 4, 10));
ChestGenHooks.getInfo(ChestGenHooks.PYRAMID_JUNGLE_CHEST).addItem(new WeightedRandomChestContent(new ItemStack(Itemss.stopWorm), 1, 4, 10));
ChestGenHooks.getInfo(ChestGenHooks.STRONGHOLD_LIBRARY).addItem(new WeightedRandomChestContent(new ItemStack(Itemss.stopWorm), 1, 4, 10));
ChestGenHooks.getInfo(ChestGenHooks.STRONGHOLD_CORRIDOR).addItem(new WeightedRandomChestContent(new ItemStack(Itemss.stopWorm), 1, 4, 10));
ChestGenHooks.getInfo(ChestGenHooks.STRONGHOLD_CROSSING).addItem(new WeightedRandomChestContent(new ItemStack(Itemss.stopWorm), 1, 4, 10));
ChestGenHooks.getInfo(ChestGenHooks.VILLAGE_BLACKSMITH).addItem(new WeightedRandomChestContent(new ItemStack(Itemss.nukeVirus), 1, 4, 10));
ChestGenHooks.getInfo(ChestGenHooks.DUNGEON_CHEST).addItem(new WeightedRandomChestContent(new ItemStack(Itemss.nukeVirus), 1, 4, 10));
ChestGenHooks.getInfo(ChestGenHooks.MINESHAFT_CORRIDOR).addItem(new WeightedRandomChestContent(new ItemStack(Itemss.nukeVirus), 1, 4, 10));
ChestGenHooks.getInfo(ChestGenHooks.PYRAMID_DESERT_CHEST).addItem(new WeightedRandomChestContent(new ItemStack(Itemss.nukeVirus), 1, 4, 10));
ChestGenHooks.getInfo(ChestGenHooks.PYRAMID_JUNGLE_CHEST).addItem(new WeightedRandomChestContent(new ItemStack(Itemss.nukeVirus), 1, 4, 10));
ChestGenHooks.getInfo(ChestGenHooks.STRONGHOLD_LIBRARY).addItem(new WeightedRandomChestContent(new ItemStack(Itemss.nukeVirus), 1, 4, 10));
ChestGenHooks.getInfo(ChestGenHooks.STRONGHOLD_CORRIDOR).addItem(new WeightedRandomChestContent(new ItemStack(Itemss.nukeVirus), 1, 4, 10));
ChestGenHooks.getInfo(ChestGenHooks.STRONGHOLD_CROSSING).addItem(new WeightedRandomChestContent(new ItemStack(Itemss.nukeVirus), 1, 4, 10));
}
proxy.init();
ThirdPartyManager.instance().init();
}
use of cpw.mods.fml.common.Mod.EventHandler in project PneumaticCraft by MineMaarten.
the class PneumaticCraft method onServerStart.
@EventHandler
public void onServerStart(FMLServerStartingEvent event) {
ServerCommandManager comManager = (ServerCommandManager) MinecraftServer.getServer().getCommandManager();
new PCCommandManager().init(comManager);
}
use of cpw.mods.fml.common.Mod.EventHandler in project PneumaticCraft by MineMaarten.
the class PneumaticCraft method onMissingMapping.
@EventHandler
public void onMissingMapping(FMLMissingMappingsEvent event) {
for (MissingMapping mapping : event.get()) {
if (mapping.type == GameRegistry.Type.BLOCK && mapping.name.equals("PneumaticCraft:etchingAcid")) {
mapping.remap(Fluids.etchingAcid.getBlock());
Log.info("Remapping Etching Acid");
}
if (mapping.type == GameRegistry.Type.ITEM && mapping.name.equals("PneumaticCraft:etchingAcidBucket")) {
mapping.remap(Fluids.getBucket(Fluids.etchingAcid));
Log.info("Remapping Etching Acid Bucket");
}
}
}
Aggregations