Package com.sk89q.worldedit.event
Class AbstractCancellable
java.lang.Object
com.sk89q.worldedit.event.Event
com.sk89q.worldedit.event.AbstractCancellable
- All Implemented Interfaces:
Cancellable
- Direct Known Subclasses:
CommandEvent
An abstract implementation of
Cancellable
that has all
of Cancellable
's methods implemented.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether the event has been cancelled.void
setCancelled
(boolean cancelled) Set whether the event has been cancelled.
-
Constructor Details
-
AbstractCancellable
public AbstractCancellable()
-
-
Method Details
-
isCancelled
public boolean isCancelled()Description copied from interface:Cancellable
Returns whether the event has been cancelled.- Specified by:
isCancelled
in interfaceCancellable
- Returns:
- true if cancelled
-
setCancelled
public void setCancelled(boolean cancelled) Description copied from interface:Cancellable
Set whether the event has been cancelled.- Specified by:
setCancelled
in interfaceCancellable
- Parameters:
cancelled
- true if cancelled
-