Interface CarbonChatEvent

All Superinterfaces:
Cancellable, CarbonEvent

Event that's called when chat components are rendered for online players.
Since:
2.0.0
  • Method Details

    • renderers

      List<KeyedRenderer> renderers()
      Get the renderers used to construct components for each of the recipients. The returned list is mutable.
      Returns:
      renderers
      Since:
      2.0.0
    • signedMessage

      If the message is being previewed by the player.
      Returns:
      if the message is being previewed
      Since:
      3.0.0
    • sender

      CarbonPlayer sender()
      Get the sender of the message.
      Returns:
      The message sender.
      Since:
      2.0.0
    • originalMessage

      Component originalMessage()
      Get the original message that was sent.
      Returns:
      The original message.
      Since:
      2.0.0
    • message

      Component message()
      Get the chat message that will be sent.
      Returns:
      The chat message.
      Since:
      2.0.0
    • message

      void message(Component message)
      Set the chat message that will be sent.
      Parameters:
      message - new message
      Since:
      2.0.0
    • chatChannel

      The chat channel the message was sent in.
      Returns:
      the chat channel
      Since:
      2.0.0
    • recipients

      List<? extends Audience> recipients()
      The recipients of the message. List is mutable and elements may be added/removed.
      Returns:
      the recipients of the message. entries may be players, console, or other audience implementations
      Since:
      2.0.0