Package net.minecraft.util
Class Identifier.Serializer
java.lang.Object
net.minecraft.util.Identifier.Serializer
- All Implemented Interfaces:
JsonDeserializer<Identifier>
,JsonSerializer<Identifier>
- Enclosing class:
Identifier
public static class Identifier.Serializer
extends Object
implements JsonDeserializer<Identifier>, JsonSerializer<Identifier>
- Mappings:
Namespace Name official ahg$b
intermediary net/minecraft/class_2960$class_2961
named net/minecraft/util/Identifier$Serializer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) serialize
(Identifier identifier, Type type, JsonSerializationContext jsonSerializationContext)
-
Constructor Details
-
Serializer
public Serializer()
-
-
Method Details
-
deserialize
public Identifier deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException - Specified by:
deserialize
in interfaceJsonDeserializer<Identifier>
- Throws:
JsonParseException
- Mappings:
Namespace Name Mixin selector official a
Lahg$b;a(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lahg;
intermediary method_12840
Lnet/minecraft/class_2960$class_2961;method_12840(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/class_2960;
named deserialize
Lnet/minecraft/util/Identifier$Serializer;deserialize(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/util/Identifier;
-
serialize
public JsonElement serialize(Identifier identifier, Type type, JsonSerializationContext jsonSerializationContext) - Specified by:
serialize
in interfaceJsonSerializer<Identifier>
- Mappings:
Namespace Name Mixin selector official a
Lahg$b;a(Lahg;Ljava/lang/reflect/Type;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;
intermediary method_12839
Lnet/minecraft/class_2960$class_2961;method_12839(Lnet/minecraft/class_2960;Ljava/lang/reflect/Type;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;
named serialize
Lnet/minecraft/util/Identifier$Serializer;serialize(Lnet/minecraft/util/Identifier;Ljava/lang/reflect/Type;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;
-