Interface Cancellable

All Known Implementing Classes:
BoxCraftEvent, MenuClickEvent, MenuOpenEvent

public interface Cancellable
An interface that indicates the cancel status of the event.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Gets if the event has been cancelled.
    void
    setCancelled(boolean cancel)
    Sets the cancel status of the event.
  • Method Details

    • isCancelled

      boolean isCancelled()
      Gets if the event has been cancelled.
      Returns:
      true if canceled, false otherwise.
    • setCancelled

      void setCancelled(boolean cancel)
      Sets the cancel status of the event.
      Parameters:
      cancel - true to cancel, false to not.