Class MixinPlatformManager
java.lang.Object
org.spongepowered.asm.launch.platform.MixinPlatformManager
Handler for platform-specific behaviour required in different mixin
environments.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal MixinContainer
addContainer
(IContainerHandle handle) Add a new container to this platform and return the new container (or an existing container if the handle was previously registered)Queries all containers for launch target, returns null if no containers specify a launch targetGet the phase provider classes from the primary containervoid
init()
Initialise the platform managerfinal void
inject()
Initialise the primary container and dispatch inject to all containersfinal void
prepare
(CommandLineOptions args) Prepare all containers in this platform
-
Constructor Details
-
MixinPlatformManager
public MixinPlatformManager()
-
-
Method Details
-
init
public void init()Initialise the platform manager -
getPhaseProviderClasses
Get the phase provider classes from the primary container -
addContainer
Add a new container to this platform and return the new container (or an existing container if the handle was previously registered)- Parameters:
handle
- Container handle to add- Returns:
- container for specified resource handle
-
prepare
Prepare all containers in this platform- Parameters:
args
- command-line arguments from tweaker
-
inject
public final void inject()Initialise the primary container and dispatch inject to all containers -
getLaunchTarget
Queries all containers for launch target, returns null if no containers specify a launch target
-