Interface MessageCancellable

All Known Subinterfaces:
AdvancementEvent.Grant, DestructEntityEvent, DestructEntityEvent.Death, ServerSideConnectionEvent.Join, ServerSideConnectionEvent.Leave

public interface MessageCancellable
Represents an event whose message can be cancelled.
  • Method Details

    • isMessageCancelled

      boolean isMessageCancelled()
      Returns true if the Component should not be sent.
      Returns:
      True if message should not be sent
    • setMessageCancelled

      void setMessageCancelled(boolean cancelled)
      Sets whether the Component should be sent.
      Parameters:
      cancelled - True if should not be sent