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 withnullinstead of filling the hole. - Mappings:
Namespace Name official rxintermediary net/minecraft/class_7637named net/minecraft/network/message/LastSeenMessagesCollector
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LastSeenMessageList.Entry[]private LastSeenMessageListprivate int -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
entries
- Mappings:
Namespace Name Mixin selector official aLrx;a:[Lrw$a;intermediary field_39885Lnet/minecraft/class_7637;field_39885:[Lnet/minecraft/class_7635$class_7609;named entriesLnet/minecraft/network/message/LastSeenMessagesCollector;entries:[Lnet/minecraft/network/message/LastSeenMessageList$Entry;
-
size
private int size- Mappings:
Namespace Name Mixin selector official bLrx;b:Iintermediary field_39886Lnet/minecraft/class_7637;field_39886:Inamed sizeLnet/minecraft/network/message/LastSeenMessagesCollector;size:I
-
lastSeenMessages
- Mappings:
Namespace Name Mixin selector official cLrx;c:Lrw;intermediary field_39887Lnet/minecraft/class_7637;field_39887:Lnet/minecraft/class_7635;named lastSeenMessagesLnet/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)Vintermediary <init>Lnet/minecraft/class_7637;<init>(I)Vnamed <init>Lnet/minecraft/network/message/LastSeenMessagesCollector;<init>(I)V
-
-
Method Details
-
add
- Mappings:
Namespace Name Mixin selector official aLrx;a(Lrw$a;)Vintermediary method_44986Lnet/minecraft/class_7637;method_44986(Lnet/minecraft/class_7635$class_7609;)Vnamed addLnet/minecraft/network/message/LastSeenMessagesCollector;add(Lnet/minecraft/network/message/LastSeenMessageList$Entry;)V
-
getLastSeenMessages
- Mappings:
Namespace Name Mixin selector official aLrx;a()Lrw;intermediary method_44985Lnet/minecraft/class_7637;method_44985()Lnet/minecraft/class_7635;named getLastSeenMessagesLnet/minecraft/network/message/LastSeenMessagesCollector;getLastSeenMessages()Lnet/minecraft/network/message/LastSeenMessageList;
-