Class SharedModLauncher

java.lang.Object
org.spongepowered.mij.SharedModLauncher

public class SharedModLauncher extends Object
ModLauncher and Mixin can only be initialized once. Consequently, all tests use a single shared transforming class loader.
  • Constructor Details

    • SharedModLauncher

      public SharedModLauncher()
  • Method Details

    • getTransformingClassLoader

      public static ClassLoader getTransformingClassLoader(String[] launcherArgs)
      Returns the shared transforming class loader. If not yet initialized, ModLauncher is bootstrapped using the provided arguments. When ModLauncher is already initialized, the provided arguments are ignored.
      Parameters:
      launcherArgs - The arguments passed to ModLauncher's entry point
      Returns:
      The transforming class loader