Class endstone::ICancellable¶
ClassList > endstone > ICancellable
Interface for events that may be cancelled by a plugin or the server.
#include <endstone/event/cancellable.h>
Inherited by the following classes: endstone::Cancellable, endstone::Cancellable, endstone::Cancellable, endstone::Cancellable, endstone::Cancellable, endstone::Cancellable, endstone::Cancellable
Public Functions¶
| Type | Name |
|---|---|
| virtual void | cancel () = 0 Cancels this event. |
| virtual bool | isCancelled () const = 0 Gets the cancellation state of this event. |
| virtual void | setCancelled (bool cancel) = 0 Sets the cancellation state of this event. |
| virtual | ~ICancellable () = default |
Public Functions Documentation¶
function cancel¶
Cancels this event.
function isCancelled¶
Gets the cancellation state of this event.
Returns:
true if this event is cancelled
function setCancelled¶
Sets the cancellation state of this event.
Parameters:
canceltrueif you wish to cancel this event
function ~ICancellable¶
The documentation for this class was generated from the following file include/endstone/event/cancellable.h