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.Bound type, net.minecraft.network.chat.Component message)
    Event to intercept the receiving of an chat message.
  • Method Details

    • process

      CompoundEventResult<net.minecraft.network.chat.Component> process(net.minecraft.network.chat.ChatType.Bound type, net.minecraft.network.chat.Component message)
      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.
      Returns:
      A CompoundEventResult determining the outcome of the event, if an outcome is set, the received message is overridden.