Package net.minecraft.text
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) serialize
(Text text, Type type, JsonSerializationContext jsonSerializationContext)
-
Constructor Details
-
Serializer
public Serializer()
-
-
Method Details
-
deserialize
public MutableText deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException - Specified by:
deserialize
in interfaceJsonDeserializer<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 interfaceJsonSerializer<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;
-