Interface ClientChatEvent.Client

Enclosing interface:
ClientChatEvent

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

    Modifier and Type
    Method
    Description
    net.minecraft.world.InteractionResultHolder<String>
    process(String message)
    Event to modify the chat message a clients sends.
  • Method Details

    • process

      net.minecraft.world.InteractionResultHolder<String> process(String message)
      Event to modify the chat message a clients sends. Equivalent to Forge's ClientChatEvent event.
      Parameters:
      message - The raw chat message the client wants to send.
      Returns:
      Returning InteractionResultHolder.fail(Object) will result in an empty string being used as message.