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, ForgeConfigSpec spec) void
registerConfig
(ModConfig.Type type, ForgeConfigSpec spec, String fileName) <T> void
registerExtensionPoint
(ExtensionPoint<T> point, Supplier<T> extension) Register anExtensionPoint
with the mod container.void
setActiveContainer
(ModContainer container, Object languageExtension)
-
Field Details
-
context
-
languageExtension
-
stage
-
activeContainer
-
-
Constructor Details
-
ModLoadingContext
public ModLoadingContext()
-
-
Method Details
-
get
-
setActiveContainer
-
getActiveContainer
-
getActiveNamespace
-
registerExtensionPoint
Register anExtensionPoint
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()
-