Package net.risingworld.api.utils
Enum Class Key
- All Implemented Interfaces:
Serializable
,Comparable<Key>
,Constable
Supported keys for player input.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic Key
fromKeyCode
(int keyCode) int
static Key
Returns the enum constant of this class with the specified name.static Key[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
None
-
Space
-
Enter
-
Tab
-
Backquote
-
Quote
-
Semicolon
-
Comma
-
Period
-
Slash
-
Backslash
-
LeftBracket
-
RightBracket
-
Minus
-
Equals
-
A
-
B
-
C
-
D
-
E
-
F
-
G
-
H
-
I
-
J
-
K
-
L
-
M
-
N
-
O
-
P
-
Q
-
R
-
S
-
T
-
U
-
V
-
W
-
X
-
Y
-
Z
-
Digit1
-
Digit2
-
Digit3
-
Digit4
-
Digit5
-
Digit6
-
Digit7
-
Digit8
-
Digit9
-
Digit0
-
LeftShift
-
RightShift
-
LeftAlt
-
RightAlt
-
AltGr
-
LeftCtrl
-
RightCtrl
-
LeftMeta
-
RightMeta
-
LeftWindows
-
RightWindows
-
LeftApple
-
RightApple
-
LeftCommand
-
RightCommand
-
ContextMenu
-
Escape
-
LeftArrow
-
RightArrow
-
UpArrow
-
DownArrow
-
Backspace
-
PageDown
-
PageUp
-
Home
-
End
-
Insert
-
Delete
-
CapsLock
-
NumLock
-
PrintScreen
-
ScrollLock
-
Pause
-
NumpadEnter
-
NumpadDivide
-
NumpadMultiply
-
NumpadPlus
-
NumpadMinus
-
NumpadPeriod
-
NumpadEquals
-
Numpad0
-
Numpad1
-
Numpad2
-
Numpad3
-
Numpad4
-
Numpad5
-
Numpad6
-
Numpad7
-
Numpad8
-
Numpad9
-
F1
-
F2
-
F3
-
F4
-
F5
-
F6
-
F7
-
F8
-
F9
-
F10
-
F11
-
F12
-
OEM1
-
OEM2
-
OEM3
-
OEM4
-
OEM5
-
IMESelected
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
fromKeyCode
-
getKeyCode
public int getKeyCode() -
parse
-