Package net.minecraft.network.message
Record Class LastSeenMessageList
java.lang.Object
java.lang.Record
net.minecraft.network.message.LastSeenMessageList
- Record Components:
entries-
A list of messages a client has seen.
- Mappings:
Namespace Name official rwintermediary net/minecraft/class_7635named net/minecraft/network/message/LastSeenMessageListofficial cintermediary comp_965named entries
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordA record of messages acknowledged by a client.static final recordA pair of a player's UUID and the signature of the last message they saw, used as an entry ofLastSeenMessageList. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic LastSeenMessageListprivate final List<LastSeenMessageList.Entry>The field for theentriesrecord component.static final int -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionentries()Returns the value of theentriesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.voidwrite(DataOutput output) voidwrite(PacketByteBuf buf)
-
Field Details
-
entries
The field for theentriesrecord component. -
EMPTY
- Mappings:
Namespace Name Mixin selector official aLrw;a:Lrw;intermediary field_39883Lnet/minecraft/class_7635;field_39883:Lnet/minecraft/class_7635;named EMPTYLnet/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 bLrw;b:Iintermediary field_39884Lnet/minecraft/class_7635;field_39884:Inamed MAX_ENTRIESLnet/minecraft/network/message/LastSeenMessageList;MAX_ENTRIES:I
-
-
Constructor Details
-
LastSeenMessageList
- Mappings:
Namespace Name Mixin selector official <init>Lrw;<init>(Lqx;)Vintermediary <init>Lnet/minecraft/class_7635;<init>(Lnet/minecraft/class_2540;)Vnamed <init>Lnet/minecraft/network/message/LastSeenMessageList;<init>(Lnet/minecraft/network/PacketByteBuf;)V
-
LastSeenMessageList
-
-
Method Details
-
write
- Mappings:
Namespace Name Mixin selector official aLrw;a(Lqx;)Vintermediary method_44981Lnet/minecraft/class_7635;method_44981(Lnet/minecraft/class_2540;)Vnamed writeLnet/minecraft/network/message/LastSeenMessageList;write(Lnet/minecraft/network/PacketByteBuf;)V
-
write
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLrw;a(Ljava/io/DataOutput;)Vintermediary method_44980Lnet/minecraft/class_7635;method_44980(Ljava/io/DataOutput;)Vnamed writeLnet/minecraft/network/message/LastSeenMessageList;write(Ljava/io/DataOutput;)V
-
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). -
entries
Returns the value of theentriesrecord component.- Returns:
- the value of the
entriesrecord component
-