Interface ClientReceiveMessageEvents.ChatCanceled

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.

@FunctionalInterface public static interface ClientReceiveMessageEvents.ChatCanceled
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onReceiveChatMessageCanceled(net.minecraft.network.chat.Component message, @Nullable net.minecraft.network.chat.PlayerChatMessage playerChatMessage, @Nullable com.mojang.authlib.GameProfile sender, net.minecraft.network.chat.ChatType.Bound boundChatType, Instant timeStamp)
    Called when receiving a chat message is canceled with ClientReceiveMessageEvents.ALLOW_CHAT.
  • Method Details

    • onReceiveChatMessageCanceled

      void onReceiveChatMessageCanceled(net.minecraft.network.chat.Component message, @Nullable net.minecraft.network.chat.PlayerChatMessage playerChatMessage, @Nullable com.mojang.authlib.GameProfile sender, net.minecraft.network.chat.ChatType.Bound boundChatType, Instant timeStamp)
      Called when receiving a chat message is canceled with ClientReceiveMessageEvents.ALLOW_CHAT.
      Parameters:
      message - the message received from the server
      playerChatMessage - the signed message received from the server (nullable)
      sender - the sender of the message (nullable)
      boundChatType - the parameters of the message
      timeStamp - the timestamp when the message was received