Improve MessageDecorator javadoc (#3206)

* Fix wrong word in MessageDecorator javadoc

* explain it better

* Fix package

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
apple502j 2022-06-10 21:55:10 +09:00 committed by GitHub
parent da89a51699
commit 8c4525746c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -11,9 +11,10 @@ CLASS net/minecraft/class_7492 net/minecraft/network/message/MessageDecorator
COMMENT "Only Show Secure Chat" option}, they will see the undecorated message. Therefore, COMMENT "Only Show Secure Chat" option}, they will see the undecorated message. Therefore,
COMMENT message decorator is <strong>not recommended for censoring messages</strong>. COMMENT message decorator is <strong>not recommended for censoring messages</strong>.
COMMENT COMMENT
COMMENT <p>It is <strong>very important that the decorator be idempotent; i.e. return the COMMENT <p>It is <strong>very important that the decorator be pure; i.e. return the
COMMENT same text when given the same text (and sender)</strong>. If this is not followed COMMENT same text when given the same text (and sender)</strong>. Otherwise, the server
COMMENT correctly, the server will discard the message. For example, a decorator that appends COMMENT detects a mismatch between the preview and the actual message, and discards the message
COMMENT as it is now considered improperly signed. For example, a decorator that appends
COMMENT the time the decoration was applied would be likely to fail, since there is usually COMMENT the time the decoration was applied would be likely to fail, since there is usually
COMMENT a delay between the previewing and the submission. COMMENT a delay between the previewing and the submission.
FIELD field_39384 NOOP Lnet/minecraft/class_7492; FIELD field_39384 NOOP Lnet/minecraft/class_7492;