Package net.minecraftforge.client.event
Class ClientChatReceivedEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.ClientChatReceivedEvent
public class ClientChatReceivedEvent
extends net.minecraftforge.eventbus.api.Event
Fired on the client when a chat message is received.
If this event is cancelled, the message is not displayed in the chat message window.
Fired on
If this event is cancelled, the message is not displayed in the chat message window.
Fired on
MinecraftForge.EVENT_BUS
.-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe UUID of the player or entity that sent this message, or null if not known.getType()
void
setMessage
(Component message) Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
Field Details
-
message
-
type
-
senderUUID
-
-
Constructor Details
-
ClientChatReceivedEvent
-
-
Method Details
-
getMessage
-
setMessage
-
getType
-
getSenderUUID
The UUID of the player or entity that sent this message, or null if not known. This will be equal toUtil.NIL_UUID
for system messages.
-