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.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
VERSION
Subsystem version
|
| Modifier and Type | Method and Description |
|---|---|
static void |
addProxy()
Deprecated.
use MixinService.getService().beginPhase() instead
|
static MixinPlatformManager |
getPlatform()
Get the platform manager
|
static void |
init()
Initialise the mixin subsystem
|
public static final java.lang.String VERSION
@Deprecated public static void addProxy()
public static MixinPlatformManager getPlatform()
public static void init()