Interface Cancellable
- All Known Implementing Classes:
AccountTransactionEvent
,NonPlayerAccountTransactionEvent
,PlayerAccountTransactionEvent
public interface Cancellable
An interface, which can be implemented by events which should be cancellable.
- Since:
- v1.1.0
- Author:
- MrIvanPlays
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the cancellation state of this event.void
setCancelled
(boolean cancel) Sets the cancellation state of this event.
-
Method Details
-
isCancelled
boolean isCancelled()Gets the cancellation state of this event. A cancelled event may not be executed by the caller, but will still pass to other subscribers.- Returns:
- true if this event is cancelled
-
setCancelled
Sets the cancellation state of this event. A cancelled event may not be executed by the caller, but will still pass to other subscribers.- Parameters:
cancel
- true if you wish to cancel this event
-