Interface ChatRenderer.ViewerUnaware

Enclosing interface:
ChatRenderer

public static interface ChatRenderer.ViewerUnaware
Similar to ChatRenderer, but without knowledge of the message viewer.
See Also:
ChatRenderer.viewerUnaware(ViewerUnaware)
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull net.kyori.adventure.text.Component
    render​(@NotNull Player source, @NotNull net.kyori.adventure.text.Component sourceDisplayName, @NotNull net.kyori.adventure.text.Component message)
    Renders a chat message.
  • 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 source
      sourceDisplayName - the display name of the source player
      message - the chat message
      Returns:
      a rendered chat message