@Retention(value=RUNTIME)
@Target(value=METHOD)
public static @interface Mod.EventHandler
FMLPreInitializationEvent
: Run before anything else. Read your config, create blocks,
items, etc, and register them with the GameRegistry
.FMLInitializationEvent
: Do your mod setup. Build whatever data structures you care about. Register recipes,
send FMLInterModComms
messages to other mods.FMLPostInitializationEvent
: Handle interaction with other mods, complete your setup based on this.These are the server lifecycle events. They are fired whenever a server is running, or about to run. Each time a server starts they will be fired in this sequence.
FMLServerAboutToStartEvent
: Use if you need to handle something before the server has even been created.FMLServerStartingEvent
: Do stuff you need to do to set up the server. register commands, tweak the server.FMLServerStartedEvent
: Do what you need to with the running server.FMLServerStoppingEvent
: Do what you need to before the server has started it's shutdown sequence.FMLServerStoppedEvent
: Do whatever cleanup you need once the server has shutdown. Generally only useful
on the integrated server.FMLFingerprintViolationEvent
: Sent just before FMLPreInitializationEvent
if something is wrong with your mod signatureFMLInterModComms.IMCEvent
: Sent just after FMLInitializationEvent
if you have IMC messages waiting
from other mods