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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
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)
-
Constructor Details
-
ChatFormater
-
-
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 interfaceio.papermc.paper.chat.ChatRenderer
-