Class AcknowledgmentValidator

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

public class AcknowledgmentValidator extends Object
A class that validates the clients' message acknowledgment.

When clients receive or send messages, they send "acknowledgments" to the server, containing messages they've last seen or received. If there are too many messages waiting for message acknowledgments (more than 4096), or if the acknowledgment is incorrect, the client will be disconnected.

Mappings:
Namespace Name
named net/minecraft/network/message/AcknowledgmentValidator
intermediary net/minecraft/class_7638
official ye
  • Field Details

    • size

      private final int size
      Mappings:
      Namespace Name Mixin selector
      named size Lnet/minecraft/network/message/AcknowledgmentValidator;size:I
      intermediary field_40680 Lnet/minecraft/class_7638;field_40680:I
      official a Lye;a:I
    • messages

      private final ObjectList<AcknowledgedMessage> messages
      Mappings:
      Namespace Name Mixin selector
      named messages Lnet/minecraft/network/message/AcknowledgmentValidator;messages:Lit/unimi/dsi/fastutil/objects/ObjectList;
      intermediary field_40681 Lnet/minecraft/class_7638;field_40681:Lit/unimi/dsi/fastutil/objects/ObjectList;
      official b Lye;b:Lit/unimi/dsi/fastutil/objects/ObjectList;
    • lastSignature

      @Nullable private @Nullable MessageSignatureData lastSignature
      Mappings:
      Namespace Name Mixin selector
      named lastSignature Lnet/minecraft/network/message/AcknowledgmentValidator;lastSignature:Lnet/minecraft/network/message/MessageSignatureData;
      intermediary field_40682 Lnet/minecraft/class_7638;field_40682:Lnet/minecraft/class_7469;
      official c Lye;c:Lyh;
  • Constructor Details

    • AcknowledgmentValidator

      public AcknowledgmentValidator(int size)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/network/message/AcknowledgmentValidator;<init>(I)V
      intermediary <init> Lnet/minecraft/class_7638;<init>(I)V
      official <init> Lye;<init>(I)V
  • Method Details

    • addPending

      public void addPending(MessageSignatureData signature)
      Mappings:
      Namespace Name Mixin selector
      named addPending Lnet/minecraft/network/message/AcknowledgmentValidator;addPending(Lnet/minecraft/network/message/MessageSignatureData;)V
      intermediary method_44989 Lnet/minecraft/class_7638;method_44989(Lnet/minecraft/class_7469;)V
      official a Lye;a(Lyh;)V
    • getMessageCount

      public int getMessageCount()
      Mappings:
      Namespace Name Mixin selector
      named getMessageCount Lnet/minecraft/network/message/AcknowledgmentValidator;getMessageCount()I
      intermediary method_46268 Lnet/minecraft/class_7638;method_46268()I
      official a Lye;a()I
    • removeUntil

      public boolean removeUntil(int index)
      Mappings:
      Namespace Name Mixin selector
      named removeUntil Lnet/minecraft/network/message/AcknowledgmentValidator;removeUntil(I)Z
      intermediary method_46269 Lnet/minecraft/class_7638;method_46269(I)Z
      official a Lye;a(I)Z
    • validate

      Mappings:
      Namespace Name Mixin selector
      named validate Lnet/minecraft/network/message/AcknowledgmentValidator;validate(Lnet/minecraft/network/message/LastSeenMessageList$Acknowledgment;)Ljava/util/Optional;
      intermediary method_46270 Lnet/minecraft/class_7638;method_46270(Lnet/minecraft/class_7635$class_7636;)Ljava/util/Optional;
      official a Lye;a(Lyc$b;)Ljava/util/Optional;