Package net.neoforged.fml.javafmlmod
Class FMLModContainer
java.lang.Object
net.neoforged.fml.ModContainer
net.neoforged.fml.javafmlmod.FMLModContainer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final net.neoforged.bus.api.IEventBusprivate final Moduleprivate static final org.apache.logging.log4j.Markerprivate static final org.apache.logging.log4j.Loggerprivate final ModFileScanDataFields inherited from class net.neoforged.fml.ModContainer
extensionPoints, modId, modInfo, namespace -
Constructor Summary
ConstructorsConstructorDescriptionFMLModContainer(IModInfo info, List<String> entrypoints, ModFileScanData modFileScanResults, ModuleLayer gameLayer) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidFunction invoked by FML to construct the mod, right before the dispatch ofFMLConstructModEvent.net.neoforged.bus.api.IEventBusReturns the event bus for this mod, if available.private voidonEventFailed(net.neoforged.bus.api.IEventBus iEventBus, net.neoforged.bus.api.Event event, net.neoforged.bus.api.EventListener[] iEventListeners, int i, Throwable throwable) Methods inherited from class net.neoforged.fml.ModContainer
acceptEvent, acceptEvent, getCustomExtension, getModId, getModInfo, getNamespace, registerConfig, registerConfig, registerExtensionPoint, registerExtensionPoint
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
LOADING
private static final org.apache.logging.log4j.Marker LOADING -
scanResults
-
eventBus
private final net.neoforged.bus.api.IEventBus eventBus -
modClasses
-
layer
-
-
Constructor Details
-
FMLModContainer
public FMLModContainer(IModInfo info, List<String> entrypoints, ModFileScanData modFileScanResults, ModuleLayer gameLayer)
-
-
Method Details
-
onEventFailed
private void onEventFailed(net.neoforged.bus.api.IEventBus iEventBus, net.neoforged.bus.api.Event event, net.neoforged.bus.api.EventListener[] iEventListeners, int i, Throwable throwable) -
constructMod
protected void constructMod()Description copied from class:ModContainerFunction invoked by FML to construct the mod, right before the dispatch ofFMLConstructModEvent.- Overrides:
constructModin classModContainer
-
getEventBus
public net.neoforged.bus.api.IEventBus getEventBus()Description copied from class:ModContainerReturns the event bus for this mod, if available.Not all mods have an event bus!
- Specified by:
getEventBusin classModContainer- Returns:
- the event bus for this mod, if available
-