Package com.sk89q.worldedit.event
Interface Cancellable
- All Known Implementing Classes:
AbstractCancellable
,BlockInteractEvent
,CommandEvent
,PlayerInputEvent
public interface Cancellable
Marks an event that has a cancellable state. The meaning of cancellation
depends on the event.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether the event has been cancelled.void
setCancelled(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
-