Interface MinestomCancellableEvent
- All Superinterfaces:
CancellableEvent
- All Known Implementing Classes:
MinestomClickEvent
The cancellable event for Minestom
-
Method Summary
Modifier and TypeMethodDescriptionnet.minestom.server.event.trait.CancellableEvent
getEvent()
Get the Minestom eventdefault boolean
Check if the event is cancelleddefault void
setCancelled
(boolean cancelled) Set the event to be cancelled
-
Method Details
-
getEvent
net.minestom.server.event.trait.CancellableEvent getEvent()Get the Minestom event- Returns:
- the Minestom event
-
isCancelled
default boolean isCancelled()Description copied from interface:CancellableEvent
Check if the event is cancelled- Specified by:
isCancelled
in interfaceCancellableEvent
- Returns:
- true if cancelled
-
setCancelled
default void setCancelled(boolean cancelled) Description copied from interface:CancellableEvent
Set the event to be cancelled- Specified by:
setCancelled
in interfaceCancellableEvent
- Parameters:
cancelled
- true if cancelled
-