Class ModLoader

java.lang.Object
net.minecraftforge.fml.ModLoader

public class ModLoader extends Object
Loads mods. Dispatch cycle is seen in #loadMods() and #finishMods() Overall sequence for loadMods is:
CONSTRUCT
Constructs the mod instance. Mods can typically setup basic environment such as Event listeners and Configuration specifications here.
Automated dispatches
Dispatches automated elements : net.minecraftforge.fml.common.Mod.EventBusSubscriber, net.minecraftforge.event.RegistryEvent, net.minecraftforge.common.capabilities.CapabilityInject and others
CONFIG_LOAD
Dispatches ConfigLoadEvent to mods
COMMON_SETUP
Dispatches net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent to mods
SIDED_SETUP
Dispatches net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent or net.minecraftforge.fml.event.lifecycle.FMLDedicatedServerSetupEvent to mods
Overall sequence for finishMods is:
ENQUEUE_IMC
Dispatches net.minecraftforge.fml.event.lifecycle.InterModEnqueueEvent to mods, for enqueuing InterModComms messages for other mods to receive subsequently
PROCESS_IMC
Dispatches net.minecraftforge.fml.event.lifecycle.InterModProcessEvent to mods, for processing InterModComms messages received from other mods prior to this event
COMPLETE
Dispatches net.minecraftforge.fml.event.lifecycle.FMLLoadCompleteEvent to mods, and completes the mod loading sequence.