Interface MinestomCancellableEvent

All Superinterfaces:
CancellableEvent
All Known Implementing Classes:
MinestomClickEvent

public interface MinestomCancellableEvent extends CancellableEvent
The cancellable event for Minestom
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minestom.server.event.trait.CancellableEvent
    Get the Minestom event
    default boolean
    Check if the event is cancelled
    default 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 interface CancellableEvent
      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 interface CancellableEvent
      Parameters:
      cancelled - true if cancelled