Package net.okocraft.box.api.event
Interface Cancellable
- All Known Implementing Classes:
BoxCraftEvent,MenuClickEvent,MenuOpenEvent
public interface Cancellable
An interface that indicates the cancel status of the event.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanGets if the event has been cancelled.voidsetCancelled(boolean cancel) Sets the cancel status of the event.
-
Method Details
-
isCancelled
boolean isCancelled()Gets if the event has been cancelled.- Returns:
trueif canceled,falseotherwise.
-
setCancelled
void setCancelled(boolean cancel) Sets the cancel status of the event.- Parameters:
cancel-trueto cancel,falseto not.
-