Package software.bluelib.event
Class ChatHandler
java.lang.Object
software.bluelib.event.ChatHandler
A
public class responsible for handling server chat events and formatting chat messages using Markdown.
This class listens for chat messages on the server and applies Markdown formatting to the message content
using the MarkdownParser. The formatted message is then set as the new message to be broadcasted.
- Since:
- 1.1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidonServerChat(net.neoforged.neoforge.event.ServerChatEvent pEvent) Apublic staticmethod that handles server chat events and formats the message using Markdown.
-
Constructor Details
-
ChatHandler
public ChatHandler()
-
-
Method Details
-
onServerChat
public static void onServerChat(net.neoforged.neoforge.event.ServerChatEvent pEvent) Apublic staticmethod that handles server chat events and formats the message using Markdown.This method listens to the
ServerChatEventand applies Markdown formatting to the message using theMarkdownParser. The formatted message is then set as the new message.- Parameters:
pEvent-ServerChatEvent- The event containing the original chat message to format.- Since:
- 1.1.0
-