2022-06-01 13:39:22 -04:00
|
|
|
CLASS net/minecraft/class_7471 net/minecraft/network/message/SignedMessage
|
|
|
|
COMMENT A signed message, consisting of the signature, the signed content,
|
2022-05-17 05:56:35 -04:00
|
|
|
COMMENT and the optional unsigned content supplied when the chat decorator produced
|
|
|
|
COMMENT unsigned message due to the chat preview being disabled on either side.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>Note that the signature itself might not be valid.
|
2022-07-06 07:57:17 -04:00
|
|
|
FIELD field_39786 SERVERBOUND_TIME_TO_LIVE Ljava/time/Duration;
|
|
|
|
FIELD field_39787 CLIENTBOUND_TIME_TO_LIVE Ljava/time/Duration;
|
2022-07-15 10:12:43 -04:00
|
|
|
METHOD <init> (Lnet/minecraft/class_2540;)V
|
|
|
|
ARG 1 buf
|
2022-05-12 09:36:43 -04:00
|
|
|
METHOD method_43867 verify (Lnet/minecraft/class_7428;)Z
|
2022-05-17 05:56:35 -04:00
|
|
|
COMMENT {@return whether the message can be verified using the public key}
|
|
|
|
ARG 1 key
|
|
|
|
METHOD method_44125 getContent ()Lnet/minecraft/class_2561;
|
|
|
|
COMMENT {@return the content of the message}
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>This returns the unsigned content if present, and fallbacks to the signed content.
|
2022-07-08 09:17:43 -04:00
|
|
|
METHOD method_44310 verify (Lnet/minecraft/class_7436;)Z
|
2022-05-23 08:07:30 -04:00
|
|
|
COMMENT {@return whether the message can be verified using the public key <strong>or if the
|
|
|
|
COMMENT player does not have the key</strong>}
|
2022-07-15 10:12:43 -04:00
|
|
|
ARG 1 profile
|
2022-06-21 14:07:56 -04:00
|
|
|
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.
|
2022-07-06 07:57:17 -04:00
|
|
|
METHOD method_44747 isExpiredOnServer (Ljava/time/Instant;)Z
|
|
|
|
ARG 1 currentTime
|
|
|
|
METHOD method_44748 isExpiredOnClient (Ljava/time/Instant;)Z
|
|
|
|
ARG 1 currentTime
|
2022-07-15 10:12:43 -04:00
|
|
|
METHOD method_44858 verify (Lnet/minecraft/class_7500;)Z
|
|
|
|
ARG 1 verifier
|
|
|
|
METHOD method_44859 write (Lnet/minecraft/class_2540;)V
|
|
|
|
ARG 1 buf
|
2022-07-15 10:41:50 -04:00
|
|
|
METHOD method_44862 getSignedContent ()Lnet/minecraft/class_7634;
|
2022-07-15 10:12:43 -04:00
|
|
|
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_44866 createMetadata ()Lnet/minecraft/class_7470;
|
2022-07-20 12:54:35 -04:00
|
|
|
METHOD method_44995 toLastSeenMessageEntry ()Lnet/minecraft/class_7635$class_7609;
|
2022-07-26 13:33:57 -04:00
|
|
|
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.
|
2022-08-04 09:05:23 -04:00
|
|
|
ARG 1 sender
|
2022-07-26 13:33:57 -04:00
|
|
|
METHOD method_45041 ofUnsigned (Lnet/minecraft/class_7634;)Lnet/minecraft/class_7471;
|
|
|
|
COMMENT {@return a new signed message with empty signature}
|
|
|
|
ARG 0 content
|
2022-08-04 09:05:23 -04:00
|
|
|
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 (Lnet/minecraft/class_7470;Lnet/minecraft/class_7634;)Lnet/minecraft/class_7471;
|
|
|
|
COMMENT {@return a new signed message with given metadata and empty signature}
|
|
|
|
ARG 0 metadata
|
|
|
|
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
|