Package net.minecraft.network.message
Class AcknowledgmentValidator
java.lang.Object
net.minecraft.network.message.AcknowledgmentValidator
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 official te
intermediary net/minecraft/class_7638
named net/minecraft/network/message/AcknowledgmentValidator
-
Field Summary
Modifier and TypeFieldDescriptionprivate @Nullable MessageSignatureData
private final ObjectList<AcknowledgedMessage>
private final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPending
(MessageSignatureData signature) int
boolean
removeUntil
(int index) validate
(LastSeenMessageList.Acknowledgment acknowledgment)
-
Field Details
-
size
private final int size- Mappings:
Namespace Name Mixin selector official a
Lte;a:I
intermediary field_40680
Lnet/minecraft/class_7638;field_40680:I
named size
Lnet/minecraft/network/message/AcknowledgmentValidator;size:I
-
messages
- Mappings:
Namespace Name Mixin selector official b
Lte;b:Lit/unimi/dsi/fastutil/objects/ObjectList;
intermediary field_40681
Lnet/minecraft/class_7638;field_40681:Lit/unimi/dsi/fastutil/objects/ObjectList;
named messages
Lnet/minecraft/network/message/AcknowledgmentValidator;messages:Lit/unimi/dsi/fastutil/objects/ObjectList;
-
lastSignature
- Mappings:
Namespace Name Mixin selector official c
Lte;c:Lth;
intermediary field_40682
Lnet/minecraft/class_7638;field_40682:Lnet/minecraft/class_7469;
named lastSignature
Lnet/minecraft/network/message/AcknowledgmentValidator;lastSignature:Lnet/minecraft/network/message/MessageSignatureData;
-
-
Constructor Details
-
AcknowledgmentValidator
public AcknowledgmentValidator(int size) - Mappings:
Namespace Name Mixin selector official <init>
Lte;<init>(I)V
intermediary <init>
Lnet/minecraft/class_7638;<init>(I)V
named <init>
Lnet/minecraft/network/message/AcknowledgmentValidator;<init>(I)V
-
-
Method Details
-
addPending
- Mappings:
Namespace Name Mixin selector official a
Lte;a(Lth;)V
intermediary method_44989
Lnet/minecraft/class_7638;method_44989(Lnet/minecraft/class_7469;)V
named addPending
Lnet/minecraft/network/message/AcknowledgmentValidator;addPending(Lnet/minecraft/network/message/MessageSignatureData;)V
-
getMessageCount
public int getMessageCount()- Mappings:
Namespace Name Mixin selector official a
Lte;a()I
intermediary method_46268
Lnet/minecraft/class_7638;method_46268()I
named getMessageCount
Lnet/minecraft/network/message/AcknowledgmentValidator;getMessageCount()I
-
removeUntil
public boolean removeUntil(int index) - Mappings:
Namespace Name Mixin selector official a
Lte;a(I)Z
intermediary method_46269
Lnet/minecraft/class_7638;method_46269(I)Z
named removeUntil
Lnet/minecraft/network/message/AcknowledgmentValidator;removeUntil(I)Z
-
validate
- Mappings:
Namespace Name Mixin selector official a
Lte;a(Ltc$b;)Ljava/util/Optional;
intermediary method_46270
Lnet/minecraft/class_7638;method_46270(Lnet/minecraft/class_7635$class_7636;)Ljava/util/Optional;
named validate
Lnet/minecraft/network/message/AcknowledgmentValidator;validate(Lnet/minecraft/network/message/LastSeenMessageList$Acknowledgment;)Ljava/util/Optional;
-