- Enclosing interface:
- ChatEvent
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
void
Invoked when the server receives a message from a client.
-
Method Details
-
decorate
void decorate(@Nullable
@Nullable net.minecraft.server.level.ServerPlayer player,
ChatEvent.ChatComponent component)
Invoked when the server receives a message from a client.
Equivalent to Forge's ServerChatEvent
event.
- Parameters:
player
- The player who has sent the message, or null.
component
- The message as component.