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

27 lines
1.5 KiB
Plaintext
Raw Normal View History

CLASS net/minecraft/class_7471 net/minecraft/network/message/SignedMessage
COMMENT A signed message, consisting of the signature, the signed content,
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.
FIELD field_39786 SERVERBOUND_TIME_TO_LIVE Ljava/time/Duration;
FIELD field_39787 CLIENTBOUND_TIME_TO_LIVE Ljava/time/Duration;
METHOD method_43867 verify (Lnet/minecraft/class_7428;)Z
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
COMMENT {@return whether the message can be verified using the public key <strong>or if the
COMMENT player does not have the key</strong>}
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