Class Text.Serializer

java.lang.Object
net.minecraft.text.Text.Serializer
All Implemented Interfaces:
JsonDeserializer<MutableText>, JsonSerializer<Text>
Enclosing interface:
Text

public static class Text.Serializer extends Object implements JsonDeserializer<MutableText>, JsonSerializer<Text>
Mappings:
Namespace Name
official vf$b
intermediary net/minecraft/class_2561$class_8822
named net/minecraft/text/Text$Serializer
  • Constructor Details

    • Serializer

      public Serializer()
  • Method Details

    • deserialize

      public MutableText deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException
      Specified by:
      deserialize in interface JsonDeserializer<MutableText>
      Throws:
      JsonParseException
      Mappings:
      Namespace Name Mixin selector
      official a Lvf$b;a(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lvt;
      intermediary method_54161 Lnet/minecraft/class_2561$class_8822;method_54161(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/class_5250;
      named deserialize Lnet/minecraft/text/Text$Serializer;deserialize(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/text/MutableText;
    • serialize

      public JsonElement serialize(Text text, Type type, JsonSerializationContext jsonSerializationContext)
      Specified by:
      serialize in interface JsonSerializer<Text>
      Mappings:
      Namespace Name Mixin selector
      official a Lvf$b;a(Lvf;Ljava/lang/reflect/Type;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;
      intermediary method_54162 Lnet/minecraft/class_2561$class_8822;method_54162(Lnet/minecraft/class_2561;Ljava/lang/reflect/Type;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;
      named serialize Lnet/minecraft/text/Text$Serializer;serialize(Lnet/minecraft/text/Text;Ljava/lang/reflect/Type;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;