Class FMLModContainer
java.lang.Object
net.minecraftforge.fml.ModContainer
net.minecraftforge.fml.javafmlmod.FMLModContainer
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final net.minecraftforge.eventbus.api.IEventBusprivate static final org.apache.logging.log4j.Markerprivate static final org.apache.logging.log4j.Loggerprivate final Class<?>private Objectprivate final net.minecraftforge.forgespi.language.ModFileScanDataFields inherited from class net.minecraftforge.fml.ModContaineractivityMap, configHandler, configs, contextExtension, extensionPoints, modId, modInfo, modLoadingStage, namespace
- 
Constructor SummaryConstructorsConstructorDescriptionFMLModContainer(net.minecraftforge.forgespi.language.IModInfo info, String className, net.minecraftforge.forgespi.language.ModFileScanData modFileScanResults, ModuleLayer gameLayer) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected <T extends net.minecraftforge.eventbus.api.Event & IModBusEvent>
 voidacceptEvent(T e) Accept an arbitrary event for processing by the mod.private voidnet.minecraftforge.eventbus.api.IEventBusgetMod()booleanDoes 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, Throwable throwable) Methods inherited from class net.minecraftforge.fml.ModContaineraddConfig, buildTransitionHandler, dispatchConfigEvent, getCurrentState, getCustomExtension, getModId, getModInfo, getNamespace, registerExtensionPoint
- 
Field Details- 
LOGGERprivate static final org.apache.logging.log4j.Logger LOGGER
- 
LOADINGprivate static final org.apache.logging.log4j.Marker LOADING
- 
scanResultsprivate final net.minecraftforge.forgespi.language.ModFileScanData scanResults
- 
eventBusprivate final net.minecraftforge.eventbus.api.IEventBus eventBus
- 
modInstance
- 
modClass
 
- 
- 
Constructor Details- 
FMLModContainerpublic FMLModContainer(net.minecraftforge.forgespi.language.IModInfo info, String className, net.minecraftforge.forgespi.language.ModFileScanData modFileScanResults, ModuleLayer gameLayer) 
 
- 
- 
Method Details- 
onEventFailedprivate void onEventFailed(net.minecraftforge.eventbus.api.IEventBus iEventBus, net.minecraftforge.eventbus.api.Event event, net.minecraftforge.eventbus.api.IEventListener[] iEventListeners, int i, Throwable throwable) 
- 
constructModprivate void constructMod()
- 
matchesDescription copied from class:ModContainerDoes this mod match the supplied mod?- Specified by:
- matchesin class- ModContainer
- Parameters:
- mod- to compare
- Returns:
- if the mod matches
 
- 
getMod- Specified by:
- getModin class- ModContainer
- Returns:
- the mod object instance
 
- 
getEventBuspublic net.minecraftforge.eventbus.api.IEventBus getEventBus()
- 
acceptEventDescription 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 class- ModContainer
- Parameters:
- e- Event to accept
 
 
-