public class ModLoader
extends java.lang.Object
loadMods()
and finishMods()
Overall sequence for loadMods is:
Mod.EventBusSubscriber
,
RegistryEvent
, CapabilityInject
and othersFMLCommonSetupEvent
to modsFMLClientSetupEvent
or
FMLDedicatedServerSetupEvent
to modsInterModEnqueueEvent
to mods,
for enqueuing InterModComms
messages for other mods to receive subsequentlyInterModProcessEvent
to mods,
for processing InterModComms
messages received from other mods prior to this eventFMLLoadCompleteEvent
to mods,
and completes the mod loading sequence.Modifier and Type | Method and Description |
---|---|
void |
addWarning(ModLoadingWarning warning) |
void |
finishMods() |
static ModLoader |
get() |
java.util.List<ModLoadingWarning> |
getWarnings() |
void |
loadMods() |
public static ModLoader get()
public void loadMods()
public void finishMods()
public java.util.List<ModLoadingWarning> getWarnings()
public void addWarning(ModLoadingWarning warning)