Miscellaneous Text and TranslatableText mappings (#1637)

* Misc Text and TranslatableText mappings

* Fixup: Apply liach's comments
This commit is contained in:
Sturmlilie 2020-07-31 21:35:46 +02:00 committed by GitHub
parent 2d5595b39a
commit 0c892b876d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -42,6 +42,9 @@ CLASS net/minecraft/class_2561 net/minecraft/text/Text
COMMENT <p>A shallow copy is made for the siblings.</p>
METHOD method_27662 copy ()Lnet/minecraft/class_5250;
COMMENT Copies the text itself, 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
CLASS class_2562 Serializer
COMMENT A JSON serializer for {@link Text}.
FIELD field_11752 JSON_READER_LINE_START Ljava/lang/reflect/Field;

View File

@ -17,3 +17,5 @@ CLASS net/minecraft/class_2588 net/minecraft/text/TranslatableText
METHOD method_11024 setTranslation (Ljava/lang/String;)V
ARG 1 translation
METHOD method_11025 updateTranslations ()V
METHOD method_29434 getArg (I)Lnet/minecraft/class_5348;
ARG 1 index