public static enum MixinEnvironment.Feature extends java.lang.Enum<MixinEnvironment.Feature>
| Enum Constant and Description |
|---|
INJECTORS_IN_INTERFACE_MIXINS
Support for the use of injector annotations in interface mixins
|
UNSAFE_INJECTION
Supports the unsafe flag on @At annotations to
facilitate hassle-free constructor injections.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
exists(java.lang.String featureId)
Check whether a particular feature exists in this mixin version, even
if it's not currently available
|
static MixinEnvironment.Feature |
get(java.lang.String featureId)
Convenience function which returns a Feature constant based on the
feature id, but returns null instead of throwing an exception.
|
static boolean |
isActive(java.lang.String featureId)
Check whether a particular feature is available and enabled
|
boolean |
isAvailable()
Get whether this feature is available in the current runtime
environment
|
boolean |
isEnabled()
Get whether this feature is supported in the current environment and
compatibility level
|
static MixinEnvironment.Feature |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MixinEnvironment.Feature[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MixinEnvironment.Feature UNSAFE_INJECTION
public static final MixinEnvironment.Feature INJECTORS_IN_INTERFACE_MIXINS
public static MixinEnvironment.Feature[] values()
for (MixinEnvironment.Feature c : MixinEnvironment.Feature.values()) System.out.println(c);
public static MixinEnvironment.Feature valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean isAvailable()
public boolean isEnabled()
public static MixinEnvironment.Feature get(java.lang.String featureId)
featureId - Feature ID (enum constant name) to check forpublic static boolean exists(java.lang.String featureId)
featureId - Feature ID (enum constant name) to check forpublic static boolean isActive(java.lang.String featureId)
featureId - Feature ID (enum constant name) to check for