- Enclosing class:
ClientReceiveMessageEvents
- 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
onReceiveChatMessage(net.minecraft.network.chat.Component message,
@Nullable net.minecraft.network.chat.PlayerChatMessage signedMessage,
@Nullable com.mojang.authlib.GameProfile sender,
net.minecraft.network.chat.ChatType.Bound params,
Instant receptionTimestamp)
Called when the client receives a chat message,
which is any message sent by a player.
-
Method Details
-
onReceiveChatMessage
void onReceiveChatMessage(net.minecraft.network.chat.Component message,
@Nullable net.minecraft.network.chat.PlayerChatMessage signedMessage,
@Nullable com.mojang.authlib.GameProfile sender,
net.minecraft.network.chat.ChatType.Bound params,
Instant receptionTimestamp)
Called when the client receives a chat message,
which is any message sent by a player. Is not called when
chat messages are blocked.
- Parameters:
message - the message received from the server
signedMessage - the signed message received from the server (nullable)
sender - the sender of the message (nullable)
params - the parameters of the message
receptionTimestamp - the timestamp when the message was received