Class MixinBootstrap
public abstract class MixinBootstrap
extends java.lang.Object
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 Modifier and Type Field Description static java.lang.StringVERSIONSubsystem version -
Method Summary
Modifier and Type Method Description static voidaddProxy()Deprecated.use MixinService.getService().beginPhase() insteadstatic MixinPlatformManagergetPlatform()Get the platform managerstatic voidinit()Initialise the mixin subsystemMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
VERSION
public static final java.lang.String VERSIONSubsystem version- See Also:
- Constant Field Values
-
-
Method Details
-
addProxy
@Deprecated public static void addProxy()Deprecated.use MixinService.getService().beginPhase() instead -
getPlatform
Get the platform manager -
init
public static void init()Initialise the mixin subsystem
-