Package org.spongepowered.asm.mixin
Class MixinEnvironment.Phase
java.lang.Object
org.spongepowered.asm.mixin.MixinEnvironment.Phase
- Enclosing class:
MixinEnvironment
Environment phase, deliberately not implemented as an enum
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MixinEnvironment.Phase"Default" phase, during runtimestatic final MixinEnvironment.Phase"Initialisation" phase, after FML's deobf transformer has loadedstatic final MixinEnvironment.Phase"Pre initialisation" phase, everything before the tweak system begins to load the game -
Method Summary
Modifier and TypeMethodDescriptionstatic MixinEnvironment.PhaseGet a phase by name, returns null if no phases exist with the specified namebooleantoString()
-
Field Details
-
PREINIT
"Pre initialisation" phase, everything before the tweak system begins to load the game -
INIT
"Initialisation" phase, after FML's deobf transformer has loaded -
DEFAULT
"Default" phase, during runtime
-
-
Method Details
-
forName
Get a phase by name, returns null if no phases exist with the specified name- Parameters:
name- phase name to lookup- Returns:
- phase object or null if non existent
-
toString
-
hasReached
public boolean hasReached()- Returns:
- if phase has been reached in the global mixin environment
-