Interface ChatEvent.Server
- Enclosing interface:
- ChatEvent
public static interface ChatEvent.Server
-
Method Summary
-
Method Details
-
process
net.minecraft.world.InteractionResultHolder<net.minecraft.network.chat.Component> process(net.minecraft.server.level.ServerPlayer player, String message, net.minecraft.network.chat.Component component) Invoked when the server receives a message from a client. Equivalent to Forge'sServerChatEvent
event.- Parameters:
player
- The player who has sent the message.message
- The raw message itself.component
- The message as component.- Returns:
- A
InteractionResultHolder
determining the outcome of the event, if an outcome is set, the vanilla message is overridden.
-