Class PlayerInputEvent

java.lang.Object
com.sk89q.worldedit.event.Event
com.sk89q.worldedit.event.platform.PlayerInputEvent
All Implemented Interfaces:
Cancellable

public class PlayerInputEvent extends Event implements Cancellable
Raised whenever a player sends input.
  • Constructor Details

    • PlayerInputEvent

      public PlayerInputEvent(Player player, InputType inputType)
      Create a new event.
      Parameters:
      player - the player
      inputType - the input type
  • Method Details

    • getPlayer

      public Player getPlayer()
      Get the player that sent the input.
      Returns:
      the player
    • getInputType

      public InputType 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 interface Cancellable
      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 interface Cancellable
      Parameters:
      cancelled - true if cancelled