Package net.minecraft.client.report.log
Record Class ReceivedMessage.ChatMessage
java.lang.Object
java.lang.Record
net.minecraft.client.report.log.ReceivedMessage.ChatMessage
- Record Components:
profile-message-trustStatus-
- All Implemented Interfaces:
ChatLogEntry,ReceivedMessage
- Enclosing interface:
ReceivedMessage
@Environment(CLIENT)
public static record ReceivedMessage.ChatMessage(com.mojang.authlib.GameProfile profile, SignedMessage message, MessageTrustStatus trustStatus)
extends Record
implements ReceivedMessage
A chat message received by the client.
- Mappings:
Namespace Name official fez$aintermediary net/minecraft/class_7557$class_7558named net/minecraft/client/report/log/ReceivedMessage$ChatMessageofficial cintermediary comp_868named profileofficial dintermediary comp_870named messageofficial eintermediary comp_905named trustStatus
-
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.ChatMessage>private static final DateTimeFormatterprivate final SignedMessageThe field for themessagerecord component.private final com.mojang.authlib.GameProfileThe field for theprofilerecord component.private final MessageTrustStatusThe field for thetrustStatusrecord component.Fields inherited from interface net.minecraft.client.report.log.ChatLogEntry
CODEC -
Constructor Summary
ConstructorsConstructorDescriptionChatMessage(com.mojang.authlib.GameProfile gameProfile, SignedMessage signedMessage, MessageTrustStatus messageTrustStatus) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the content of the message.private TextReturns the formatted timestamp text of this message.Returns the heading text used by Chat Selection screen.Returns the narration of the message (by default, the content).Returns the UUID of the sender.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.com.mojang.authlib.GameProfileprofile()Returns the value of theprofilerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetrustStatusrecord component.
-
Field Details
-
profile
private final com.mojang.authlib.GameProfile profileThe field for theprofilerecord component. -
message
The field for themessagerecord component. -
trustStatus
The field for thetrustStatusrecord component. -
CHAT_MESSAGE_CODEC
- Mappings:
Namespace Name Mixin selector official bLfez$a;b:Lcom/mojang/serialization/Codec;intermediary field_40809Lnet/minecraft/class_7557$class_7558;field_40809:Lcom/mojang/serialization/Codec;named CHAT_MESSAGE_CODECLnet/minecraft/client/report/log/ReceivedMessage$ChatMessage;CHAT_MESSAGE_CODEC:Lcom/mojang/serialization/Codec;
-
DATE_TIME_FORMATTER
- Mappings:
Namespace Name Mixin selector official fLfez$a;f:Ljava/time/format/DateTimeFormatter;intermediary field_39637Lnet/minecraft/class_7557$class_7558;field_39637:Ljava/time/format/DateTimeFormatter;named DATE_TIME_FORMATTERLnet/minecraft/client/report/log/ReceivedMessage$ChatMessage;DATE_TIME_FORMATTER:Ljava/time/format/DateTimeFormatter;
-
-
Constructor Details
-
ChatMessage
public ChatMessage(com.mojang.authlib.GameProfile gameProfile, SignedMessage signedMessage, MessageTrustStatus messageTrustStatus)
-
-
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;
-
getNarration
Returns the narration of the message (by default, the content).- Specified by:
getNarrationin interfaceReceivedMessage- Returns:
- the narration of the message (by default, the content)
- Mappings:
Namespace Name Mixin selector official cLfez;c()Lsw;intermediary method_44555Lnet/minecraft/class_7557;method_44555()Lnet/minecraft/class_2561;named getNarrationLnet/minecraft/client/report/log/ReceivedMessage;getNarration()Lnet/minecraft/text/Text;
-
getHeadingText
Returns the heading text used by Chat Selection screen.The text contains the sender's display name and the formatted timestamp.
- Returns:
- the heading text used by Chat Selection screen
- Mappings:
Namespace Name Mixin selector official dLfez$a;d()Lsw;intermediary method_44556Lnet/minecraft/class_7557$class_7558;method_44556()Lnet/minecraft/class_2561;named getHeadingTextLnet/minecraft/client/report/log/ReceivedMessage$ChatMessage;getHeadingText()Lnet/minecraft/text/Text;
-
getFormattedTimestamp
Returns the formatted timestamp text of this message.- Returns:
- the formatted timestamp text of this message
- Mappings:
Namespace Name Mixin selector official iLfez$a;i()Lsw;intermediary method_44558Lnet/minecraft/class_7557$class_7558;method_44558()Lnet/minecraft/class_2561;named getFormattedTimestampLnet/minecraft/client/report/log/ReceivedMessage$ChatMessage;getFormattedTimestamp()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
-
getSenderUuid
Returns the UUID of the sender.- Returns:
- the UUID of the sender
- Mappings:
Namespace Name Mixin selector official eLfez$a;e()Ljava/util/UUID;intermediary method_44557Lnet/minecraft/class_7557$class_7558;method_44557()Ljava/util/UUID;named getSenderUuidLnet/minecraft/client/report/log/ReceivedMessage$ChatMessage;getSenderUuid()Ljava/util/UUID;
-
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). -
profile
public com.mojang.authlib.GameProfile profile()Returns the value of theprofilerecord component.- Returns:
- the value of the
profilerecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
trustStatus
Returns the value of thetrustStatusrecord component.- Returns:
- the value of the
trustStatusrecord component
-