All Known Implementing Classes:
MessageSender, TitleSender
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Sender
A functional interface representing a message dispatch strategy responsible for delivering a fully rendered FinalMessageRecord to a Recipient.Sendable.

Implementations of this interface define how a message is transmitted, such as through standard chat output, titles, or other in-game message channels.

This is typically the final step of the message delivery lifecycle.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    send(Recipient.Sendable recipient, FinalMessageRecord messageRecord)
    Sends a processed message to the given recipient using the implementation’s delivery strategy.
  • Method Details

    • send

      void send(Recipient.Sendable recipient, FinalMessageRecord messageRecord)
      Sends a processed message to the given recipient using the implementation’s delivery strategy.
      Parameters:
      recipient - the recipient of the message
      messageRecord - the final message record with all macros resolved and fields populated