Interface ClientChatEvent.Send
- Enclosing interface:
- ClientChatEvent
@Environment(CLIENT)
public static interface ClientChatEvent.Send
-
Method Summary
Modifier and TypeMethodDescriptionEvent 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'sClientChatEventevent.- Parameters:
message- The chat message.component- The chat component that was decorated, can benull.- Returns:
- A
EventResultdetermining the outcome of the event, if an outcome is set, the message and component will be ignored.
-