Class PlayerInputEvent
java.lang.Object
com.sk89q.worldedit.event.Event
com.sk89q.worldedit.event.platform.PlayerInputEvent
- All Implemented Interfaces:
Cancellable
Raised whenever a player sends input.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the type of input sent.Get the player that sent the input.boolean
Returns whether the event has been cancelled.void
setCancelled
(boolean cancelled) Set whether the event has been cancelled.
-
Constructor Details
-
PlayerInputEvent
Create a new event.- Parameters:
player
- the playerinputType
- the input type
-
-
Method Details
-
getPlayer
Get the player that sent the input.- Returns:
- the player
-
getInputType
Get the type of input sent.- Returns:
- the input sent
-
isCancelled
public boolean isCancelled()Description copied from interface:Cancellable
Returns whether the event has been cancelled.- Specified by:
isCancelled
in interfaceCancellable
- Returns:
- true if cancelled
-
setCancelled
public void setCancelled(boolean cancelled) Description copied from interface:Cancellable
Set whether the event has been cancelled.- Specified by:
setCancelled
in interfaceCancellable
- Parameters:
cancelled
- true if cancelled
-