public class FMLPostInitializationEvent extends FMLStateEvent
FMLInitializationEvent
has been dispatched on every mod. This is the third and last
commonly called event during mod initialization.
Recommended activities: interact with other mods to establish cross-mod behaviours.for how to subscribe to this event
Constructor and Description |
---|
FMLPostInitializationEvent(java.lang.Object... data) |
Modifier and Type | Method and Description |
---|---|
com.google.common.base.Optional<?> |
buildSoftDependProxy(java.lang.String modId,
java.lang.String className,
java.lang.Object... arguments)
Build an object depending on if a specific target mod is loaded or not.
|
LoaderState.ModState |
getModState()
The current state of the mod
|
getSide
applyModContainer, description, getEventType
public FMLPostInitializationEvent(java.lang.Object... data)
public LoaderState.ModState getModState()
FMLStateEvent
getModState
in class FMLStateEvent
public com.google.common.base.Optional<?> buildSoftDependProxy(java.lang.String modId, java.lang.String className, java.lang.Object... arguments)
modId
- The modId I conditionally want to build an object forclassName
- The name of the class I wish to instantiate