Class MixinBootstrap
In development, where (because of the classloader environment at dev time)
it is safe to let a coremod initialise the mixin subsystem, we can perform
initialisation all in one go using the init() method and everything is
fine. However in production the tweaker must be used and the situation is a
little more delicate.
In an ideal world, the mixin tweaker would initialise the environment in its constructor and that would be the end of the story. However we also need to register the additional tweaker for environment to detect the transition from pre-init to default and we cannot do this within the tweaker constructor without triggering a ConcurrentModificationException in the tweaker list. To work around this we register the secondary tweaker from within the mixin tweaker's acceptOptions method instead.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddProxy()Deprecated.use MixinService.getService().beginPhase() insteadstatic MixinPlatformManagerGet the platform managerstatic voidinit()Initialise the mixin subsystem
-
Field Details
-
VERSION
Subsystem version- See Also:
-
-
Method Details
-
addProxy
Deprecated.use MixinService.getService().beginPhase() instead -
getPlatform
Get the platform manager -
init
public static void init()Initialise the mixin subsystem
-