Interface Cancellable

All Known Implementing Classes:
ChatEvent, ClientConnectEvent, LoginEvent, PluginMessageEvent, PreLoginEvent, ServerConnectEvent, ServerKickEvent, TabCompleteEvent, TabCompleteResponseEvent

public interface Cancellable
Events that implement this indicate that they may be cancelled and thus prevented from happening.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Get whether or not this event is cancelled.
    void
    setCancelled(boolean cancel)
    Sets the cancelled state of this event.
  • Method Details

    • isCancelled

      boolean isCancelled()
      Get whether or not this event is cancelled.
      Returns:
      the cancelled state of this event
    • setCancelled

      void setCancelled(boolean cancel)
      Sets the cancelled state of this event.
      Parameters:
      cancel - the state to set