Interface ClientChatEvent.Send

Enclosing interface:
ClientChatEvent

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

    Modifier and Type
    Method
    Description
    send(String message, @Nullable net.minecraft.network.chat.Component component)
    Event to cancel clients sending the chat message.
  • Method Details

    • send

      EventResult send(String message, @Nullable @Nullable net.minecraft.network.chat.Component component)
      Event to cancel clients sending the chat message. Equivalent to Forge's ClientChatEvent event.
      Parameters:
      message - The chat message.
      component - The chat component that was decorated, can be null.
      Returns:
      A EventResult determining the outcome of the event, if an outcome is set, the message and component will be ignored.