Interface MessageChain.Unpacker

Enclosing class:
MessageChain
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface MessageChain.Unpacker
Unpacker creates a signed message on the server with the server's preceding message signature when they receive a message. Unpacked messages can then be verified to check the message chain's legitimacy.

Messages must be unpacked in the order of the message's reception, as it affects the resulting signed message.

See Also:
Mappings:
Namespace Name
official sg$a
intermediary net/minecraft/class_7610$class_7611
named net/minecraft/network/message/MessageChain$Unpacker
  • Field Details

    • UNSIGNED

      static final MessageChain.Unpacker UNSIGNED
      Mappings:
      Namespace Name Mixin selector
      official a Lsg$a;a:Lsg$a;
      intermediary field_39951 Lnet/minecraft/class_7610$class_7611;field_39951:Lnet/minecraft/class_7610$class_7611;
      named UNSIGNED Lnet/minecraft/network/message/MessageChain$Unpacker;UNSIGNED:Lnet/minecraft/network/message/MessageChain$Unpacker;
  • Method Details

    • unpack

      SignedMessage unpack(MessageChain.Signature signature, MessageMetadata metadata, DecoratedContents content, LastSeenMessageList lastSeenMessages)
      Mappings:
      Namespace Name Mixin selector
      official unpack Lsg$a;unpack(Lsg$c;Lsa;Lri;Lrw;)Lsd;
      intermediary unpack Lnet/minecraft/class_7610$class_7611;unpack(Lnet/minecraft/class_7610$class_7613;Lnet/minecraft/class_7470;Lnet/minecraft/class_7634;Lnet/minecraft/class_7635;)Lnet/minecraft/class_7471;
      named unpack Lnet/minecraft/network/message/MessageChain$Unpacker;unpack(Lnet/minecraft/network/message/MessageChain$Signature;Lnet/minecraft/network/message/MessageMetadata;Lnet/minecraft/network/message/DecoratedContents;Lnet/minecraft/network/message/LastSeenMessageList;)Lnet/minecraft/network/message/SignedMessage;