Package io.papermc.paper.chat
Interface ChatRenderer.ViewerUnaware
- Enclosing interface:
- ChatRenderer
public static interface ChatRenderer.ViewerUnaware
Similar to
ChatRenderer
, but without knowledge of the message viewer.-
Method Summary
-
Method Details
-
render
@NotNull @NotNull net.kyori.adventure.text.Component render(@NotNull @NotNull Player source, @NotNull @NotNull net.kyori.adventure.text.Component sourceDisplayName, @NotNull @NotNull net.kyori.adventure.text.Component message)Renders a chat message.- Parameters:
source
- the message sourcesourceDisplayName
- the display name of the source playermessage
- the chat message- Returns:
- a rendered chat message
-