Package net.minecraft.client.report.log
Interface ReceivedMessage
- All Superinterfaces:
- ChatLogEntry
- All Known Implementing Classes:
- ReceivedMessage.ChatMessage,- ReceivedMessage.GameMessage
A message received by the client and stored in 
ChatLog.
 This includes both chat messages and game messages.
- Mappings:
- Namespace - Name - official - ffk- intermediary - net/minecraft/class_7557- named - net/minecraft/client/report/log/ReceivedMessage
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic final recordA chat message received by the client.static final recordA game message received by the client.Nested classes/interfaces inherited from interface net.minecraft.client.report.log.ChatLogEntryChatLogEntry.Type
- 
Field SummaryFields inherited from interface net.minecraft.client.report.log.ChatLogEntryCODEC
- 
Method SummaryModifier and TypeMethodDescriptionReturns the content of the message.default TextReturns the narration of the message (by default, the content).booleanisSentFrom(UUID uuid) Returns whether the sender's UUID equalsuuid.static ReceivedMessage.ChatMessageof(com.mojang.authlib.GameProfile gameProfile, SignedMessage message, MessageTrustStatus trustStatus) Returns the received message constructed from a chat message.static ReceivedMessage.GameMessageReturns the received message constructed from a game message's elements.Methods inherited from interface net.minecraft.client.report.log.ChatLogEntrygetType
- 
Method Details- 
ofstatic 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 - official - a- Lffk;a(Lcom/mojang/authlib/GameProfile;Ltl;Lffi;)Lffk$a;- 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;- named - of- Lnet/minecraft/client/report/log/ReceivedMessage;of(Lcom/mojang/authlib/GameProfile;Lnet/minecraft/network/message/SignedMessage;Lnet/minecraft/client/network/message/MessageTrustStatus;)Lnet/minecraft/client/report/log/ReceivedMessage$ChatMessage;
 
- 
ofReturns 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 - official - a- Lffk;a(Lsw;Ljava/time/Instant;)Lffk$b;- intermediary - method_44554- Lnet/minecraft/class_7557;method_44554(Lnet/minecraft/class_2561;Ljava/time/Instant;)Lnet/minecraft/class_7557$class_7559;- named - of- Lnet/minecraft/client/report/log/ReceivedMessage;of(Lnet/minecraft/text/Text;Ljava/time/Instant;)Lnet/minecraft/client/report/log/ReceivedMessage$GameMessage;
 
- 
getContentText 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 - official - b- Lffk;b()Lsw;- intermediary - method_44551- Lnet/minecraft/class_7557;method_44551()Lnet/minecraft/class_2561;- named - getContent- Lnet/minecraft/client/report/log/ReceivedMessage;getContent()Lnet/minecraft/text/Text;
 
- 
getNarrationReturns the narration of the message (by default, the content).- Returns:
- the narration of the message (by default, the content)
- Mappings:
- Namespace - Name - Mixin selector - official - c- Lffk;c()Lsw;- intermediary - method_44555- Lnet/minecraft/class_7557;method_44555()Lnet/minecraft/class_2561;- named - getNarration- Lnet/minecraft/client/report/log/ReceivedMessage;getNarration()Lnet/minecraft/text/Text;
 
- 
isSentFromReturns whether the sender's UUID equalsuuid.- Returns:
- whether the sender's UUID equals uuid
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lffk;a(Ljava/util/UUID;)Z- intermediary - method_44553- Lnet/minecraft/class_7557;method_44553(Ljava/util/UUID;)Z- named - isSentFrom- Lnet/minecraft/client/report/log/ReceivedMessage;isSentFrom(Ljava/util/UUID;)Z
 
 
-