Klasse PlayerKeyEvent
java.lang.Object
net.risingworld.api.events.Event
net.risingworld.api.events.player.PlayerEvent
net.risingworld.api.events.player.PlayerKeyEvent
Called when a player presses or releases a key on his keyboard.
Please note that you have to register all keys that need to be forwarded to the API. It's also necessary to enable key input first (see
Example: Register keys and listen for key inputs
Please note that you have to register all keys that need to be forwarded to the API. It's also necessary to enable key input first (see
Player.setListenForKeyInput(boolean)
- Siehe auch:
-
Feldübersicht
-
Methodenübersicht
Von Klasse geerbte Methoden net.risingworld.api.events.player.PlayerEvent
getPlayer
-
Methodendetails
-
getKey
Gets the key that is actuated.- Gibt zurück:
- the key.
- Siehe auch:
-
isPressed
public boolean isPressed()Gets whether the key is pressed or released.- Gibt zurück:
- true if the key was pressed, false if it was released.
-