Package net.minecraft.network.message
Class MessageChain
java.lang.Object
net.minecraft.network.message.MessageChain
A class for handling the "message chain".
includes the signature of the last message the client has seen.
This can be used to verify the legitimacy of a chain of messages, since if the chain
is valid, the last message's "previous signature" should be able to verify the preceding
message.
invalid @link
MessageHeader
Clients signing a message with its preceding message's signature is called "packing", and the server creating a signed message with its preceding message's signature is called "unpacking". Unpacked messages can then be verified to check the chain's legitimacy.
- Mappings:
Namespace Name official tbintermediary 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 signature.static interfaceUnpacker creates a signed message on the server with the server's preceding message signature when they receive a message. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetUnpacker(PlayerPublicKey playerPublicKey) private @Nullable class_7826
-
Field Details
-
field_40691
- Mappings:
Namespace Name Mixin selector official aLtb;a:Lorg/slf4j/Logger;intermediary field_40691Lnet/minecraft/class_7610;field_40691:Lorg/slf4j/Logger;named field_40691Lnet/minecraft/network/message/MessageChain;field_40691:Lorg/slf4j/Logger;
-
field_40692
- Mappings:
Namespace Name Mixin selector official bLtb;b:Ltc;intermediary field_40692Lnet/minecraft/class_7610;field_40692:Lnet/minecraft/class_7826;named field_40692Lnet/minecraft/network/message/MessageChain;field_40692:Lnet/minecraft/class_7826;
-
-
Constructor Details
-
MessageChain
-
-
Method Details
-
getPacker
- Mappings:
Namespace Name Mixin selector official aLtb;a(Lanx;)Ltb$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 aLtb;a(Lbvv;)Ltb$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;
-
method_46310
- Mappings:
Namespace Name Mixin selector official aLtb;a()Ltc;intermediary method_46310Lnet/minecraft/class_7610;method_46310()Lnet/minecraft/class_7826;named method_46310Lnet/minecraft/network/message/MessageChain;method_46310()Lnet/minecraft/class_7826;
-