Package net.minecraftforge.client.event
Class ClientChatReceivedEvent.Player
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.ClientChatReceivedEvent
net.minecraftforge.client.event.ClientChatReceivedEvent.Player
- Enclosing class:
- ClientChatReceivedEvent
Fired when a player chat message is received on the client.
This event is cancellable, and does not have a result. If the event is cancelled, the message is not displayed in the chat message window.
This event is fired on the main Forge event bus, only on the logical client.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.client.event.ClientChatReceivedEvent
ClientChatReceivedEvent.Player, ClientChatReceivedEvent.System
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
ConstructorDescriptionPlayer
(ChatType.Bound boundChatType, Component message, PlayerChatMessage playerChatMessage, UUID sender) -
Method Summary
Modifier and TypeMethodDescriptionReturns the full player chat message.Methods inherited from class net.minecraftforge.client.event.ClientChatReceivedEvent
getBoundChatType, getMessage, getSender, isSystem, setMessage
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
playerChatMessage
-
-
Constructor Details
-
Player
@Internal public Player(ChatType.Bound boundChatType, Component message, PlayerChatMessage playerChatMessage, UUID sender)
-
-
Method Details
-
getPlayerChatMessage
Returns the full player chat message.. This contains the sender UUID, various signing data, and the optional unsigned contents.- Returns:
- the full player chat message
-