public class ModLoadingContext
extends java.lang.Object
| Constructor and Description |
|---|
ModLoadingContext() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
extension() |
static ModLoadingContext |
get() |
ModContainer |
getActiveContainer() |
void |
registerConfig(ModConfig.Type type,
ForgeConfigSpec spec) |
void |
registerConfig(ModConfig.Type type,
ForgeConfigSpec spec,
java.lang.String fileName) |
<T> void |
registerExtensionPoint(ExtensionPoint<T> point,
java.util.function.Supplier<T> extension)
Register an
ExtensionPoint with the mod container. |
void |
setActiveContainer(ModContainer container,
java.lang.Object languageExtension) |
public static ModLoadingContext get()
public void setActiveContainer(ModContainer container, java.lang.Object languageExtension)
public ModContainer getActiveContainer()
public <T> void registerExtensionPoint(ExtensionPoint<T> point, java.util.function.Supplier<T> extension)
ExtensionPoint with the mod container.T - The type signature of the extension operatorpoint - The extension point to registerextension - An extension operatorpublic void registerConfig(ModConfig.Type type, ForgeConfigSpec spec)
public void registerConfig(ModConfig.Type type, ForgeConfigSpec spec, java.lang.String fileName)
public <T> T extension()