Class ModLoadingContext


  • public class ModLoadingContext
    extends java.lang.Object
    • Constructor Detail

      • ModLoadingContext

        public ModLoadingContext()
    • Method Detail

      • setActiveContainer

        public void setActiveContainer​(ModContainer container,
                                       java.lang.Object languageExtension)
      • getActiveContainer

        public ModContainer getActiveContainer()
      • getActiveNamespace

        public java.lang.String getActiveNamespace()
      • registerExtensionPoint

        public <T> void registerExtensionPoint​(ExtensionPoint<T> point,
                                               java.util.function.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
      • extension

        public <T> T extension()