2019-06-28 17:55:20 -04:00
|
|
|
CLASS net/minecraft/class_2561 net/minecraft/text/Text
|
2020-04-25 20:29:03 -04:00
|
|
|
COMMENT A text. Can be converted to and from JSON format.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>Each text has a tree structure, embodying all its {@link
|
|
|
|
COMMENT #getSiblings() siblings}. To iterate contents in the text and all
|
2021-04-11 08:08:07 -04:00
|
|
|
COMMENT its siblings, call {@code visit} methods.
|
2020-04-25 20:29:03 -04:00
|
|
|
COMMENT
|
|
|
|
COMMENT <p>This interface does not expose mutation operations. For mutation,
|
2021-04-11 08:08:07 -04:00
|
|
|
COMMENT refer to {@link MutableText}.
|
2020-04-25 20:29:03 -04:00
|
|
|
COMMENT
|
|
|
|
COMMENT @see MutableText
|
2022-04-22 15:57:36 -04:00
|
|
|
METHOD method_10851 getContent ()Lnet/minecraft/class_7417;
|
|
|
|
COMMENT {@return the content of the text}
|
2019-12-02 08:55:18 -05:00
|
|
|
METHOD method_10855 getSiblings ()Ljava/util/List;
|
2020-04-25 20:29:03 -04:00
|
|
|
COMMENT Returns the siblings of this text.
|
2019-12-02 08:55:18 -05:00
|
|
|
METHOD method_10858 asTruncatedString (I)Ljava/lang/String;
|
2020-04-25 20:29:03 -04:00
|
|
|
COMMENT Returns the full string representation of this text, truncated beyond
|
|
|
|
COMMENT the supplied {@code length}.
|
2019-12-02 08:55:18 -05:00
|
|
|
ARG 1 length
|
2020-04-25 20:29:03 -04:00
|
|
|
COMMENT the max length allowed for the string representation of the text
|
2019-12-02 08:55:18 -05:00
|
|
|
METHOD method_10866 getStyle ()Lnet/minecraft/class_2583;
|
2020-04-25 20:29:03 -04:00
|
|
|
COMMENT Returns the style of this text.
|
2021-04-28 10:25:24 -04:00
|
|
|
METHOD method_27655 (ILjava/lang/StringBuilder;Ljava/lang/String;)Ljava/util/Optional;
|
|
|
|
ARG 2 string
|
2022-05-21 06:06:27 -04:00
|
|
|
METHOD method_27661 copy ()Lnet/minecraft/class_5250;
|
|
|
|
COMMENT Copies the text's content, the style, and the siblings.
|
2020-04-25 20:29:03 -04:00
|
|
|
COMMENT
|
2021-04-11 08:08:07 -04:00
|
|
|
COMMENT <p>A shallow copy is made for the siblings.
|
2022-05-21 06:06:27 -04:00
|
|
|
METHOD method_27662 copyContentOnly ()Lnet/minecraft/class_5250;
|
|
|
|
COMMENT Copies the text's content, excluding the styles or siblings.
|
2020-07-31 15:35:46 -04:00
|
|
|
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
|
2020-08-05 13:08:42 -04:00
|
|
|
METHOD method_30937 asOrderedText ()Lnet/minecraft/class_5481;
|
2021-04-23 15:08:59 -04:00
|
|
|
METHOD method_36135 (Ljava/util/List;Lnet/minecraft/class_2583;Ljava/lang/String;)Ljava/util/Optional;
|
|
|
|
ARG 1 styleOverride
|
|
|
|
ARG 2 text
|
|
|
|
METHOD method_36136 getWithStyle (Lnet/minecraft/class_2583;)Ljava/util/List;
|
|
|
|
ARG 1 style
|
2022-04-20 14:55:16 -04:00
|
|
|
METHOD method_43466 score (Ljava/lang/String;Ljava/lang/String;)Lnet/minecraft/class_5250;
|
|
|
|
ARG 0 name
|
|
|
|
ARG 1 objective
|
|
|
|
METHOD method_43467 selector (Ljava/lang/String;Ljava/util/Optional;)Lnet/minecraft/class_5250;
|
|
|
|
ARG 0 pattern
|
|
|
|
ARG 1 separator
|
|
|
|
METHOD method_43468 nbt (Ljava/lang/String;ZLjava/util/Optional;Lnet/minecraft/class_7419;)Lnet/minecraft/class_5250;
|
|
|
|
ARG 0 rawPath
|
|
|
|
ARG 1 interpret
|
|
|
|
ARG 2 separator
|
2022-05-02 08:52:17 -04:00
|
|
|
ARG 3 dataSource
|
2022-04-20 14:55:16 -04:00
|
|
|
METHOD method_43469 translatable (Ljava/lang/String;[Ljava/lang/Object;)Lnet/minecraft/class_5250;
|
|
|
|
ARG 0 key
|
|
|
|
ARG 1 args
|
|
|
|
METHOD method_43470 literal (Ljava/lang/String;)Lnet/minecraft/class_5250;
|
|
|
|
ARG 0 string
|
|
|
|
METHOD method_43471 translatable (Ljava/lang/String;)Lnet/minecraft/class_5250;
|
|
|
|
ARG 0 key
|
|
|
|
METHOD method_43472 keybind (Ljava/lang/String;)Lnet/minecraft/class_5250;
|
|
|
|
ARG 0 string
|
|
|
|
METHOD method_43473 empty ()Lnet/minecraft/class_5250;
|
2022-07-06 07:57:17 -04:00
|
|
|
METHOD method_44745 contains (Lnet/minecraft/class_2561;)Z
|
|
|
|
COMMENT {@return whether the text contains {@code text}, without considering styles}
|
|
|
|
ARG 1 text
|
|
|
|
METHOD method_44746 withoutStyle ()Ljava/util/List;
|
2023-01-20 07:38:25 -05:00
|
|
|
METHOD method_48321 translatableWithFallback (Ljava/lang/String;Ljava/lang/String;)Lnet/minecraft/class_5250;
|
|
|
|
ARG 0 key
|
|
|
|
ARG 1 fallback
|
|
|
|
METHOD method_48322 translatableWithFallback (Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Lnet/minecraft/class_5250;
|
|
|
|
ARG 0 key
|
2023-02-18 08:09:52 -05:00
|
|
|
ARG 1 fallback
|
2023-01-20 07:38:25 -05:00
|
|
|
ARG 2 args
|
2019-06-28 17:55:20 -04:00
|
|
|
CLASS class_2562 Serializer
|
2020-04-25 20:29:03 -04:00
|
|
|
COMMENT A JSON serializer for {@link Text}.
|
2019-06-28 17:55:20 -04:00
|
|
|
FIELD field_11752 JSON_READER_LINE_START Ljava/lang/reflect/Field;
|
|
|
|
FIELD field_11753 JSON_READER_POS Ljava/lang/reflect/Field;
|
|
|
|
FIELD field_11754 GSON Lcom/google/gson/Gson;
|
|
|
|
METHOD deserialize (Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Ljava/lang/Object;
|
|
|
|
ARG 1 json
|
|
|
|
ARG 2 type
|
|
|
|
ARG 3 context
|
|
|
|
METHOD method_10867 toJson (Lnet/minecraft/class_2561;)Ljava/lang/String;
|
|
|
|
ARG 0 text
|
|
|
|
METHOD method_10868 toJsonTree (Lnet/minecraft/class_2561;)Lcom/google/gson/JsonElement;
|
|
|
|
ARG 0 text
|
2020-04-22 11:59:47 -04:00
|
|
|
METHOD method_10872 fromJson (Lcom/google/gson/JsonElement;)Lnet/minecraft/class_5250;
|
2019-06-07 07:18:04 -04:00
|
|
|
ARG 0 json
|
2020-04-22 11:59:47 -04:00
|
|
|
METHOD method_10873 fromLenientJson (Ljava/lang/String;)Lnet/minecraft/class_5250;
|
2019-06-07 07:18:04 -04:00
|
|
|
ARG 0 json
|
2019-06-28 17:55:20 -04:00
|
|
|
METHOD method_10875 addStyle (Lnet/minecraft/class_2583;Lcom/google/gson/JsonObject;Lcom/google/gson/JsonSerializationContext;)V
|
2019-06-07 07:18:04 -04:00
|
|
|
ARG 1 style
|
|
|
|
ARG 2 json
|
|
|
|
ARG 3 context
|
2020-04-22 11:59:47 -04:00
|
|
|
METHOD method_10877 fromJson (Ljava/lang/String;)Lnet/minecraft/class_5250;
|
2019-06-07 07:18:04 -04:00
|
|
|
ARG 0 json
|
2020-04-22 11:59:47 -04:00
|
|
|
METHOD method_10879 fromJson (Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_5250;
|
2019-06-28 17:55:20 -04:00
|
|
|
ARG 0 reader
|
|
|
|
METHOD method_10880 getPosition (Lcom/google/gson/stream/JsonReader;)I
|
|
|
|
ARG 0 reader
|
2021-04-28 10:25:24 -04:00
|
|
|
METHOD method_36327 (Lcom/google/gson/JsonObject;Lcom/google/gson/JsonSerializationContext;Lnet/minecraft/class_2561;)V
|
|
|
|
ARG 3 separator
|
|
|
|
METHOD method_36328 addSeparator (Lcom/google/gson/JsonSerializationContext;Lcom/google/gson/JsonObject;Ljava/util/Optional;)V
|
|
|
|
ARG 1 context
|
|
|
|
ARG 2 json
|
|
|
|
ARG 3 separator
|
|
|
|
METHOD method_36329 getSeparator (Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;Lcom/google/gson/JsonObject;)Ljava/util/Optional;
|
|
|
|
ARG 1 type
|
|
|
|
ARG 2 context
|
|
|
|
ARG 3 json
|
2022-05-12 13:27:32 -04:00
|
|
|
METHOD method_43474 optimizeArgument (Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
ARG 0 text
|
|
|
|
METHOD method_43858 toSortedJsonString (Lnet/minecraft/class_2561;)Ljava/lang/String;
|
|
|
|
ARG 0 text
|
2019-06-07 07:18:04 -04:00
|
|
|
METHOD serialize (Ljava/lang/Object;Ljava/lang/reflect/Type;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;
|
|
|
|
ARG 1 text
|
|
|
|
ARG 2 type
|
|
|
|
ARG 3 context
|