Package net.minecraftforge.fml
Class ModLoadingContext
java.lang.Object
net.minecraftforge.fml.ModLoadingContext
-
Field Summary
Modifier and TypeFieldDescriptionprivate ModContainer
private static ThreadLocal<ModLoadingContext>
private Object
private ModLoadingStage
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> T
static ModLoadingContext
get()
void
registerConfig(ModConfig.Type type, IConfigSpec<?> spec)
void
registerConfig(ModConfig.Type type, IConfigSpec<?> spec, String fileName)
<T extends Record & IExtensionPoint<T>>
voidregisterExtensionPoint(Class<? extends IExtensionPoint<T>> point, Supplier<T> extension)
Register anIExtensionPoint
with the mod container.void
setActiveContainer(ModContainer container)
-
Field Details
-
context
-
languageExtension
-
stage
-
activeContainer
-
-
Constructor Details
-
ModLoadingContext
public ModLoadingContext()
-
-
Method Details
-
get
-
setActiveContainer
-
getActiveContainer
-
getActiveNamespace
-
registerExtensionPoint
public <T extends Record & IExtensionPoint<T>> void registerExtensionPoint(Class<? extends IExtensionPoint<T>> point, Supplier<T> extension)Register anIExtensionPoint
with the mod container.- Type Parameters:
T
- The type signature of the extension operator- Parameters:
point
- The extension point to registerextension
- An extension operator
-
registerConfig
-
registerConfig
-
extension
public <T> T extension()
-