Package net.minecraft.network.message
Class LastSeenMessagesCollector
java.lang.Object
net.minecraft.network.message.LastSeenMessagesCollector
Collects the message that are last seen by a client.
The message, along with the "last received" message, forms an "acknowledgment" of received messages. They are sent to the server when the client has enough messages received or when they send a message.
- See Also:
- Implementation Note:
- The maximum amount of message entries are specified in the constructor.
The vanilla clients collect 5 entries. Calling
adds the message to the beginning of the entries list, and evicts the oldest message. If there are entries with the same sender profile ID, the older entry will be replaced with
invalid @link
#addnullinstead of filling the hole. - Mappings:
Namespace Name official spintermediary net/minecraft/class_7637named net/minecraft/network/message/LastSeenMessagesCollector
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final class_7817[]private intprivate intprivate @Nullable MessageSignatureData -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintprivate voidmethod_46263(@Nullable class_7817 class_7817) voidmethod_46264(MessageSignatureData messageSignatureData) booleanmethod_46265(MessageSignatureData messageSignatureData, boolean bool) int
-
Field Details
-
field_40676
- Mappings:
Namespace Name Mixin selector official aLsp;a:[Lsr;intermediary field_40676Lnet/minecraft/class_7637;field_40676:[Lnet/minecraft/class_7817;named field_40676Lnet/minecraft/network/message/LastSeenMessagesCollector;field_40676:[Lnet/minecraft/class_7817;
-
field_40677
private int field_40677- Mappings:
Namespace Name Mixin selector official bLsp;b:Iintermediary field_40677Lnet/minecraft/class_7637;field_40677:Inamed field_40677Lnet/minecraft/network/message/LastSeenMessagesCollector;field_40677:I
-
field_40678
private int field_40678- Mappings:
Namespace Name Mixin selector official cLsp;c:Iintermediary field_40678Lnet/minecraft/class_7637;field_40678:Inamed field_40678Lnet/minecraft/network/message/LastSeenMessagesCollector;field_40678:I
-
field_40679
- Mappings:
Namespace Name Mixin selector official dLsp;d:Lst;intermediary field_40679Lnet/minecraft/class_7637;field_40679:Lnet/minecraft/class_7469;named field_40679Lnet/minecraft/network/message/LastSeenMessagesCollector;field_40679:Lnet/minecraft/network/message/MessageSignatureData;
-
-
Constructor Details
-
LastSeenMessagesCollector
public LastSeenMessagesCollector(int size) - Mappings:
Namespace Name Mixin selector official <init>Lsp;<init>(I)Vintermediary <init>Lnet/minecraft/class_7637;<init>(I)Vnamed <init>Lnet/minecraft/network/message/LastSeenMessagesCollector;<init>(I)V
-
-
Method Details
-
method_46265
- Mappings:
Namespace Name Mixin selector official aLsp;a(Lst;Z)Zintermediary method_46265Lnet/minecraft/class_7637;method_46265(Lnet/minecraft/class_7469;Z)Znamed method_46265Lnet/minecraft/network/message/LastSeenMessagesCollector;method_46265(Lnet/minecraft/network/message/MessageSignatureData;Z)Z
-
method_46263
- Mappings:
Namespace Name Mixin selector official aLsp;a(Lsr;)Vintermediary method_46263Lnet/minecraft/class_7637;method_46263(Lnet/minecraft/class_7817;)Vnamed method_46263Lnet/minecraft/network/message/LastSeenMessagesCollector;method_46263(Lnet/minecraft/class_7817;)V
-
method_46264
- Mappings:
Namespace Name Mixin selector official aLsp;a(Lst;)Vintermediary method_46264Lnet/minecraft/class_7637;method_46264(Lnet/minecraft/class_7469;)Vnamed method_46264Lnet/minecraft/network/message/LastSeenMessagesCollector;method_46264(Lnet/minecraft/network/message/MessageSignatureData;)V
-
method_46262
public int method_46262()- Mappings:
Namespace Name Mixin selector official aLsp;a()Iintermediary method_46262Lnet/minecraft/class_7637;method_46262()Inamed method_46262Lnet/minecraft/network/message/LastSeenMessagesCollector;method_46262()I
-
method_46266
- Mappings:
Namespace Name Mixin selector official bLsp;b()Lsp$a;intermediary method_46266Lnet/minecraft/class_7637;method_46266()Lnet/minecraft/class_7637$class_7816;named method_46266Lnet/minecraft/network/message/LastSeenMessagesCollector;method_46266()Lnet/minecraft/network/message/LastSeenMessagesCollector$class_7816;
-
method_46267
public int method_46267()- Mappings:
Namespace Name Mixin selector official cLsp;c()Iintermediary method_46267Lnet/minecraft/class_7637;method_46267()Inamed method_46267Lnet/minecraft/network/message/LastSeenMessagesCollector;method_46267()I
-