Class ChatFormater

java.lang.Object
net.natroutter.minicore.handlers.features.ChatFormater
All Implemented Interfaces:
io.papermc.paper.chat.ChatRenderer, org.bukkit.event.Listener

public class ChatFormater extends Object implements org.bukkit.event.Listener, io.papermc.paper.chat.ChatRenderer
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.papermc.paper.chat.ChatRenderer

    io.papermc.paper.chat.ChatRenderer.ViewerUnaware
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onChat(io.papermc.paper.event.player.AsyncChatEvent e)
     
    @NotNull net.kyori.adventure.text.Component
    render(@NotNull org.bukkit.entity.Player p, @NotNull net.kyori.adventure.text.Component sourceDisplayName, @NotNull net.kyori.adventure.text.Component message, @NotNull net.kyori.adventure.audience.Audience viewer)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ChatFormater

      public ChatFormater(Handler handler)
  • Method Details

    • onChat

      public void onChat(io.papermc.paper.event.player.AsyncChatEvent e)
    • render

      @NotNull public @NotNull net.kyori.adventure.text.Component render(@NotNull @NotNull org.bukkit.entity.Player p, @NotNull @NotNull net.kyori.adventure.text.Component sourceDisplayName, @NotNull @NotNull net.kyori.adventure.text.Component message, @NotNull @NotNull net.kyori.adventure.audience.Audience viewer)
      Specified by:
      render in interface io.papermc.paper.chat.ChatRenderer