Interface Cancellable

All Known Implementing Classes:
PlayerJoinGameEvent

public interface Cancellable
Simple cancellable contract for platform-agnostic events.

Events implementing this interface can be cancelled by event handlers, preventing the default action from occurring.

  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks if this event has been cancelled.
    void
    setCancelled(boolean cancelled)
    Sets the cancellation state of this event.
  • Method Details

    • isCancelled

      boolean isCancelled()
      Checks if this event has been cancelled.
      Returns:
      true if the event is cancelled, false otherwise
    • setCancelled

      void setCancelled(boolean cancelled)
      Sets the cancellation state of this event.
      Parameters:
      cancelled - true to cancel the event, false to allow it