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 ezn$a
intermediary net/minecraft/class_7557$class_7558
named net/minecraft/client/report/log/ReceivedMessage$ChatMessage
official c
intermediary comp_868
named profile
official d
intermediary comp_870
named message
official e
intermediary comp_905
named trustStatus
  • Field Details

    • profile

      private final com.mojang.authlib.GameProfile profile
      The field for the profile record component.
    • message

      private final SignedMessage message
      The field for the message record component.
    • trustStatus

      private final MessageTrustStatus trustStatus
      The field for the trustStatus record component.
    • CHAT_MESSAGE_CODEC

      public static final com.mojang.serialization.Codec<ReceivedMessage.ChatMessage> CHAT_MESSAGE_CODEC
      Mappings:
      Namespace Name Mixin selector
      official b Lezn$a;b:Lcom/mojang/serialization/Codec;
      intermediary field_40809 Lnet/minecraft/class_7557$class_7558;field_40809:Lcom/mojang/serialization/Codec;
      named CHAT_MESSAGE_CODEC Lnet/minecraft/client/report/log/ReceivedMessage$ChatMessage;CHAT_MESSAGE_CODEC:Lcom/mojang/serialization/Codec;
    • DATE_TIME_FORMATTER

      private static final DateTimeFormatter DATE_TIME_FORMATTER
      Mappings:
      Namespace Name Mixin selector
      official f Lezn$a;f: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

  • Method Details

    • getContent

      public Text getContent()
      Returns the content of the message.
      Specified by:
      getContent in interface ReceivedMessage
      Returns:
      the content of the message
      Mappings:
      Namespace Name Mixin selector
      official b Lezn;b()Lss;
      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

      public Text getNarration()
      Returns the narration of the message (by default, the content).
      Specified by:
      getNarration in interface ReceivedMessage
      Returns:
      the narration of the message (by default, the content)
      Mappings:
      Namespace Name Mixin selector
      official c Lezn;c()Lss;
      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

      public 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 d Lezn$a;d()Lss;
      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

      private Text getFormattedTimestamp()
      Returns the formatted timestamp text of this message.
      Returns:
      the formatted timestamp text of this message
      Mappings:
      Namespace Name Mixin selector
      official i Lezn$a;i()Lss;
      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

      public boolean isSentFrom(UUID uuid)
      Returns whether the sender's UUID equals uuid.
      Specified by:
      isSentFrom in interface ReceivedMessage
      Returns:
      whether the sender's UUID equals uuid
      Mappings:
      Namespace Name Mixin selector
      official a Lezn;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
    • getSenderUuid

      public UUID getSenderUuid()
      Returns the UUID of the sender.
      Returns:
      the UUID of the sender
      Mappings:
      Namespace Name Mixin selector
      official e Lezn$a;e()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;
    • getType

      public ChatLogEntry.Type getType()
      Specified by:
      getType in interface ChatLogEntry
      Mappings:
      Namespace Name Mixin selector
      official a Lezm;a()Lezm$a;
      intermediary method_46538 Lnet/minecraft/class_7629;method_46538()Lnet/minecraft/class_7629$class_7854;
      named getType Lnet/minecraft/client/report/log/ChatLogEntry;getType()Lnet/minecraft/client/report/log/ChatLogEntry$Type;
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • profile

      public com.mojang.authlib.GameProfile profile()
      Returns the value of the profile record component.
      Returns:
      the value of the profile record component
    • message

      public SignedMessage message()
      Returns the value of the message record component.
      Returns:
      the value of the message record component
    • trustStatus

      public MessageTrustStatus trustStatus()
      Returns the value of the trustStatus record component.
      Returns:
      the value of the trustStatus record component