Package net.minecraft.client.report.log
Record Class ReceivedMessage.GameMessage
java.lang.Object
java.lang.Record
net.minecraft.client.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 official fez$bintermediary net/minecraft/class_7557$class_7559named net/minecraft/client/report/log/ReceivedMessage$GameMessageofficial cintermediary comp_871named messageofficial dintermediary comp_872named timestamp
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.report.log.ChatLogEntry
ChatLogEntry.TypeNested classes/interfaces inherited from interface net.minecraft.client.report.log.ReceivedMessage
ReceivedMessage.ChatMessage, ReceivedMessage.GameMessage -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ReceivedMessage.GameMessage>private final TextThe field for themessagerecord component.private final InstantThe field for thetimestamprecord component.Fields inherited from interface net.minecraft.client.report.log.ChatLogEntry
CODEC -
Constructor Summary
Constructors -
Method Summary
Modifier 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.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.client.report.log.ReceivedMessage
getNarration
-
Field Details
-
message
The field for themessagerecord component. -
timestamp
The field for thetimestamprecord component. -
GAME_MESSAGE_CODEC
- Mappings:
Namespace Name Mixin selector official bLfez$b;b:Lcom/mojang/serialization/Codec;intermediary field_40810Lnet/minecraft/class_7557$class_7559;field_40810:Lcom/mojang/serialization/Codec;named GAME_MESSAGE_CODECLnet/minecraft/client/report/log/ReceivedMessage$GameMessage;GAME_MESSAGE_CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
GameMessage
-
-
Method Details
-
getContent
Returns the content of the message.- Specified by:
getContentin interfaceReceivedMessage- Returns:
- the content of the message
- Mappings:
Namespace Name Mixin selector official bLfez;b()Lsw;intermediary method_44551Lnet/minecraft/class_7557;method_44551()Lnet/minecraft/class_2561;named getContentLnet/minecraft/client/report/log/ReceivedMessage;getContent()Lnet/minecraft/text/Text;
-
isSentFrom
Returns whether the sender's UUID equalsuuid.- Specified by:
isSentFromin interfaceReceivedMessage- Returns:
- whether the sender's UUID equals
uuid - Mappings:
Namespace Name Mixin selector official aLfez;a(Ljava/util/UUID;)Zintermediary method_44553Lnet/minecraft/class_7557;method_44553(Ljava/util/UUID;)Znamed isSentFromLnet/minecraft/client/report/log/ReceivedMessage;isSentFrom(Ljava/util/UUID;)Z
-
getType
- Specified by:
getTypein interfaceChatLogEntry- Mappings:
Namespace Name Mixin selector official aLfey;a()Lfey$a;intermediary method_46538Lnet/minecraft/class_7629;method_46538()Lnet/minecraft/class_7629$class_7854;named getTypeLnet/minecraft/client/report/log/ChatLogEntry;getType()Lnet/minecraft/client/report/log/ChatLogEntry$Type;
-
toString
Returns 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. -
hashCode
public 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. -
equals
Indicates 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). -
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-