Package net.minecraft.text
Class Text.Serialization
java.lang.Object
net.minecraft.text.Text.Serialization
- Enclosing interface:
Text
- Mappings:
Namespace Name official tl$aintermediary net/minecraft/class_2561$class_2562named net/minecraft/text/Text$Serialization
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static MutableTextfromJson(JsonElement json) static MutableTextfromJson(com.mojang.brigadier.StringReader reader) static @Nullable MutableTextstatic @Nullable MutableTextfromJsonTree(@Nullable JsonElement json) static @Nullable MutableTextfromLenientJson(String json) private static intgetPosition(JsonReader reader) (package private) static JsonElementstatic StringtoJsonString(Text text) static JsonElementtoJsonTree(Text text)
-
Field Details
-
GSON
- Mappings:
Namespace Name Mixin selector official aLtl$a;a:Lcom/google/gson/Gson;intermediary field_11754Lnet/minecraft/class_2561$class_2562;field_11754:Lcom/google/gson/Gson;named GSONLnet/minecraft/text/Text$Serialization;GSON:Lcom/google/gson/Gson;
-
JSON_READER_POS
- Mappings:
Namespace Name Mixin selector official bLtl$a;b:Ljava/lang/reflect/Field;intermediary field_11753Lnet/minecraft/class_2561$class_2562;field_11753:Ljava/lang/reflect/Field;named JSON_READER_POSLnet/minecraft/text/Text$Serialization;JSON_READER_POS:Ljava/lang/reflect/Field;
-
JSON_READER_LINE_START
- Mappings:
Namespace Name Mixin selector official cLtl$a;c:Ljava/lang/reflect/Field;intermediary field_11752Lnet/minecraft/class_2561$class_2562;field_11752:Ljava/lang/reflect/Field;named JSON_READER_LINE_STARTLnet/minecraft/text/Text$Serialization;JSON_READER_LINE_START:Ljava/lang/reflect/Field;
-
-
Constructor Details
-
Serialization
private Serialization()
-
-
Method Details
-
fromJson
- Mappings:
Namespace Name Mixin selector official bLtl$a;b(Lcom/google/gson/JsonElement;)Ltz;intermediary method_10871Lnet/minecraft/class_2561$class_2562;method_10871(Lcom/google/gson/JsonElement;)Lnet/minecraft/class_5250;named fromJsonLnet/minecraft/text/Text$Serialization;fromJson(Lcom/google/gson/JsonElement;)Lnet/minecraft/text/MutableText;
-
toJson
- Mappings:
Namespace Name Mixin selector official cLtl$a;c(Ltl;)Lcom/google/gson/JsonElement;intermediary method_10874Lnet/minecraft/class_2561$class_2562;method_10874(Lnet/minecraft/class_2561;)Lcom/google/gson/JsonElement;named toJsonLnet/minecraft/text/Text$Serialization;toJson(Lnet/minecraft/text/Text;)Lcom/google/gson/JsonElement;
-
toJsonString
- Mappings:
Namespace Name Mixin selector official aLtl$a;a(Ltl;)Ljava/lang/String;intermediary method_10867Lnet/minecraft/class_2561$class_2562;method_10867(Lnet/minecraft/class_2561;)Ljava/lang/String;named toJsonStringLnet/minecraft/text/Text$Serialization;toJsonString(Lnet/minecraft/text/Text;)Ljava/lang/String;
-
toJsonTree
- Mappings:
Namespace Name Mixin selector official bLtl$a;b(Ltl;)Lcom/google/gson/JsonElement;intermediary method_10868Lnet/minecraft/class_2561$class_2562;method_10868(Lnet/minecraft/class_2561;)Lcom/google/gson/JsonElement;named toJsonTreeLnet/minecraft/text/Text$Serialization;toJsonTree(Lnet/minecraft/text/Text;)Lcom/google/gson/JsonElement;
-
fromJson
- Mappings:
Namespace Name Mixin selector official aLtl$a;a(Ljava/lang/String;)Ltz;intermediary method_10877Lnet/minecraft/class_2561$class_2562;method_10877(Ljava/lang/String;)Lnet/minecraft/class_5250;named fromJsonLnet/minecraft/text/Text$Serialization;fromJson(Ljava/lang/String;)Lnet/minecraft/text/MutableText;
-
fromJsonTree
- Mappings:
Namespace Name Mixin selector official aLtl$a;a(Lcom/google/gson/JsonElement;)Ltz;intermediary method_10872Lnet/minecraft/class_2561$class_2562;method_10872(Lcom/google/gson/JsonElement;)Lnet/minecraft/class_5250;named fromJsonTreeLnet/minecraft/text/Text$Serialization;fromJsonTree(Lcom/google/gson/JsonElement;)Lnet/minecraft/text/MutableText;
-
fromLenientJson
- Mappings:
Namespace Name Mixin selector official bLtl$a;b(Ljava/lang/String;)Ltz;intermediary method_10873Lnet/minecraft/class_2561$class_2562;method_10873(Ljava/lang/String;)Lnet/minecraft/class_5250;named fromLenientJsonLnet/minecraft/text/Text$Serialization;fromLenientJson(Ljava/lang/String;)Lnet/minecraft/text/MutableText;
-
fromJson
- Mappings:
Namespace Name Mixin selector official aLtl$a;a(Lcom/mojang/brigadier/StringReader;)Ltz;intermediary method_10879Lnet/minecraft/class_2561$class_2562;method_10879(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_5250;named fromJsonLnet/minecraft/text/Text$Serialization;fromJson(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/text/MutableText;
-
getPosition
- Mappings:
Namespace Name Mixin selector official aLtl$a;a(Lcom/google/gson/stream/JsonReader;)Iintermediary method_10880Lnet/minecraft/class_2561$class_2562;method_10880(Lcom/google/gson/stream/JsonReader;)Inamed getPositionLnet/minecraft/text/Text$Serialization;getPosition(Lcom/google/gson/stream/JsonReader;)I
-