public enum KeyModifier extends java.lang.Enum<KeyModifier>
Modifier and Type | Field and Description |
---|---|
static KeyModifier[] |
MODIFIER_VALUES |
Modifier and Type | Method and Description |
---|---|
static KeyModifier |
getActiveModifier() |
abstract java.lang.String |
getLocalizedComboName(InputMappings.Input key,
java.util.function.Supplier<java.lang.String> defaultLogic) |
abstract boolean |
isActive(IKeyConflictContext conflictContext) |
static boolean |
isKeyCodeModifier(InputMappings.Input key) |
abstract boolean |
matches(InputMappings.Input key) |
static KeyModifier |
valueFromString(java.lang.String stringValue) |
static KeyModifier |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static KeyModifier[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KeyModifier CONTROL
public static final KeyModifier SHIFT
public static final KeyModifier ALT
public static final KeyModifier NONE
public static final KeyModifier[] MODIFIER_VALUES
public static KeyModifier[] values()
for (KeyModifier c : KeyModifier.values()) System.out.println(c);
public static KeyModifier 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 static KeyModifier getActiveModifier()
public static boolean isKeyCodeModifier(InputMappings.Input key)
public static KeyModifier valueFromString(java.lang.String stringValue)
public abstract boolean matches(InputMappings.Input key)
public abstract boolean isActive(@Nullable IKeyConflictContext conflictContext)
public abstract java.lang.String getLocalizedComboName(InputMappings.Input key, java.util.function.Supplier<java.lang.String> defaultLogic)