Class ModLoadingContext

java.lang.Object
net.minecraftforge.fml.ModLoadingContext

public class ModLoadingContext extends Object
  • Field Details

  • Constructor Details

    • ModLoadingContext

      public ModLoadingContext()
  • Method Details

    • get

      public static ModLoadingContext get()
    • setActiveContainer

      public void setActiveContainer(ModContainer container, Object languageExtension)
    • getActiveContainer

      public ModContainer getActiveContainer()
    • getActiveNamespace

      public String getActiveNamespace()
    • registerExtensionPoint

      public <T> void registerExtensionPoint(ExtensionPoint<T> point, Supplier<T> extension)
      Register an ExtensionPoint with the mod container.
      Type Parameters:
      T - The type signature of the extension operator
      Parameters:
      point - The extension point to register
      extension - An extension operator
    • registerConfig

      public void registerConfig(ModConfig.Type type, ForgeConfigSpec spec)
    • registerConfig

      public void registerConfig(ModConfig.Type type, ForgeConfigSpec spec, String fileName)
    • extension

      public <T> T extension()