Package net.blueva.arcade.api.events
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 TypeMethodDescriptionbooleanChecks if this event has been cancelled.voidsetCancelled(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
-