yarn/mappings/net/minecraft/network/message/SignedMessage.mapping

70 lines
3.5 KiB
Plaintext

CLASS net/minecraft/class_7471 net/minecraft/network/message/SignedMessage
COMMENT A signed message, consisting of the signature, the signed content,
COMMENT the message body, the link to its preceding message, and the optional
COMMENT unsigned content supplied when the message decorator modified the message.
COMMENT
COMMENT <p>Note that the signature itself might not be valid.
FIELD field_39786 SERVERBOUND_TIME_TO_LIVE Ljava/time/Duration;
FIELD field_39787 CLIENTBOUND_TIME_TO_LIVE Ljava/time/Duration;
FIELD field_40688 NIL_UUID Ljava/util/UUID;
FIELD field_40846 CODEC Lcom/mojang/serialization/MapCodec;
METHOD method_44607 withoutUnsigned ()Lnet/minecraft/class_7471;
COMMENT {@return the signed chat message with {@link #unsignedContent} removed if it exists}
COMMENT
COMMENT @implNote This returns itself if the message does not have an unsigned content.
METHOD method_44747 isExpiredOnServer (Ljava/time/Instant;)Z
ARG 1 currentTime
METHOD method_44748 isExpiredOnClient (Ljava/time/Instant;)Z
ARG 1 currentTime
METHOD method_44858 verify (Lnet/minecraft/class_7500;)Z
ARG 1 verifier
METHOD method_44862 getSignedContent ()Ljava/lang/String;
METHOD method_44863 withUnsignedContent (Lnet/minecraft/class_2561;)Lnet/minecraft/class_7471;
ARG 1 unsignedContent
METHOD method_44864 getTimestamp ()Ljava/time/Instant;
METHOD method_44865 getSalt ()J
METHOD method_45040 canVerifyFrom (Ljava/util/UUID;)Z
COMMENT {@return whether the message can be verified as from {@code sender}}
COMMENT
COMMENT <p>This does not actually verify that the message is, in fact, from {@code sender}.
COMMENT Rather, this returns whether it's possible to verify that {@code sender} sent this
COMMENT message.
ARG 1 sender
METHOD method_45041 ofUnsigned (Ljava/lang/String;)Lnet/minecraft/class_7471;
COMMENT {@return a new signed message with empty signature}
ARG 0 content
METHOD method_45097 withFilterMask (Lnet/minecraft/class_7649;)Lnet/minecraft/class_7471;
COMMENT {@return the signed chat message with {@code filterMask} added}
ARG 1 filterMask
METHOD method_45098 ofUnsigned (Ljava/util/UUID;Ljava/lang/String;)Lnet/minecraft/class_7471;
COMMENT {@return a new signed message with given sender UUID and empty signature}
ARG 0 sender
ARG 1 content
METHOD method_45099 withFilterMaskEnabled (Z)Lnet/minecraft/class_7471;
COMMENT {@return this signed chat message if {@code enabled} is {@code true},
COMMENT otherwise a new signed chat message without filtered parts}
ARG 1 enabled
METHOD method_45100 isFullyFiltered ()Z
METHOD method_46289 (Lnet/minecraft/class_7498$class_7499;)V
ARG 1 updater
METHOD method_46290 update (Lnet/minecraft/class_7498$class_7499;Lnet/minecraft/class_7826;Lnet/minecraft/class_7608;)V
ARG 0 updater
ARG 1 link
ARG 2 body
METHOD method_46291 getContent ()Lnet/minecraft/class_2561;
METHOD method_46292 getSender ()Ljava/util/UUID;
METHOD method_46293 isSenderMissing ()Z
METHOD method_46294 hasSignature ()Z
METHOD method_46608 (Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/kinds/App;
ARG 0 instance
METHOD method_46609 (Lnet/minecraft/class_7471;)Ljava/util/Optional;
ARG 0 message
METHOD method_46610 (Lnet/minecraft/class_7826;Ljava/util/Optional;Lnet/minecraft/class_7608;Ljava/util/Optional;Lnet/minecraft/class_7649;)Lnet/minecraft/class_7471;
ARG 0 link
ARG 1 signature
ARG 2 signedBody
ARG 3 unsignedContent
ARG 4 filterMask
METHOD method_46611 (Lnet/minecraft/class_7471;)Ljava/util/Optional;
ARG 0 message