public enum KeyConflictContext extends java.lang.Enum<KeyConflictContext> implements IKeyConflictContext
Enum Constant and Description |
---|
GUI
Gui key bindings are only used when a
GuiScreen is open. |
IN_GAME
In-game key bindings are only used when a
GuiScreen is not open. |
UNIVERSAL
Universal key bindings are used in every context and will conflict with any other context.
|
Modifier and Type | Method and Description |
---|---|
static KeyConflictContext |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static KeyConflictContext[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
conflicts, isActive
public static final KeyConflictContext UNIVERSAL
public static final KeyConflictContext GUI
GuiScreen
is open.public static final KeyConflictContext IN_GAME
GuiScreen
is not open.public static KeyConflictContext[] values()
for (KeyConflictContext c : KeyConflictContext.values()) System.out.println(c);
public static KeyConflictContext 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 null