Package net.minecraft.network.message
Class MessageChain
java.lang.Object
net.minecraft.network.message.MessageChain
A class for handling the "message chain".
 
A message chain (since 1.19.3) is implemented using an integer that is incremented
 for each message, called "index". MessageLink represents the link that a
 particular message has.
 
Clients signing a message with its preceding message's index is called "packing", and the server creating a signed message with its preceding message's index is called "unpacking". Unpacked messages can then be verified to check the chain's legitimacy.
- See Also:
 - Mappings:
 Namespace Name official tlintermediary net/minecraft/class_7610named net/minecraft/network/message/MessageChain
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interfacePackers sign a message on the client with its preceding message's index.static interfaceUnpacker creates a signed message on the server with the server's preceding message index when they receive a message. - 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiongetUnpacker(PlayerPublicKey playerPublicKey) private @Nullable MessageLinknextLink() 
- 
Field Details
- 
LOGGER
- Mappings:
 Namespace Name Mixin selector official aLtl;a:Lorg/slf4j/Logger;intermediary field_40691Lnet/minecraft/class_7610;field_40691:Lorg/slf4j/Logger;named LOGGERLnet/minecraft/network/message/MessageChain;LOGGER:Lorg/slf4j/Logger;
 - 
link
- Mappings:
 Namespace Name Mixin selector official bLtl;b:Ltm;intermediary field_40692Lnet/minecraft/class_7610;field_40692:Lnet/minecraft/class_7826;named linkLnet/minecraft/network/message/MessageChain;link:Lnet/minecraft/network/message/MessageLink;
 
 - 
 - 
Constructor Details
- 
MessageChain
- Mappings:
 Namespace Name Mixin selector official <init>Ltl;<init>(Ljava/util/UUID;Ljava/util/UUID;)Vintermediary <init>Lnet/minecraft/class_7610;<init>(Ljava/util/UUID;Ljava/util/UUID;)Vnamed <init>Lnet/minecraft/network/message/MessageChain;<init>(Ljava/util/UUID;Ljava/util/UUID;)V
 
 - 
 - 
Method Details
- 
getPacker
- Mappings:
 Namespace Name Mixin selector official aLtl;a(Laol;)Ltl$c;intermediary method_44880Lnet/minecraft/class_7610;method_44880(Lnet/minecraft/class_7501;)Lnet/minecraft/class_7610$class_7612;named getPackerLnet/minecraft/network/message/MessageChain;getPacker(Lnet/minecraft/network/encryption/Signer;)Lnet/minecraft/network/message/MessageChain$Packer;
 - 
getUnpacker
- Mappings:
 Namespace Name Mixin selector official aLtl;a(Lbws;)Ltl$b;intermediary method_44874Lnet/minecraft/class_7610;method_44874(Lnet/minecraft/class_7428;)Lnet/minecraft/class_7610$class_7611;named getUnpackerLnet/minecraft/network/message/MessageChain;getUnpacker(Lnet/minecraft/network/encryption/PlayerPublicKey;)Lnet/minecraft/network/message/MessageChain$Unpacker;
 - 
nextLink
- Mappings:
 Namespace Name Mixin selector official aLtl;a()Ltm;intermediary method_46310Lnet/minecraft/class_7610;method_46310()Lnet/minecraft/class_7826;named nextLinkLnet/minecraft/network/message/MessageChain;nextLink()Lnet/minecraft/network/message/MessageLink;
 
 -