Enum Class Key

java.lang.Object
java.lang.Enum<Key>
net.risingworld.api.utils.Key
All Implemented Interfaces:
Serializable, Comparable<Key>, Constable

public enum Key extends Enum<Key>
Supported keys for player input.
  • Enum Constant Details

    • None

      public static final Key None
    • Space

      public static final Key Space
    • Enter

      public static final Key Enter
    • Tab

      public static final Key Tab
    • Backquote

      public static final Key Backquote
    • Quote

      public static final Key Quote
    • Semicolon

      public static final Key Semicolon
    • Comma

      public static final Key Comma
    • Period

      public static final Key Period
    • Slash

      public static final Key Slash
    • Backslash

      public static final Key Backslash
    • LeftBracket

      public static final Key LeftBracket
    • RightBracket

      public static final Key RightBracket
    • Minus

      public static final Key Minus
    • Equals

      public static final Key Equals
    • A

      public static final Key A
    • B

      public static final Key B
    • C

      public static final Key C
    • D

      public static final Key D
    • E

      public static final Key E
    • F

      public static final Key F
    • G

      public static final Key G
    • H

      public static final Key H
    • I

      public static final Key I
    • J

      public static final Key J
    • K

      public static final Key K
    • L

      public static final Key L
    • M

      public static final Key M
    • N

      public static final Key N
    • O

      public static final Key O
    • P

      public static final Key P
    • Q

      public static final Key Q
    • R

      public static final Key R
    • S

      public static final Key S
    • T

      public static final Key T
    • U

      public static final Key U
    • V

      public static final Key V
    • W

      public static final Key W
    • X

      public static final Key X
    • Y

      public static final Key Y
    • Z

      public static final Key Z
    • Digit1

      public static final Key Digit1
    • Digit2

      public static final Key Digit2
    • Digit3

      public static final Key Digit3
    • Digit4

      public static final Key Digit4
    • Digit5

      public static final Key Digit5
    • Digit6

      public static final Key Digit6
    • Digit7

      public static final Key Digit7
    • Digit8

      public static final Key Digit8
    • Digit9

      public static final Key Digit9
    • Digit0

      public static final Key Digit0
    • LeftShift

      public static final Key LeftShift
    • RightShift

      public static final Key RightShift
    • LeftAlt

      public static final Key LeftAlt
    • RightAlt

      public static final Key RightAlt
    • AltGr

      public static final Key AltGr
    • LeftCtrl

      public static final Key LeftCtrl
    • RightCtrl

      public static final Key RightCtrl
    • LeftMeta

      public static final Key LeftMeta
    • RightMeta

      public static final Key RightMeta
    • LeftWindows

      public static final Key LeftWindows
    • RightWindows

      public static final Key RightWindows
    • LeftApple

      public static final Key LeftApple
    • RightApple

      public static final Key RightApple
    • LeftCommand

      public static final Key LeftCommand
    • RightCommand

      public static final Key RightCommand
    • ContextMenu

      public static final Key ContextMenu
    • Escape

      public static final Key Escape
    • LeftArrow

      public static final Key LeftArrow
    • RightArrow

      public static final Key RightArrow
    • UpArrow

      public static final Key UpArrow
    • DownArrow

      public static final Key DownArrow
    • Backspace

      public static final Key Backspace
    • PageDown

      public static final Key PageDown
    • PageUp

      public static final Key PageUp
    • Home

      public static final Key Home
    • End

      public static final Key End
    • Insert

      public static final Key Insert
    • Delete

      public static final Key Delete
    • CapsLock

      public static final Key CapsLock
    • NumLock

      public static final Key NumLock
    • PrintScreen

      public static final Key PrintScreen
    • ScrollLock

      public static final Key ScrollLock
    • Pause

      public static final Key Pause
    • NumpadEnter

      public static final Key NumpadEnter
    • NumpadDivide

      public static final Key NumpadDivide
    • NumpadMultiply

      public static final Key NumpadMultiply
    • NumpadPlus

      public static final Key NumpadPlus
    • NumpadMinus

      public static final Key NumpadMinus
    • NumpadPeriod

      public static final Key NumpadPeriod
    • NumpadEquals

      public static final Key NumpadEquals
    • Numpad0

      public static final Key Numpad0
    • Numpad1

      public static final Key Numpad1
    • Numpad2

      public static final Key Numpad2
    • Numpad3

      public static final Key Numpad3
    • Numpad4

      public static final Key Numpad4
    • Numpad5

      public static final Key Numpad5
    • Numpad6

      public static final Key Numpad6
    • Numpad7

      public static final Key Numpad7
    • Numpad8

      public static final Key Numpad8
    • Numpad9

      public static final Key Numpad9
    • F1

      public static final Key F1
    • F2

      public static final Key F2
    • F3

      public static final Key F3
    • F4

      public static final Key F4
    • F5

      public static final Key F5
    • F6

      public static final Key F6
    • F7

      public static final Key F7
    • F8

      public static final Key F8
    • F9

      public static final Key F9
    • F10

      public static final Key F10
    • F11

      public static final Key F11
    • F12

      public static final Key F12
    • OEM1

      public static final Key OEM1
    • OEM2

      public static final Key OEM2
    • OEM3

      public static final Key OEM3
    • OEM4

      public static final Key OEM4
    • OEM5

      public static final Key OEM5
    • IMESelected

      public static final Key IMESelected
  • Method Details

    • values

      public static Key[] 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

      public static Key valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • fromKeyCode

      public static Key fromKeyCode(int keyCode)
    • getKeyCode

      public int getKeyCode()
    • parse

      public Key parse(String s)