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 named net/minecraft/text/Text$Serializer
intermediary net/minecraft/class_2561$class_8822
official xv$b
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) serialize
(Text text, Type type, JsonSerializationContext jsonSerializationContext)
-
Field Details
-
registries
- Mappings:
Namespace Name Mixin selector named registries
Lnet/minecraft/text/Text$Serializer;registries:Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;
intermediary field_49665
Lnet/minecraft/class_2561$class_8822;field_49665:Lnet/minecraft/class_7225$class_7874;
official a
Lxv$b;a:Ljs$a;
-
-
Constructor Details
-
Serializer
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/text/Text$Serializer;<init>(Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)V
intermediary <init>
Lnet/minecraft/class_2561$class_8822;<init>(Lnet/minecraft/class_7225$class_7874;)V
official <init>
Lxv$b;<init>(Ljs$a;)V
-
-
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 named deserialize
Lnet/minecraft/text/Text$Serializer;deserialize(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/text/MutableText;
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;
official a
Lxv$b;a(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lyj;
-
serialize
public JsonElement serialize(Text text, Type type, JsonSerializationContext jsonSerializationContext) - Specified by:
serialize
in interfaceJsonSerializer<Text>
- Mappings:
Namespace Name Mixin selector named serialize
Lnet/minecraft/text/Text$Serializer;serialize(Lnet/minecraft/text/Text;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;
official a
Lxv$b;a(Lxv;Ljava/lang/reflect/Type;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;
-