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
-displayName
-message
-trustStatus
-
- All Implemented Interfaces:
ChatLogEntry
,HeaderEntry
,ReceivedMessage
- Enclosing interface:
ReceivedMessage
@Environment(CLIENT)
public static record ReceivedMessage.ChatMessage(com.mojang.authlib.GameProfile profile, Text displayName, SignedMessage message, MessageTrustStatus trustStatus)
extends Record
implements ReceivedMessage, HeaderEntry
A chat message received by the client.
- Mappings:
Namespace Name official evj$a
intermediary net/minecraft/class_7557$class_7558
named net/minecraft/client/report/log/ReceivedMessage$ChatMessage
official a
intermediary comp_868
named profile
official b
intermediary comp_869
named displayName
official c
intermediary comp_870
named message
official d
intermediary comp_905
named trustStatus
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.report.log.HeaderEntry
HeaderEntry.Impl
Nested classes/interfaces inherited from interface net.minecraft.client.report.log.ReceivedMessage
ReceivedMessage.ChatMessage, ReceivedMessage.GameMessage
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final DateTimeFormatter
private final Text
The field for thedisplayName
record component.private final SignedMessage
The field for themessage
record component.private final com.mojang.authlib.GameProfile
The field for theprofile
record component.private final MessageTrustStatus
The field for thetrustStatus
record component. -
Constructor Summary
ConstructorDescriptionChatMessage
(com.mojang.authlib.GameProfile gameProfile, Text text, SignedMessage signedMessage, MessageTrustStatus messageTrustStatus) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Returns the value of thedisplayName
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the content of the message.private Text
Returns 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.final int
hashCode()
Returns a hash code value for this object.header()
boolean
isSentFrom
(UUID uuid) Returns whether the sender's UUID equalsuuid
.message()
Returns the value of themessage
record component.com.mojang.authlib.GameProfile
profile()
Returns the value of theprofile
record component.final String
toString()
Returns a string representation of this record class.Returns the value of thetrustStatus
record component.
-
Field Details
-
profile
private final com.mojang.authlib.GameProfile profileThe field for theprofile
record component. -
displayName
The field for thedisplayName
record component. -
message
The field for themessage
record component. -
trustStatus
The field for thetrustStatus
record component. -
DATE_TIME_FORMATTER
- Mappings:
Namespace Name Mixin selector official e
Levj$a;e:Ljava/time/format/DateTimeFormatter;
intermediary field_39637
Lnet/minecraft/class_7557$class_7558;field_39637:Ljava/time/format/DateTimeFormatter;
named DATE_TIME_FORMATTER
Lnet/minecraft/client/report/log/ReceivedMessage$ChatMessage;DATE_TIME_FORMATTER:Ljava/time/format/DateTimeFormatter;
-
-
Constructor Details
-
ChatMessage
public ChatMessage(com.mojang.authlib.GameProfile gameProfile, Text text, SignedMessage signedMessage, MessageTrustStatus messageTrustStatus)
-
-
Method Details
-
getContent
Returns the content of the message.- Specified by:
getContent
in interfaceReceivedMessage
- Returns:
- the content of the message
- Mappings:
Namespace Name Mixin selector official a
Levj;a()Lrq;
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;
-
getNarration
Returns the narration of the message (by default, the content).- Specified by:
getNarration
in interfaceReceivedMessage
- Returns:
- the narration of the message (by default, the content)
- Mappings:
Namespace Name Mixin selector official b
Levj;b()Lrq;
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;
-
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 c
Levj$a;c()Lrq;
intermediary method_44556
Lnet/minecraft/class_7557$class_7558;method_44556()Lnet/minecraft/class_2561;
named getHeadingText
Lnet/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 l
Levj$a;l()Lrq;
intermediary method_44558
Lnet/minecraft/class_7557$class_7558;method_44558()Lnet/minecraft/class_2561;
named getFormattedTimestamp
Lnet/minecraft/client/report/log/ReceivedMessage$ChatMessage;getFormattedTimestamp()Lnet/minecraft/text/Text;
-
isSentFrom
Returns whether the sender's UUID equalsuuid
.- Specified by:
isSentFrom
in interfaceReceivedMessage
- Returns:
- whether the sender's UUID equals
uuid
- Mappings:
Namespace Name Mixin selector official a
Levj;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
-
header
- Specified by:
header
in interfaceHeaderEntry
- Mappings:
Namespace Name Mixin selector official d
Levk;d()Lsh;
intermediary comp_960
Lnet/minecraft/class_7630;comp_960()Lnet/minecraft/class_7614;
named header
Lnet/minecraft/client/report/log/HeaderEntry;header()Lnet/minecraft/network/message/MessageHeader;
-
bodyDigest
public byte[] bodyDigest()- Specified by:
bodyDigest
in interfaceHeaderEntry
- Mappings:
Namespace Name Mixin selector official e
Levk;e()[B
intermediary comp_962
Lnet/minecraft/class_7630;comp_962()[B
named bodyDigest
Lnet/minecraft/client/report/log/HeaderEntry;bodyDigest()[B
-
headerSignature
- Specified by:
headerSignature
in interfaceHeaderEntry
- Mappings:
Namespace Name Mixin selector official f
Levk;f()Lrz;
intermediary comp_961
Lnet/minecraft/class_7630;comp_961()Lnet/minecraft/class_7469;
named headerSignature
Lnet/minecraft/client/report/log/HeaderEntry;headerSignature()Lnet/minecraft/network/message/MessageSignatureData;
-
getSenderUuid
Returns the UUID of the sender.- Returns:
- the UUID of the sender
- Mappings:
Namespace Name Mixin selector official g
Levj$a;g()Ljava/util/UUID;
intermediary method_44557
Lnet/minecraft/class_7557$class_7558;method_44557()Ljava/util/UUID;
named getSenderUuid
Lnet/minecraft/client/report/log/ReceivedMessage$ChatMessage;getSenderUuid()Ljava/util/UUID;
-
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 theprofile
record component.- Returns:
- the value of the
profile
record component
-
displayName
Returns the value of thedisplayName
record component.- Returns:
- the value of the
displayName
record component
-
message
Returns the value of themessage
record component.- Returns:
- the value of the
message
record component
-
trustStatus
Returns the value of thetrustStatus
record component.- Returns:
- the value of the
trustStatus
record component
-