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
add(net.minecraft.network.message.LastSeenMessageList.Entry)
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 withnull
instead of filling the hole. - Mappings:
Namespace Name official rx
intermediary net/minecraft/class_7637
named net/minecraft/network/message/LastSeenMessagesCollector
-
Field Summary
Modifier and TypeFieldDescriptionprivate final LastSeenMessageList.Entry[]
private LastSeenMessageList
private int
-
Constructor Summary
-
Method Summary
-
Field Details
-
entries
- Mappings:
Namespace Name Mixin selector official a
Lrx;a:[Lrw$a;
intermediary field_39885
Lnet/minecraft/class_7637;field_39885:[Lnet/minecraft/class_7635$class_7609;
named entries
Lnet/minecraft/network/message/LastSeenMessagesCollector;entries:[Lnet/minecraft/network/message/LastSeenMessageList$Entry;
-
size
private int size- Mappings:
Namespace Name Mixin selector official b
Lrx;b:I
intermediary field_39886
Lnet/minecraft/class_7637;field_39886:I
named size
Lnet/minecraft/network/message/LastSeenMessagesCollector;size:I
-
lastSeenMessages
- Mappings:
Namespace Name Mixin selector official c
Lrx;c:Lrw;
intermediary field_39887
Lnet/minecraft/class_7637;field_39887:Lnet/minecraft/class_7635;
named lastSeenMessages
Lnet/minecraft/network/message/LastSeenMessagesCollector;lastSeenMessages:Lnet/minecraft/network/message/LastSeenMessageList;
-
-
Constructor Details
-
LastSeenMessagesCollector
public LastSeenMessagesCollector(int size) - Mappings:
Namespace Name Mixin selector official <init>
Lrx;<init>(I)V
intermediary <init>
Lnet/minecraft/class_7637;<init>(I)V
named <init>
Lnet/minecraft/network/message/LastSeenMessagesCollector;<init>(I)V
-
-
Method Details
-
add
- Mappings:
Namespace Name Mixin selector official a
Lrx;a(Lrw$a;)V
intermediary method_44986
Lnet/minecraft/class_7637;method_44986(Lnet/minecraft/class_7635$class_7609;)V
named add
Lnet/minecraft/network/message/LastSeenMessagesCollector;add(Lnet/minecraft/network/message/LastSeenMessageList$Entry;)V
-
getLastSeenMessages
- Mappings:
Namespace Name Mixin selector official a
Lrx;a()Lrw;
intermediary method_44985
Lnet/minecraft/class_7637;method_44985()Lnet/minecraft/class_7635;
named getLastSeenMessages
Lnet/minecraft/network/message/LastSeenMessagesCollector;getLastSeenMessages()Lnet/minecraft/network/message/LastSeenMessageList;
-