Package com.sk89q.worldedit.event
Interface Cancellable
- All Known Implementing Classes:
AbstractCancellable,ActorSaveClipboardEvent,BlockInteractEvent,CommandEvent,EditSessionEvent,PasteEvent,PlayerInputEvent
public interface Cancellable
Marks an event that has a cancellable state. The meaning of cancellation
depends on the event.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether the event has been cancelled.voidsetCancelled(boolean cancelled) Set whether the event has been cancelled.
-
Method Details
-
isCancelled
boolean isCancelled()Returns whether the event has been cancelled.- Returns:
- true if cancelled
-
setCancelled
void setCancelled(boolean cancelled) Set whether the event has been cancelled.- Parameters:
cancelled- true if cancelled
-