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

public static class ClientChatReceivedEvent.Player extends ClientChatReceivedEvent
Fired when a player chat message is received on the client.

This event is cancellable, and does not

invalid reference
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:
  • Field Details

  • Constructor Details

  • Method Details

    • getPlayerChatMessage

      public PlayerChatMessage 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