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()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancelled)
CancellablesetCancelled in interface Cancellablecancelled - true if cancelledCopyright © 2010-2014. All Rights Reserved.