Class AbstractCancellable

java.lang.Object
com.sk89q.worldedit.event.AbstractCancellable
All Implemented Interfaces:
Cancellable
Direct Known Subclasses:
CommandEvent

public abstract class AbstractCancellable extends Object implements Cancellable
An abstract implementation of Cancellable that has all of Cancellable's methods implemented.
  • Constructor Details

    • AbstractCancellable

      public AbstractCancellable()
  • Method Details

    • 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