Search in sources :

Example 6 with EventHandler

use of net.minecraftforge.fml.common.Mod.EventHandler in project Valkyrien-Warfare-Revamped by ValkyrienWarfare.

the class CannonMod method init.

@EventHandler
public void init(FMLInitializationEvent event) {
    proxy.init();
    MinecraftForge.EVENT_BUS.register(new ExplosionHandler());
    //Craft
    GameRegistry.registerTileEntity(TileEntityCannon.class, CannonModRefrence.MOD_ID + "TileEntityCannon");
}
Also used : ExplosionHandler(com.jackredcreeper.cannon.world.ExplosionHandler) EventHandler(net.minecraftforge.fml.common.Mod.EventHandler)

Example 7 with EventHandler

use of net.minecraftforge.fml.common.Mod.EventHandler in project Bookshelf by Darkhax-Minecraft.

the class ChestTest method preInit.

@EventHandler
public void preInit(FMLPreInitializationEvent event) {
    MinecraftForge.EVENT_BUS.register(new BookshelfEvents());
    final RegistryHelper registry = new RegistryHelper("chesttest");
    registry.setTab(CreativeTabs.MISC);
    final ChestBuilder builder = new ChestBuilder("chesttest", true);
    builder.addChestType("one", "two", "three");
    builder.register(registry);
}
Also used : RegistryHelper(net.darkhax.bookshelf.registry.RegistryHelper) ChestBuilder(net.darkhax.bookshelf.builder.ChestBuilder) BookshelfEvents(net.darkhax.bookshelf.BookshelfEvents) EventHandler(net.minecraftforge.fml.common.Mod.EventHandler)

Example 8 with EventHandler

use of net.minecraftforge.fml.common.Mod.EventHandler in project Bookshelf by Darkhax-Minecraft.

the class ChestTestTwo method preInit.

@EventHandler
public void preInit(FMLPreInitializationEvent event) {
    MinecraftForge.EVENT_BUS.register(new BookshelfEvents());
    final RegistryHelper registry = new RegistryHelper("chesttesttwo");
    registry.setTab(CreativeTabs.MISC);
    final ChestBuilder builder = new ChestBuilder("chesttesttwo", true);
    builder.addChestType("four");
    builder.register(registry);
}
Also used : RegistryHelper(net.darkhax.bookshelf.registry.RegistryHelper) ChestBuilder(net.darkhax.bookshelf.builder.ChestBuilder) BookshelfEvents(net.darkhax.bookshelf.BookshelfEvents) EventHandler(net.minecraftforge.fml.common.Mod.EventHandler)

Example 9 with EventHandler

use of net.minecraftforge.fml.common.Mod.EventHandler in project Bookshelf by Darkhax-Minecraft.

the class RecipeOwnerTest method preInit.

@EventHandler
public void preInit(FMLPreInitializationEvent event) {
    MinecraftForge.EVENT_BUS.register(this);
    GameRegistry.addShapelessRecipe(new ItemStack(Items.IRON_INGOT, 21, 0), Items.IRON_HORSE_ARMOR);
}
Also used : ItemStack(net.minecraft.item.ItemStack) EventHandler(net.minecraftforge.fml.common.Mod.EventHandler)

Example 10 with EventHandler

use of net.minecraftforge.fml.common.Mod.EventHandler in project SecurityCraft by Geforce132.

the class mod_SecurityCraft method init.

@EventHandler
public void init(FMLInitializationEvent event) {
    log("Setting up inter-mod stuff...");
    FMLInterModComms.sendMessage("Waila", "register", "net.geforcemods.securitycraft.imc.waila.WailaDataProvider.callbackRegister");
    if (configHandler.checkForUpdates) {
        NBTTagCompound vcUpdateTag = VersionUpdateChecker.getNBTTagCompound();
        if (vcUpdateTag != null) {
            FMLInterModComms.sendRuntimeMessage(MODID, "VersionChecker", "addUpdate", vcUpdateTag);
        }
    }
    log("Doing registering stuff... (PT 2/2)");
    NetworkRegistry.INSTANCE.registerGuiHandler(this, GuiHandler);
    mod_SecurityCraft.configHandler.setupEntityRegistry();
    mod_SecurityCraft.configHandler.setupOtherRegistries();
    serverProxy.registerRenderThings();
}
Also used : NBTTagCompound(net.minecraft.nbt.NBTTagCompound) EventHandler(net.minecraftforge.fml.common.Mod.EventHandler) ForgeEventHandler(net.geforcemods.securitycraft.handlers.ForgeEventHandler)

Aggregations

EventHandler (net.minecraftforge.fml.common.Mod.EventHandler)33 ItemStack (net.minecraft.item.ItemStack)5 Configuration (net.minecraftforge.common.config.Configuration)5 File (java.io.File)3 ForgeEventHandler (net.geforcemods.securitycraft.handlers.ForgeEventHandler)3 BookshelfEvents (net.darkhax.bookshelf.BookshelfEvents)2 ChestBuilder (net.darkhax.bookshelf.builder.ChestBuilder)2 RegistryHelper (net.darkhax.bookshelf.registry.RegistryHelper)2 TeleportEventHandler (net.dyeo.teleporter.event.TeleportEventHandler)2 CommandModule (net.geforcemods.securitycraft.commands.CommandModule)2 CommandSC (net.geforcemods.securitycraft.commands.CommandSC)2 Block (net.minecraft.block.Block)2 ItemBlock (net.minecraft.item.ItemBlock)2 NBTTagCompound (net.minecraft.nbt.NBTTagCompound)2 ModMetadata (net.minecraftforge.fml.common.ModMetadata)2 WorldTypeMessageEventHandler (rtg.event.WorldTypeMessageEventHandler)2 ControlGUIHandler (ValkyrienWarfareControl.GUI.ControlGUIHandler)1 ValkyrienWarfareWorldGen (ValkyrienWarfareWorld.WorldGen.ValkyrienWarfareWorldGen)1 GuiHandler (betterwithaddons.client.GuiHandler)1 ModConfiguration (betterwithaddons.config.ModConfiguration)1