Interface ClientChatEvent.Received

Enclosing interface:
ClientChatEvent

@Environment(CLIENT) public static interface ClientChatEvent.Received
  • Method Summary

    Modifier and Type
    Method
    Description
    CompoundEventResult<net.minecraft.network.chat.Component>
    process(net.minecraft.network.chat.ChatType type, net.minecraft.network.chat.Component message, @Nullable UUID sender)
    Event to intercept the receiving of an chat message.
  • Method Details

    • process

      CompoundEventResult<net.minecraft.network.chat.Component> process(net.minecraft.network.chat.ChatType type, net.minecraft.network.chat.Component message, @Nullable @Nullable UUID sender)
      Event to intercept the receiving of an chat message. Invoked as soon as the client receives the chat message packet. Equivalent to Forge's ClientChatReceivedEvent event.
      Parameters:
      type - Where was the message emitted from.
      message - The chat message.
      sender - The packet sender. Can be null, but probably is the sending player UUID or Util.NIL_UUID
      Returns:
      A CompoundEventResult determining the outcome of the event, if an outcome is set, the received message is overridden.