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)
    • getActiveContainer

      public ModContainer getActiveContainer()
    • getActiveNamespace

      public String getActiveNamespace()
    • registerExtensionPoint

      public <T extends Record & IExtensionPoint<T>> void registerExtensionPoint(Class<? extends IExtensionPoint<T>> point, Supplier<T> extension)
      Register an IExtensionPoint 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, IConfigSpec<?> spec)
    • registerConfig

      public void registerConfig(ModConfig.Type type, IConfigSpec<?> spec, String fileName)
    • extension

      public <T> T extension()