Class CancellableEvent

java.lang.Object
com.craftmend.openaudiomc.api.events.BaseEvent
com.craftmend.openaudiomc.api.events.CancellableEvent
All Implemented Interfaces:
Cancellable
Direct Known Subclasses:
ClientAuthenticationEvent

public class CancellableEvent extends BaseEvent implements Cancellable
Represents an event that can be cancelled
  • Constructor Details

    • CancellableEvent

      public CancellableEvent()
  • Method Details

    • isCancelled

      public boolean isCancelled()
      Description copied from interface: Cancellable
      Check if the event is cancelled
      Specified by:
      isCancelled in interface Cancellable
      Returns:
      true if the event is cancelled
    • setCancelled

      public void setCancelled(boolean cancelled)
      Description copied from interface: Cancellable
      Set the event to cancelled
      Specified by:
      setCancelled in interface Cancellable
      Parameters:
      cancelled - true if the event should be cancelled