Class ClientChatReceivedEvent.Player
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.client.event.ClientChatReceivedEvent
net.neoforged.neoforge.client.event.ClientChatReceivedEvent.Player
- All Implemented Interfaces:
- net.neoforged.bus.api.ICancellableEvent
- Enclosing class:
- ClientChatReceivedEvent
Fired when a player chat message is received on the client.
 
This event is cancellable, and does not 
.
 If the event is cancelled, the message is not displayed in the chat message window.invalid reference
have a result
This event is fired on the main Forge event bus, only on the logical client.
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class net.neoforged.neoforge.client.event.ClientChatReceivedEventClientChatReceivedEvent.Player, ClientChatReceivedEvent.System
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionPlayer(ChatType.Bound boundChatType, Component message, PlayerChatMessage playerChatMessage, UUID sender) 
- 
Method SummaryModifier and TypeMethodDescriptionReturns the full player chat message.Methods inherited from class net.neoforged.neoforge.client.event.ClientChatReceivedEventgetBoundChatType, getMessage, getSender, isSystem, setMessageMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.bus.api.ICancellableEventisCanceled, setCanceled
- 
Field Details- 
playerChatMessage
 
- 
- 
Constructor Details- 
Player@Internal public Player(ChatType.Bound boundChatType, Component message, PlayerChatMessage playerChatMessage, UUID sender) 
 
- 
- 
Method Details- 
getPlayerChatMessageReturns the full player chat message.. This contains the sender UUID, various signing data, and the optional unsigned contents.- Returns:
- the full player chat message
 
 
-