java.lang.Object
mods.thecomputerizer.theimpossiblelibrary.neoforge.core.NeoForgeCoreLoader

public class NeoForgeCoreLoader extends Object
Figures out which version to load on and how to load stuff on it
  • Constructor Details

    • NeoForgeCoreLoader

      public NeoForgeCoreLoader()
  • Method Details

    • addLibraryToGameLayer

      public static void addLibraryToGameLayer(String pkg, String gameLayerName)
      Since the library interacts with GAME layer modules, we need to ensure it is available on the GAME layer
    • bootLoader

      public static ClassLoader bootLoader()
      Should be the ClassLoader for the BOOT layer or the system ClassLoader if Java 8
    • getBootLoadedCoreAPI

      @Nullable public static @Nullable mods.thecomputerizer.theimpossiblelibrary.api.core.CoreAPI getBootLoadedCoreAPI()
    • getLogger

      public static Object getLogger()
    • initCoreAPI

      @Nullable public static @Nullable mods.thecomputerizer.theimpossiblelibrary.api.core.CoreAPI initCoreAPI()
      Returns a CoreAPI instance on the BOOT layer ClassLoader. Initializes the source if necessary
    • initCoreAPI

      @Nullable public static @Nullable mods.thecomputerizer.theimpossiblelibrary.api.core.CoreAPI initCoreAPI(ClassLoader loader)
      Returns a CoreAPI instance on the input ClassLoader. Initializes the source if necessary
    • isJava21

      public static boolean isJava21()
    • layerClassLoader

      public static ClassLoader layerClassLoader(cpw.mods.modlauncher.api.IModuleLayerManager.Layer layer)
      Tries to get the ClassLoader instance associated with the given layer name
    • verifyModule

      public static void verifyModule(String className, net.neoforged.neoforgespi.language.IModInfo info, Object moduleLayer)