Interface Sender
- 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.
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 TypeMethodDescriptionvoid
send
(Recipient.Sendable recipient, FinalMessageRecord messageRecord) Sends a processed message to the given recipient using the implementation’s delivery strategy.
-
Method Details
-
send
Sends a processed message to the given recipient using the implementation’s delivery strategy.- Parameters:
recipient
- the recipient of the messagemessageRecord
- the final message record with all macros resolved and fields populated
-