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 SummaryModifier and TypeMethodDescriptionbooleanGets the cancellation state of this event.voidsetCancelled(boolean cancel) Sets the cancellation state of this event.
- 
Method Details- 
isCancelledboolean 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
 
- 
setCancelledSets 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
 
 
-