Class FMLModContainer
- java.lang.Object
-
- net.minecraftforge.fml.ModContainer
-
- net.minecraftforge.fml.javafmlmod.FMLModContainer
-
public class FMLModContainer extends ModContainer
-
-
Field Summary
Fields Modifier and Type Field Description private net.minecraftforge.eventbus.api.IEventBuseventBusprivate static org.apache.logging.log4j.LoggerLOGGERprivate java.lang.Class<?>modClassprivate java.lang.ObjectmodInstanceprivate net.minecraftforge.forgespi.language.ModFileScanDatascanResults-
Fields inherited from class net.minecraftforge.fml.ModContainer
activityMap, configHandler, configs, contextExtension, extensionPoints, modId, modInfo, modLoadingStage, namespace
-
-
Constructor Summary
Constructors Constructor Description FMLModContainer(net.minecraftforge.forgespi.language.IModInfo info, java.lang.String className, java.lang.ClassLoader modClassLoader, net.minecraftforge.forgespi.language.ModFileScanData modFileScanResults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <T extends net.minecraftforge.eventbus.api.Event & IModBusEvent>
voidacceptEvent(T e)Accept an arbitrary event for processing by the mod.private voidconstructMod()net.minecraftforge.eventbus.api.IEventBusgetEventBus()java.lang.ObjectgetMod()booleanmatches(java.lang.Object mod)Does this mod match the supplied mod?private voidonEventFailed(net.minecraftforge.eventbus.api.IEventBus iEventBus, net.minecraftforge.eventbus.api.Event event, net.minecraftforge.eventbus.api.IEventListener[] iEventListeners, int i, java.lang.Throwable throwable)-
Methods inherited from class net.minecraftforge.fml.ModContainer
addConfig, buildTransitionHandler, dispatchConfigEvent, getCurrentState, getCustomExtension, getModId, getModInfo, getNamespace, registerExtensionPoint
-
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
scanResults
private final net.minecraftforge.forgespi.language.ModFileScanData scanResults
-
eventBus
private final net.minecraftforge.eventbus.api.IEventBus eventBus
-
modInstance
private java.lang.Object modInstance
-
modClass
private final java.lang.Class<?> modClass
-
-
Method Detail
-
onEventFailed
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)
-
constructMod
private void constructMod()
-
matches
public boolean matches(java.lang.Object mod)
Description copied from class:ModContainerDoes this mod match the supplied mod?- Specified by:
matchesin classModContainer- Parameters:
mod- to compare- Returns:
- if the mod matches
-
getMod
public java.lang.Object getMod()
- Specified by:
getModin classModContainer- Returns:
- the mod object instance
-
getEventBus
public net.minecraftforge.eventbus.api.IEventBus getEventBus()
-
acceptEvent
protected <T extends net.minecraftforge.eventbus.api.Event & IModBusEvent> void acceptEvent(T e)
Description copied from class:ModContainerAccept an arbitrary event for processing by the mod. Probably posted to an event bus in the lower level container.- Overrides:
acceptEventin classModContainer- Parameters:
e- Event to accept
-
-