Class Text.Serialization

java.lang.Object
net.minecraft.text.Text.Serialization
Enclosing interface:
Text

public static class Text.Serialization extends Object
Mappings:
Namespace Name
official ur$a
intermediary net/minecraft/class_2561$class_2562
named net/minecraft/text/Text$Serialization
  • Field Details

    • GSON

      private static final Gson GSON
      Mappings:
      Namespace Name Mixin selector
      official a Lur$a;a:Lcom/google/gson/Gson;
      intermediary field_11754 Lnet/minecraft/class_2561$class_2562;field_11754:Lcom/google/gson/Gson;
      named GSON Lnet/minecraft/text/Text$Serialization;GSON:Lcom/google/gson/Gson;
    • JSON_READER_POS

      private static final Field JSON_READER_POS
      Mappings:
      Namespace Name Mixin selector
      official b Lur$a;b:Ljava/lang/reflect/Field;
      intermediary field_11753 Lnet/minecraft/class_2561$class_2562;field_11753:Ljava/lang/reflect/Field;
      named JSON_READER_POS Lnet/minecraft/text/Text$Serialization;JSON_READER_POS:Ljava/lang/reflect/Field;
    • JSON_READER_LINE_START

      private static final Field JSON_READER_LINE_START
      Mappings:
      Namespace Name Mixin selector
      official c Lur$a;c:Ljava/lang/reflect/Field;
      intermediary field_11752 Lnet/minecraft/class_2561$class_2562;field_11752:Ljava/lang/reflect/Field;
      named JSON_READER_LINE_START Lnet/minecraft/text/Text$Serialization;JSON_READER_LINE_START:Ljava/lang/reflect/Field;
  • Constructor Details

    • Serialization

      private Serialization()
  • Method Details

    • fromJson

      static MutableText fromJson(JsonElement json)
      Mappings:
      Namespace Name Mixin selector
      official b Lur$a;b(Lcom/google/gson/JsonElement;)Lvf;
      intermediary method_10871 Lnet/minecraft/class_2561$class_2562;method_10871(Lcom/google/gson/JsonElement;)Lnet/minecraft/class_5250;
      named fromJson Lnet/minecraft/text/Text$Serialization;fromJson(Lcom/google/gson/JsonElement;)Lnet/minecraft/text/MutableText;
    • toJson

      static JsonElement toJson(Text text)
      Mappings:
      Namespace Name Mixin selector
      official c Lur$a;c(Lur;)Lcom/google/gson/JsonElement;
      intermediary method_10874 Lnet/minecraft/class_2561$class_2562;method_10874(Lnet/minecraft/class_2561;)Lcom/google/gson/JsonElement;
      named toJson Lnet/minecraft/text/Text$Serialization;toJson(Lnet/minecraft/text/Text;)Lcom/google/gson/JsonElement;
    • toJsonString

      public static String toJsonString(Text text)
      Mappings:
      Namespace Name Mixin selector
      official a Lur$a;a(Lur;)Ljava/lang/String;
      intermediary method_10867 Lnet/minecraft/class_2561$class_2562;method_10867(Lnet/minecraft/class_2561;)Ljava/lang/String;
      named toJsonString Lnet/minecraft/text/Text$Serialization;toJsonString(Lnet/minecraft/text/Text;)Ljava/lang/String;
    • toJsonTree

      public static JsonElement toJsonTree(Text text)
      Mappings:
      Namespace Name Mixin selector
      official b Lur$a;b(Lur;)Lcom/google/gson/JsonElement;
      intermediary method_10868 Lnet/minecraft/class_2561$class_2562;method_10868(Lnet/minecraft/class_2561;)Lcom/google/gson/JsonElement;
      named toJsonTree Lnet/minecraft/text/Text$Serialization;toJsonTree(Lnet/minecraft/text/Text;)Lcom/google/gson/JsonElement;
    • fromJson

      @Nullable public static @Nullable MutableText fromJson(String json)
      Mappings:
      Namespace Name Mixin selector
      official a Lur$a;a(Ljava/lang/String;)Lvf;
      intermediary method_10877 Lnet/minecraft/class_2561$class_2562;method_10877(Ljava/lang/String;)Lnet/minecraft/class_5250;
      named fromJson Lnet/minecraft/text/Text$Serialization;fromJson(Ljava/lang/String;)Lnet/minecraft/text/MutableText;
    • fromJsonTree

      @Nullable public static @Nullable MutableText fromJsonTree(@Nullable @Nullable JsonElement json)
      Mappings:
      Namespace Name Mixin selector
      official a Lur$a;a(Lcom/google/gson/JsonElement;)Lvf;
      intermediary method_10872 Lnet/minecraft/class_2561$class_2562;method_10872(Lcom/google/gson/JsonElement;)Lnet/minecraft/class_5250;
      named fromJsonTree Lnet/minecraft/text/Text$Serialization;fromJsonTree(Lcom/google/gson/JsonElement;)Lnet/minecraft/text/MutableText;
    • fromLenientJson

      @Nullable public static @Nullable MutableText fromLenientJson(String json)
      Mappings:
      Namespace Name Mixin selector
      official b Lur$a;b(Ljava/lang/String;)Lvf;
      intermediary method_10873 Lnet/minecraft/class_2561$class_2562;method_10873(Ljava/lang/String;)Lnet/minecraft/class_5250;
      named fromLenientJson Lnet/minecraft/text/Text$Serialization;fromLenientJson(Ljava/lang/String;)Lnet/minecraft/text/MutableText;
    • fromJson

      public static MutableText fromJson(com.mojang.brigadier.StringReader reader)
      Mappings:
      Namespace Name Mixin selector
      official a Lur$a;a(Lcom/mojang/brigadier/StringReader;)Lvf;
      intermediary method_10879 Lnet/minecraft/class_2561$class_2562;method_10879(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/class_5250;
      named fromJson Lnet/minecraft/text/Text$Serialization;fromJson(Lcom/mojang/brigadier/StringReader;)Lnet/minecraft/text/MutableText;
    • getPosition

      private static int getPosition(JsonReader reader)
      Mappings:
      Namespace Name Mixin selector
      official a Lur$a;a(Lcom/google/gson/stream/JsonReader;)I
      intermediary method_10880 Lnet/minecraft/class_2561$class_2562;method_10880(Lcom/google/gson/stream/JsonReader;)I
      named getPosition Lnet/minecraft/text/Text$Serialization;getPosition(Lcom/google/gson/stream/JsonReader;)I