Interface CancellableEvent

All Superinterfaces:
Event

public interface CancellableEvent extends Event
Interface for a cancellable event.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks if the event is canceled.
    void
    setCancelled(boolean value)
    Sets the canceled status of the event.

    Methods inherited from interface org.teleight.teleightbots.event.trait.Event

    bot, execute
  • Method Details

    • isCancelled

      boolean isCancelled()
      Checks if the event is canceled.
      Returns:
      a boolean indicating whether the event is canceled
    • setCancelled

      void setCancelled(boolean value)
      Sets the canceled status of the event.
      Parameters:
      value - the new canceled status of the event