public class PlayerInputEvent extends Event implements Cancellable
Constructor and Description |
---|
PlayerInputEvent(Player player,
InputType inputType)
Create a new event.
|
Modifier and Type | Method and Description |
---|---|
InputType |
getInputType()
Get the type of input sent.
|
Player |
getPlayer()
Get the player that sent the input.
|
boolean |
isCancelled()
Returns whether the event has been cancelled.
|
void |
setCancelled(boolean cancelled)
Set whether the event has been cancelled.
|
public Player getPlayer()
public InputType getInputType()
public boolean isCancelled()
Cancellable
isCancelled
in interface Cancellable
public void setCancelled(boolean cancelled)
Cancellable
setCancelled
in interface Cancellable
cancelled
- true if cancelled