use of net.minecraftforge.fml.common.Mod.EventHandler in project Witchworks by Um-Mitternacht.
the class WitchWorks method start.
@EventHandler
public void start(FMLServerStartingEvent event) {
ModCommands.init();
event.registerServerCommand(new CommandIncantation());
}
use of net.minecraftforge.fml.common.Mod.EventHandler in project Valkyrien-Warfare-Revamped by ValkyrienWarfare.
the class ValkyrienWarfareMod method serverStart.
@EventHandler
public void serverStart(FMLServerStartingEvent event) {
MinecraftServer server = event.getServer();
ModCommands.registerCommands(server);
}
use of net.minecraftforge.fml.common.Mod.EventHandler in project Valkyrien-Warfare-Revamped by ValkyrienWarfare.
the class ValkyrienWarfareWorldMod method init.
@EventHandler
public void init(FMLInitializationEvent event) {
EntityRegistry.registerModEntity(EntityFallingUpBlock.class, "FallingUpBlockEntity", 75, this, 80, 1, true);
MinecraftForge.EVENT_BUS.register(worldEventsCommon);
proxy.init(event);
GameRegistry.registerWorldGenerator(new ValkyrienWarfareWorldGen(), 1);
}
use of net.minecraftforge.fml.common.Mod.EventHandler in project SecurityCraft by Geforce132.
the class 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 (config.checkForUpdates) {
NBTTagCompound vcUpdateTag = VersionUpdateChecker.getNBTTagCompound();
if (vcUpdateTag != null)
FMLInterModComms.sendRuntimeMessage(MODID, "VersionChecker", "addUpdate", vcUpdateTag);
}
log("Registering mod content... (PT 2/2)");
SecurityCraft.serverProxy.registerResourceLocations();
NetworkRegistry.INSTANCE.registerGuiHandler(this, guiHandler);
RegistrationHandler.registerEntities();
EnumCustomModules.refresh();
serverProxy.registerRenderThings();
}
use of net.minecraftforge.fml.common.Mod.EventHandler in project SecurityCraft by Geforce132.
the class SecurityCraft method serverStarting.
@EventHandler
public void serverStarting(FMLServerStartingEvent event) {
event.registerServerCommand(new CommandSC());
event.registerServerCommand(new CommandModule());
}
Aggregations