Class LowCodeModContainer
java.lang.Object
net.minecraftforge.fml.ModContainer
net.minecraftforge.fml.lowcodemod.LowCodeModContainer
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
private Object
private final net.minecraftforge.forgespi.language.ModFileScanData
Fields inherited from class net.minecraftforge.fml.ModContainer
activityMap, configHandler, configs, contextExtension, extensionPoints, modId, modInfo, modLoadingStage, namespace
-
Constructor Summary
ConstructorDescriptionLowCodeModContainer
(net.minecraftforge.forgespi.language.IModInfo info, net.minecraftforge.forgespi.language.ModFileScanData modFileScanResults, ModuleLayer gameLayer) -
Method Summary
Modifier and TypeMethodDescriptionprotected <T extends net.minecraftforge.eventbus.api.Event & IModBusEvent>
voidacceptEvent
(T e) Accept an arbitrary event for processing by the mod.getMod()
boolean
Does this mod match the supplied mod?Methods inherited from class net.minecraftforge.fml.ModContainer
addConfig, buildTransitionHandler, dispatchConfigEvent, getCurrentState, getCustomExtension, getModId, getModInfo, getNamespace, registerExtensionPoint
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
scanResults
private final net.minecraftforge.forgespi.language.ModFileScanData scanResults -
modInstance
-
-
Constructor Details
-
LowCodeModContainer
public LowCodeModContainer(net.minecraftforge.forgespi.language.IModInfo info, net.minecraftforge.forgespi.language.ModFileScanData modFileScanResults, ModuleLayer gameLayer)
-
-
Method Details
-
matches
Description copied from class:ModContainer
Does this mod match the supplied mod?- Specified by:
matches
in classModContainer
- Parameters:
mod
- to compare- Returns:
- if the mod matches
-
getMod
- Specified by:
getMod
in classModContainer
- Returns:
- the mod object instance
-
acceptEvent
Description copied from class:ModContainer
Accept an arbitrary event for processing by the mod. Probably posted to an event bus in the lower level container.- Overrides:
acceptEvent
in classModContainer
- Parameters:
e
- Event to accept
-