2022-07-15 10:12:43 -04:00
|
|
|
CLASS net/minecraft/class_7610 net/minecraft/network/message/MessageChain
|
|
|
|
COMMENT A class for handling the "message chain".
|
|
|
|
COMMENT
|
2022-10-23 11:18:41 -04:00
|
|
|
COMMENT <p>A message chain (since 1.19.3) is implemented using an integer that is incremented
|
|
|
|
COMMENT for each message, called "index". {@link MessageLink} represents the link that a
|
|
|
|
COMMENT particular message has.
|
2022-07-15 10:12:43 -04:00
|
|
|
COMMENT
|
2022-10-23 11:18:41 -04:00
|
|
|
COMMENT <p>Clients signing a message with its preceding message's index is called
|
2022-07-15 10:12:43 -04:00
|
|
|
COMMENT "packing", and the server creating a signed message with its preceding message's
|
2022-10-23 11:18:41 -04:00
|
|
|
COMMENT index is called "unpacking". Unpacked messages can then be verified to check the
|
2022-07-15 10:12:43 -04:00
|
|
|
COMMENT chain's legitimacy.
|
2022-10-23 11:18:41 -04:00
|
|
|
COMMENT
|
|
|
|
COMMENT @see MessageLink
|
|
|
|
FIELD field_40691 LOGGER Lorg/slf4j/Logger;
|
|
|
|
FIELD field_40692 link Lnet/minecraft/class_7826;
|
2023-11-28 02:48:05 -05:00
|
|
|
FIELD field_47703 lastTimestamp Ljava/time/Instant;
|
|
|
|
METHOD <init> (Ljava/util/UUID;Ljava/util/UUID;)V
|
|
|
|
ARG 1 sender
|
|
|
|
ARG 2 sessionId
|
2022-10-19 13:11:34 -04:00
|
|
|
METHOD method_44874 getUnpacker (Lnet/minecraft/class_7428;)Lnet/minecraft/class_7610$class_7611;
|
2022-10-23 11:18:41 -04:00
|
|
|
ARG 1 playerPublicKey
|
2022-10-19 13:11:34 -04:00
|
|
|
METHOD method_44880 getPacker (Lnet/minecraft/class_7501;)Lnet/minecraft/class_7610$class_7612;
|
2022-10-23 11:18:41 -04:00
|
|
|
ARG 1 signer
|
|
|
|
METHOD method_46310 nextLink ()Lnet/minecraft/class_7826;
|
|
|
|
METHOD method_46311 (Lnet/minecraft/class_7501;Lnet/minecraft/class_7608;)Lnet/minecraft/class_7469;
|
|
|
|
ARG 2 body
|
|
|
|
METHOD method_46312 (Lnet/minecraft/class_7428;Lnet/minecraft/class_7500;Lnet/minecraft/class_7469;Lnet/minecraft/class_7608;)Lnet/minecraft/class_7471;
|
|
|
|
ARG 3 signature
|
|
|
|
ARG 4 body
|
|
|
|
METHOD method_46313 (Lnet/minecraft/class_7826;Lnet/minecraft/class_7608;Lnet/minecraft/class_7498$class_7499;)V
|
|
|
|
ARG 2 updatable
|
2022-07-15 10:12:43 -04:00
|
|
|
CLASS class_7611 Unpacker
|
|
|
|
COMMENT Unpacker creates a signed message on the server with the server's preceding message
|
2022-10-23 11:18:41 -04:00
|
|
|
COMMENT index when they receive a message. Unpacked messages can then be verified to check
|
2022-07-15 10:12:43 -04:00
|
|
|
COMMENT the message chain's legitimacy.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see MessageChain#getUnpacker
|
2023-11-28 02:48:05 -05:00
|
|
|
METHOD method_46315 (Ljava/util/function/BooleanSupplier;Ljava/util/UUID;Lnet/minecraft/class_7469;Lnet/minecraft/class_7608;)Lnet/minecraft/class_7471;
|
|
|
|
ARG 2 signature
|
|
|
|
ARG 3 body
|
2022-10-23 11:18:41 -04:00
|
|
|
METHOD unpack (Lnet/minecraft/class_7469;Lnet/minecraft/class_7608;)Lnet/minecraft/class_7471;
|
|
|
|
ARG 1 signature
|
|
|
|
ARG 2 body
|
2023-11-28 02:48:05 -05:00
|
|
|
METHOD unsigned (Ljava/util/UUID;Ljava/util/function/BooleanSupplier;)Lnet/minecraft/class_7610$class_7611;
|
|
|
|
ARG 0 sender
|
|
|
|
ARG 1 secureProfileEnforced
|
2022-07-15 10:12:43 -04:00
|
|
|
CLASS class_7612 Packer
|
2022-10-23 11:18:41 -04:00
|
|
|
COMMENT Packers sign a message on the client with its preceding message's index.
|
2022-07-15 10:12:43 -04:00
|
|
|
COMMENT
|
|
|
|
COMMENT @see MessageChain#getPacker
|
2022-10-23 11:18:41 -04:00
|
|
|
FIELD field_40694 NONE Lnet/minecraft/class_7610$class_7612;
|
|
|
|
METHOD method_46316 (Lnet/minecraft/class_7608;)Lnet/minecraft/class_7469;
|
|
|
|
ARG 0 body
|
|
|
|
METHOD pack (Lnet/minecraft/class_7608;)Lnet/minecraft/class_7469;
|
|
|
|
ARG 1 body
|
|
|
|
CLASS class_7825 MessageChainException
|
|
|
|
FIELD field_40693 shouldDisconnect Z
|
|
|
|
METHOD <init> (Lnet/minecraft/class_2561;Z)V
|
|
|
|
ARG 1 message
|
|
|
|
ARG 2 shouldDisconnect
|
|
|
|
METHOD method_46314 shouldDisconnect ()Z
|