Class LastSeenMessagesCollector

java.lang.Object
net.minecraft.network.message.LastSeenMessagesCollector

public class LastSeenMessagesCollector extends Object
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
invalid @link
#add
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 null instead of filling the hole.
Mappings:
Namespace Name
official sp
intermediary net/minecraft/class_7637
named net/minecraft/network/message/LastSeenMessagesCollector
  • Field Details

    • field_40676

      private final class_7817[] field_40676
      Mappings:
      Namespace Name Mixin selector
      official a Lsp;a:[Lsr;
      intermediary field_40676 Lnet/minecraft/class_7637;field_40676:[Lnet/minecraft/class_7817;
      named field_40676 Lnet/minecraft/network/message/LastSeenMessagesCollector;field_40676:[Lnet/minecraft/class_7817;
    • field_40677

      private int field_40677
      Mappings:
      Namespace Name Mixin selector
      official b Lsp;b:I
      intermediary field_40677 Lnet/minecraft/class_7637;field_40677:I
      named field_40677 Lnet/minecraft/network/message/LastSeenMessagesCollector;field_40677:I
    • field_40678

      private int field_40678
      Mappings:
      Namespace Name Mixin selector
      official c Lsp;c:I
      intermediary field_40678 Lnet/minecraft/class_7637;field_40678:I
      named field_40678 Lnet/minecraft/network/message/LastSeenMessagesCollector;field_40678:I
    • field_40679

      Mappings:
      Namespace Name Mixin selector
      official d Lsp;d:Lst;
      intermediary field_40679 Lnet/minecraft/class_7637;field_40679:Lnet/minecraft/class_7469;
      named field_40679 Lnet/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)V
      intermediary <init> Lnet/minecraft/class_7637;<init>(I)V
      named <init> Lnet/minecraft/network/message/LastSeenMessagesCollector;<init>(I)V
  • Method Details

    • method_46265

      public boolean method_46265(MessageSignatureData messageSignatureData, boolean bool)
      Mappings:
      Namespace Name Mixin selector
      official a Lsp;a(Lst;Z)Z
      intermediary method_46265 Lnet/minecraft/class_7637;method_46265(Lnet/minecraft/class_7469;Z)Z
      named method_46265 Lnet/minecraft/network/message/LastSeenMessagesCollector;method_46265(Lnet/minecraft/network/message/MessageSignatureData;Z)Z
    • method_46263

      private void method_46263(@Nullable @Nullable class_7817 class_7817)
      Mappings:
      Namespace Name Mixin selector
      official a Lsp;a(Lsr;)V
      intermediary method_46263 Lnet/minecraft/class_7637;method_46263(Lnet/minecraft/class_7817;)V
      named method_46263 Lnet/minecraft/network/message/LastSeenMessagesCollector;method_46263(Lnet/minecraft/class_7817;)V
    • method_46264

      public void method_46264(MessageSignatureData messageSignatureData)
      Mappings:
      Namespace Name Mixin selector
      official a Lsp;a(Lst;)V
      intermediary method_46264 Lnet/minecraft/class_7637;method_46264(Lnet/minecraft/class_7469;)V
      named method_46264 Lnet/minecraft/network/message/LastSeenMessagesCollector;method_46264(Lnet/minecraft/network/message/MessageSignatureData;)V
    • method_46262

      public int method_46262()
      Mappings:
      Namespace Name Mixin selector
      official a Lsp;a()I
      intermediary method_46262 Lnet/minecraft/class_7637;method_46262()I
      named method_46262 Lnet/minecraft/network/message/LastSeenMessagesCollector;method_46262()I
    • method_46266

      public LastSeenMessagesCollector.class_7816 method_46266()
      Mappings:
      Namespace Name Mixin selector
      official b Lsp;b()Lsp$a;
      intermediary method_46266 Lnet/minecraft/class_7637;method_46266()Lnet/minecraft/class_7637$class_7816;
      named method_46266 Lnet/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 c Lsp;c()I
      intermediary method_46267 Lnet/minecraft/class_7637;method_46267()I
      named method_46267 Lnet/minecraft/network/message/LastSeenMessagesCollector;method_46267()I