Class KeyPressEvent
java.lang.Object
org.bukkit.event.Event
nl.sbdeveloper.vehiclesplus.api.events.Event
nl.sbdeveloper.vehiclesplus.api.events.impl.KeyPressEvent
This event gets fired when a supported key is pressed.
It listens to W, A, S, D, Space and Shift.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorsConstructorDescriptionKeyPressEvent
(org.bukkit.entity.Player player, MovementInput input) Construct a newKeyPressEvent
. -
Method Summary
Modifier and TypeMethodDescriptiongetInput()
TheMovementInput
, containing the pressed keys.org.bukkit.entity.Player
ThePlayer
that pressed the key.Methods inherited from class nl.sbdeveloper.vehiclesplus.api.events.Event
getHandlerList, getHandlers
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
KeyPressEvent
Construct a newKeyPressEvent
.- Parameters:
player
- ThePlayer
that pressed the key.input
- TheMovementInput
, containing the pressed keys.
-
-
Method Details
-
getPlayer
public org.bukkit.entity.Player getPlayer()ThePlayer
that pressed the key. -
getInput
TheMovementInput
, containing the pressed keys.
-