Uses of Enum Class
net.risingworld.api.utils.Key
Packages that use Key
Package
Description
-
Uses of Key in net.risingworld.api.events.player
Methods in net.risingworld.api.events.player that return Key -
Uses of Key in net.risingworld.api.objects
Methods in net.risingworld.api.objects that return KeyModifier and TypeMethodDescriptionKey[]
Player.getRegisteredKeys
(boolean global) Gets all keys that are registered by this plugin.Methods in net.risingworld.api.objects with parameters of type KeyModifier and TypeMethodDescriptionvoid
Player.disableClientsideKeys
(Key... keys) Disables certain game keys for the client.void
Player.enableClientsideKeys
(Key... keys) Re-enables certain keys which have been disabled by callingPlayer.disableClientsideKeys(net.risingworld.api.utils.Key...)
.boolean
Player.isKeyPressed
(Key key) Checks if a particular key is currently pressed.boolean
Player.isKeyRegistered
(Key key, boolean global) Checks if a particular key is registered, i.e the client listens for input.void
Player.registerKeys
(Key... keys) Defines key inputs the client should forward to the server.void
Releases input from a particular key.void
Player.unregisterKeys
(Key... keys) Unregisters one or more keys, so the client no longer forwards input from these keys to the server. -
Uses of Key in net.risingworld.api.utils
Methods in net.risingworld.api.utils that return KeyModifier and TypeMethodDescriptionstatic Key
Key.fromKeyCode
(int keyCode) static Key
Returns the enum constant of this class with the specified name.static Key[]
Key.values()
Returns an array containing the constants of this enum class, in the order they are declared.