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
official fjo$b
intermediary net/minecraft/class_7557$class_7559
named net/minecraft/client/session/report/log/ReceivedMessage$GameMessage
official c
intermediary comp_871
named message
official d
intermediary comp_872
named timestamp
  • Field Details

    • message

      private final Text message
      The field for the message record component.
    • timestamp

      private final Instant timestamp
      The field for the timestamp record component.
    • GAME_MESSAGE_CODEC

      public static final com.mojang.serialization.Codec<ReceivedMessage.GameMessage> GAME_MESSAGE_CODEC
      Mappings:
      Namespace Name Mixin selector
      official b Lfjo$b;b:Lcom/mojang/serialization/Codec;
      intermediary field_40810 Lnet/minecraft/class_7557$class_7559;field_40810:Lcom/mojang/serialization/Codec;
      named GAME_MESSAGE_CODEC Lnet/minecraft/client/session/report/log/ReceivedMessage$GameMessage;GAME_MESSAGE_CODEC:Lcom/mojang/serialization/Codec;
  • Constructor Details

    • GameMessage

      public GameMessage(Text text, Instant instant)
  • 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 Lfjo;b()Ltl;
      intermediary method_44551 Lnet/minecraft/class_7557;method_44551()Lnet/minecraft/class_2561;
      named getContent Lnet/minecraft/client/session/report/log/ReceivedMessage;getContent()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 Lfjo;a(Ljava/util/UUID;)Z
      intermediary method_44553 Lnet/minecraft/class_7557;method_44553(Ljava/util/UUID;)Z
      named isSentFrom Lnet/minecraft/client/session/report/log/ReceivedMessage;isSentFrom(Ljava/util/UUID;)Z
    • getType

      public ChatLogEntry.Type getType()
      Specified by:
      getType in interface ChatLogEntry
      Mappings:
      Namespace Name Mixin selector
      official a Lfjn;a()Lfjn$a;
      intermediary method_46538 Lnet/minecraft/class_7629;method_46538()Lnet/minecraft/class_7629$class_7854;
      named getType Lnet/minecraft/client/session/report/log/ChatLogEntry;getType()Lnet/minecraft/client/session/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.
    • message

      public Text message()
      Returns the value of the message record component.
      Returns:
      the value of the message record component
    • timestamp

      public Instant timestamp()
      Returns the value of the timestamp record component.
      Returns:
      the value of the timestamp record component