public class FMLModContainer extends ModContainer
Modifier and Type | Field and Description |
---|---|
private net.minecraftforge.eventbus.api.IEventBus |
eventBus |
private static org.apache.logging.log4j.Logger |
LOGGER |
private java.lang.Class<?> |
modClass |
private java.lang.Object |
modInstance |
private net.minecraftforge.forgespi.language.ModFileScanData |
scanResults |
configHandler, configs, contextExtension, extensionPoints, modId, modInfo, modLoadingStage, namespace, triggerMap
Constructor and Description |
---|
FMLModContainer(net.minecraftforge.forgespi.language.IModInfo info,
java.lang.String className,
java.lang.ClassLoader modClassLoader,
net.minecraftforge.forgespi.language.ModFileScanData modFileScanResults) |
Modifier and Type | Method and Description |
---|---|
protected void |
acceptEvent(net.minecraftforge.eventbus.api.Event e)
Accept an arbitrary event for processing by the mod.
|
private void |
afterEvent(LifecycleEventProvider.LifecycleEvent lifecycleEvent) |
private void |
beforeEvent(LifecycleEventProvider.LifecycleEvent lifecycleEvent) |
private void |
completeLoading(LifecycleEventProvider.LifecycleEvent lifecycleEvent) |
private void |
constructMod(LifecycleEventProvider.LifecycleEvent event) |
private java.util.function.Consumer<LifecycleEventProvider.LifecycleEvent> |
dummy() |
private void |
fireEvent(LifecycleEventProvider.LifecycleEvent lifecycleEvent) |
net.minecraftforge.eventbus.api.IEventBus |
getEventBus() |
java.lang.Object |
getMod() |
private void |
initMod(LifecycleEventProvider.LifecycleEvent lifecycleEvent) |
boolean |
matches(java.lang.Object mod)
Does this mod match the supplied mod?
|
private void |
onEventFailed(net.minecraftforge.eventbus.api.IEventBus iEventBus,
net.minecraftforge.eventbus.api.Event event,
net.minecraftforge.eventbus.api.IEventListener[] iEventListeners,
int i,
java.lang.Throwable throwable) |
private void |
preinitMod(LifecycleEventProvider.LifecycleEvent lifecycleEvent) |
addConfig, dispatchConfigEvent, getCurrentState, getCustomExtension, getModId, getModInfo, getNamespace, registerExtensionPoint, transitionState
private static final org.apache.logging.log4j.Logger LOGGER
private final net.minecraftforge.forgespi.language.ModFileScanData scanResults
private final net.minecraftforge.eventbus.api.IEventBus eventBus
private java.lang.Object modInstance
private final java.lang.Class<?> modClass
public FMLModContainer(net.minecraftforge.forgespi.language.IModInfo info, java.lang.String className, java.lang.ClassLoader modClassLoader, net.minecraftforge.forgespi.language.ModFileScanData modFileScanResults)
private void completeLoading(LifecycleEventProvider.LifecycleEvent lifecycleEvent)
private void initMod(LifecycleEventProvider.LifecycleEvent lifecycleEvent)
private java.util.function.Consumer<LifecycleEventProvider.LifecycleEvent> dummy()
private void onEventFailed(net.minecraftforge.eventbus.api.IEventBus iEventBus, net.minecraftforge.eventbus.api.Event event, net.minecraftforge.eventbus.api.IEventListener[] iEventListeners, int i, java.lang.Throwable throwable)
private void beforeEvent(LifecycleEventProvider.LifecycleEvent lifecycleEvent)
private void fireEvent(LifecycleEventProvider.LifecycleEvent lifecycleEvent)
private void afterEvent(LifecycleEventProvider.LifecycleEvent lifecycleEvent)
private void preinitMod(LifecycleEventProvider.LifecycleEvent lifecycleEvent)
private void constructMod(LifecycleEventProvider.LifecycleEvent event)
public boolean matches(java.lang.Object mod)
ModContainer
matches
in class ModContainer
mod
- to comparepublic java.lang.Object getMod()
getMod
in class ModContainer
public net.minecraftforge.eventbus.api.IEventBus getEventBus()
protected void acceptEvent(net.minecraftforge.eventbus.api.Event e)
ModContainer
acceptEvent
in class ModContainer
e
- Event to accept