Package top.focess.qq.api.event
Interface Cancellable
-
- All Known Implementing Classes:
CommandPrepostEvent
public interface CancellableThis class indicates that the implemented event class is cancellable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidcancel()Cancel the eventbooleanisCancelled()Indicate this event is cancelledvoidsetCancelled(boolean cancelled)Set whether this event is cancelled or not
-
-
-
Method Detail
-
isCancelled
boolean isCancelled()
Indicate this event is cancelled- Returns:
- true if this event is cancelled, false otherwise
-
setCancelled
void setCancelled(boolean cancelled)
Set whether this event is cancelled or not- Parameters:
cancelled- true if cancel this event, false not cancel this event
-
cancel
default void cancel()
Cancel the event
-
-