Interface ReceivedMessage

All Superinterfaces:
ChatLogEntry
All Known Implementing Classes:
ReceivedMessage.ChatMessage, ReceivedMessage.GameMessage

@Environment(CLIENT) public interface ReceivedMessage extends ChatLogEntry
A message received by the client and stored in ChatLog.

This includes both chat messages and game messages.

Mappings:
Namespace Name
named net/minecraft/client/session/report/log/ReceivedMessage
intermediary net/minecraft/class_7557
official ggh
  • Method Details

    • of

      static ReceivedMessage.ChatMessage of(com.mojang.authlib.GameProfile gameProfile, SignedMessage message, MessageTrustStatus trustStatus)
      Returns the received message constructed from a chat message.
      Parameters:
      gameProfile - the game profile of the message's sender
      Returns:
      the received message constructed from a chat message
      Mappings:
      Namespace Name Mixin selector
      named of Lnet/minecraft/client/session/report/log/ReceivedMessage;of(Lcom/mojang/authlib/GameProfile;Lnet/minecraft/network/message/SignedMessage;Lnet/minecraft/client/network/message/MessageTrustStatus;)Lnet/minecraft/client/session/report/log/ReceivedMessage$ChatMessage;
      intermediary method_44552 Lnet/minecraft/class_7557;method_44552(Lcom/mojang/authlib/GameProfile;Lnet/minecraft/class_7471;Lnet/minecraft/class_7595;)Lnet/minecraft/class_7557$class_7558;
      official a Lggh;a(Lcom/mojang/authlib/GameProfile;Lyl;Lggf;)Lggh$a;
    • of

      static ReceivedMessage.GameMessage of(Text message, Instant timestamp)
      Returns the received message constructed from a game message's elements.
      Parameters:
      message - the message content
      timestamp - the timestamp of the message
      Returns:
      the received message constructed from a game message's elements
      Mappings:
      Namespace Name Mixin selector
      named of Lnet/minecraft/client/session/report/log/ReceivedMessage;of(Lnet/minecraft/text/Text;Ljava/time/Instant;)Lnet/minecraft/client/session/report/log/ReceivedMessage$GameMessage;
      intermediary method_44554 Lnet/minecraft/class_7557;method_44554(Lnet/minecraft/class_2561;Ljava/time/Instant;)Lnet/minecraft/class_7557$class_7559;
      official a Lggh;a(Lxv;Ljava/time/Instant;)Lggh$b;
    • getContent

      Text getContent()
      Returns the content of the message.
      Returns:
      the content of the message
      Implementation Note:
      If the message is a chat message and it contains an unsigned part, the unsigned part will be returned. Note that in vanilla, unsigned part is stripped prior to construction of the received message instance if the client requires secure chat.
      Mappings:
      Namespace Name Mixin selector
      named getContent Lnet/minecraft/client/session/report/log/ReceivedMessage;getContent()Lnet/minecraft/text/Text;
      intermediary method_44551 Lnet/minecraft/class_7557;method_44551()Lnet/minecraft/class_2561;
      official b Lggh;b()Lxv;
    • getNarration

      default Text getNarration()
      Returns the narration of the message (by default, the content).
      Returns:
      the narration of the message (by default, the content)
      Mappings:
      Namespace Name Mixin selector
      named getNarration Lnet/minecraft/client/session/report/log/ReceivedMessage;getNarration()Lnet/minecraft/text/Text;
      intermediary method_44555 Lnet/minecraft/class_7557;method_44555()Lnet/minecraft/class_2561;
      official c Lggh;c()Lxv;
    • isSentFrom

      boolean isSentFrom(UUID uuid)
      Returns whether the sender's UUID equals uuid.
      Returns:
      whether the sender's UUID equals uuid
      Mappings:
      Namespace Name Mixin selector
      named isSentFrom Lnet/minecraft/client/session/report/log/ReceivedMessage;isSentFrom(Ljava/util/UUID;)Z
      intermediary method_44553 Lnet/minecraft/class_7557;method_44553(Ljava/util/UUID;)Z
      official a Lggh;a(Ljava/util/UUID;)Z