Record Class ReceivedMessage.GameMessage
java.lang.Object
java.lang.Record
net.minecraft.client.session.report.log.ReceivedMessage.GameMessage
- Record Components:
- message-
- timestamp-
- All Implemented Interfaces:
- ChatLogEntry,- ReceivedMessage
- Enclosing interface:
- ReceivedMessage
@Environment(CLIENT)
public static record ReceivedMessage.GameMessage(Text message, Instant timestamp)
extends Record
implements ReceivedMessage
A game message received by the client.
- Mappings:
- Namespace - Name - named - net/minecraft/client/session/report/log/ReceivedMessage$GameMessage- intermediary - net/minecraft/class_7557$class_7559- official - ggy$b- named - message- intermediary - comp_871- official - c- named - timestamp- intermediary - comp_872- official - d
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.minecraft.client.session.report.log.ChatLogEntryChatLogEntry.TypeNested classes/interfaces inherited from interface net.minecraft.client.session.report.log.ReceivedMessageReceivedMessage.ChatMessage, ReceivedMessage.GameMessage
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<ReceivedMessage.GameMessage> private final TextThe field for themessagerecord component.private final InstantThe field for thetimestamprecord component.Fields inherited from interface net.minecraft.client.session.report.log.ChatLogEntryCODEC
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the content of the message.getType()final inthashCode()Returns a hash code value for this object.booleanisSentFrom(UUID uuid) Returns whether the sender's UUID equalsuuid.message()Returns the value of themessagerecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.client.session.report.log.ReceivedMessagegetNarration
- 
Field Details- 
messageThe field for themessagerecord component.
- 
timestampThe field for thetimestamprecord component.
- 
GAME_MESSAGE_CODECpublic static final com.mojang.serialization.MapCodec<ReceivedMessage.GameMessage> GAME_MESSAGE_CODEC- Mappings:
- Namespace - Name - Mixin selector - named - GAME_MESSAGE_CODEC- Lnet/minecraft/client/session/report/log/ReceivedMessage$GameMessage;GAME_MESSAGE_CODEC:Lcom/mojang/serialization/MapCodec;- intermediary - field_40810- Lnet/minecraft/class_7557$class_7559;field_40810:Lcom/mojang/serialization/MapCodec;- official - b- Lggy$b;b:Lcom/mojang/serialization/MapCodec;
 
 
- 
- 
Constructor Details- 
GameMessage
 
- 
- 
Method Details- 
getContentReturns the content of the message.- Specified by:
- getContentin interface- ReceivedMessage
- 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- Lggy;b()Lwp;
 
- 
isSentFromReturns whether the sender's UUID equalsuuid.- Specified by:
- isSentFromin interface- ReceivedMessage
- 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- Lggy;a(Ljava/util/UUID;)Z
 
- 
getType- Specified by:
- getTypein interface- ChatLogEntry
- Mappings:
- Namespace - Name - Mixin selector - named - getType- Lnet/minecraft/client/session/report/log/ChatLogEntry;getType()Lnet/minecraft/client/session/report/log/ChatLogEntry$Type;- intermediary - method_46538- Lnet/minecraft/class_7629;method_46538()Lnet/minecraft/class_7629$class_7854;- official - a- Lggx;a()Lggx$a;
 
- 
toStringReturns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
- 
hashCodepublic final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
- 
equalsIndicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object).
- 
messageReturns the value of themessagerecord component.- Returns:
- the value of the messagerecord component
 
- 
timestampReturns the value of thetimestamprecord component.- Returns:
- the value of the timestamprecord component
 
 
-