Record Class LastSeenMessageList

java.lang.Object
java.lang.Record
net.minecraft.network.message.LastSeenMessageList
Record Components:
entries -

public record LastSeenMessageList(List<LastSeenMessageList.Entry> entries) extends Record
A list of messages a client has seen.
Mappings:
Namespace Name
official rw
intermediary net/minecraft/class_7635
named net/minecraft/network/message/LastSeenMessageList
official c
intermediary comp_965
named entries
  • Field Details

    • entries

      private final List<LastSeenMessageList.Entry> entries
      The field for the entries record component.
    • EMPTY

      public static LastSeenMessageList EMPTY
      Mappings:
      Namespace Name Mixin selector
      official a Lrw;a:Lrw;
      intermediary field_39883 Lnet/minecraft/class_7635;field_39883:Lnet/minecraft/class_7635;
      named EMPTY Lnet/minecraft/network/message/LastSeenMessageList;EMPTY:Lnet/minecraft/network/message/LastSeenMessageList;
    • MAX_ENTRIES

      public static final int MAX_ENTRIES
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lrw;b:I
      intermediary field_39884 Lnet/minecraft/class_7635;field_39884:I
      named MAX_ENTRIES Lnet/minecraft/network/message/LastSeenMessageList;MAX_ENTRIES:I
  • Constructor Details

    • LastSeenMessageList

      public LastSeenMessageList(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lrw;<init>(Lqx;)V
      intermediary <init> Lnet/minecraft/class_7635;<init>(Lnet/minecraft/class_2540;)V
      named <init> Lnet/minecraft/network/message/LastSeenMessageList;<init>(Lnet/minecraft/network/PacketByteBuf;)V
    • LastSeenMessageList

      public LastSeenMessageList(List<LastSeenMessageList.Entry> list)
  • Method Details

    • write

      public void write(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official a Lrw;a(Lqx;)V
      intermediary method_44981 Lnet/minecraft/class_7635;method_44981(Lnet/minecraft/class_2540;)V
      named write Lnet/minecraft/network/message/LastSeenMessageList;write(Lnet/minecraft/network/PacketByteBuf;)V
    • write

      public void write(DataOutput output) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lrw;a(Ljava/io/DataOutput;)V
      intermediary method_44980 Lnet/minecraft/class_7635;method_44980(Ljava/io/DataOutput;)V
      named write Lnet/minecraft/network/message/LastSeenMessageList;write(Ljava/io/DataOutput;)V
    • 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.
    • entries

      public List<LastSeenMessageList.Entry> entries()
      Returns the value of the entries record component.
      Returns:
      the value of the entries record component