Package org.spongepowered.mij
Class SharedModLauncher
java.lang.Object
org.spongepowered.mij.SharedModLauncher
ModLauncher and Mixin can only be initialized once.
Consequently, all tests use a single shared transforming class loader.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ClassLoader
getTransformingClassLoader
(String[] launcherArgs) Returns the shared transforming class loader.
-
Constructor Details
-
SharedModLauncher
public SharedModLauncher()
-
-
Method Details
-
getTransformingClassLoader
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
-