Rename Text#copy and shallowCopy (#3172)

* Rename Text#copy and shallowCopy

* Apply suggestions from code review

Co-authored-by: liach <7806504+liach@users.noreply.github.com>

Co-authored-by: liach <7806504+liach@users.noreply.github.com>
This commit is contained in:
apple502j 2022-05-21 19:06:27 +09:00 committed by GitHub
parent 32a545e7df
commit 2f8ce2e639
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -22,12 +22,12 @@ CLASS net/minecraft/class_2561 net/minecraft/text/Text
COMMENT Returns the style of this text.
METHOD method_27655 (ILjava/lang/StringBuilder;Ljava/lang/String;)Ljava/util/Optional;
ARG 2 string
METHOD method_27661 shallowCopy ()Lnet/minecraft/class_5250;
COMMENT Copies the text itself, the style, and the siblings.
METHOD method_27661 copy ()Lnet/minecraft/class_5250;
COMMENT Copies the text's content, the style, and the siblings.
COMMENT
COMMENT <p>A shallow copy is made for the siblings.
METHOD method_27662 copy ()Lnet/minecraft/class_5250;
COMMENT Copies the text itself, excluding the styles or siblings.
METHOD method_27662 copyContentOnly ()Lnet/minecraft/class_5250;
COMMENT Copies the text's content, excluding the styles or siblings.
METHOD method_30163 of (Ljava/lang/String;)Lnet/minecraft/class_2561;
COMMENT Creates a literal text with the given string as content.
ARG 0 string