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");
}
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);
}
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);
}
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);
}
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();
}
Aggregations