Interface Cancellable

  • All Known Implementing Classes:
    CommandPrepostEvent

    public interface Cancellable
    This class indicates that the implemented event class is cancellable
    • Method Detail

      • isCancelled

        boolean isCancelled()
        Indicate this event is cancelled
        Returns:
        true if this event is cancelled, false otherwise
      • setCancelled

        void setCancelled​(boolean cancelled)
        Set whether this event is cancelled or not
        Parameters:
        cancelled - true if cancel this event, false not cancel this event
      • cancel

        default void cancel()
        Cancel the event