Class AbstractCancellableEvent
java.lang.Object
net.lucypoulton.squirtgun.platform.event.cancellable.AbstractCancellableEvent
- All Implemented Interfaces:
CancellableEvent,Event
- Direct Known Subclasses:
AbstractCancellablePlayerEvent
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.lucypoulton.squirtgun.platform.event.Event
Event.Result -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()Cancels this event.booleanWhether the event has been cancelled by a handler.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.lucypoulton.squirtgun.platform.event.cancellable.CancellableEvent
willContinue
-
Constructor Details
-
AbstractCancellableEvent
public AbstractCancellableEvent()
-
-
Method Details
-
cancel
public void cancel()Description copied from interface:CancellableEventCancels this event.- Specified by:
cancelin interfaceCancellableEvent
-
isCancelled
public boolean isCancelled()Description copied from interface:CancellableEventWhether the event has been cancelled by a handler.- Specified by:
isCancelledin interfaceCancellableEvent
-