Class MessageChain

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

public class MessageChain extends Object
A class for handling the "message chain".

invalid @link
MessageHeader
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.

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 tb
intermediary net/minecraft/class_7610
named net/minecraft/network/message/MessageChain
  • Field Details

    • field_40691

      private static final Logger field_40691
      Mappings:
      Namespace Name Mixin selector
      official a Ltb;a:Lorg/slf4j/Logger;
      intermediary field_40691 Lnet/minecraft/class_7610;field_40691:Lorg/slf4j/Logger;
      named field_40691 Lnet/minecraft/network/message/MessageChain;field_40691:Lorg/slf4j/Logger;
    • field_40692

      @Nullable private @Nullable class_7826 field_40692
      Mappings:
      Namespace Name Mixin selector
      official b Ltb;b:Ltc;
      intermediary field_40692 Lnet/minecraft/class_7610;field_40692:Lnet/minecraft/class_7826;
      named field_40692 Lnet/minecraft/network/message/MessageChain;field_40692:Lnet/minecraft/class_7826;
  • Constructor Details

    • MessageChain

      public MessageChain(UUID uUID, UUID uUID2)
  • Method Details

    • getPacker

      public MessageChain.Packer getPacker(Signer signer)
      Mappings:
      Namespace Name Mixin selector
      official a Ltb;a(Lanx;)Ltb$c;
      intermediary method_44880 Lnet/minecraft/class_7610;method_44880(Lnet/minecraft/class_7501;)Lnet/minecraft/class_7610$class_7612;
      named getPacker Lnet/minecraft/network/message/MessageChain;getPacker(Lnet/minecraft/network/encryption/Signer;)Lnet/minecraft/network/message/MessageChain$Packer;
    • getUnpacker

      public MessageChain.Unpacker getUnpacker(PlayerPublicKey playerPublicKey)
      Mappings:
      Namespace Name Mixin selector
      official a Ltb;a(Lbvv;)Ltb$b;
      intermediary method_44874 Lnet/minecraft/class_7610;method_44874(Lnet/minecraft/class_7428;)Lnet/minecraft/class_7610$class_7611;
      named getUnpacker Lnet/minecraft/network/message/MessageChain;getUnpacker(Lnet/minecraft/network/encryption/PlayerPublicKey;)Lnet/minecraft/network/message/MessageChain$Unpacker;
    • method_46310

      @Nullable private @Nullable class_7826 method_46310()
      Mappings:
      Namespace Name Mixin selector
      official a Ltb;a()Ltc;
      intermediary method_46310 Lnet/minecraft/class_7610;method_46310()Lnet/minecraft/class_7826;
      named method_46310 Lnet/minecraft/network/message/MessageChain;method_46310()Lnet/minecraft/class_7826;