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
Represents an event that can be cancelled
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Check if the event is cancelledvoid
setCancelled
(boolean cancelled) Set the event to 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 interfaceCancellable
- 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 interfaceCancellable
- Parameters:
cancelled
- true if the event should be cancelled
-