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
named net/minecraft/util/Identifier$Serializer
intermediary net/minecraft/class_2960$class_2961
official akr$a
  • Constructor Details

    • Serializer

      public Serializer()
  • Method Details

    • deserialize

      public Identifier deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException
      Specified by:
      deserialize in interface JsonDeserializer<Identifier>
      Throws:
      JsonParseException
      Mappings:
      Namespace Name Mixin selector
      named deserialize Lnet/minecraft/util/Identifier$Serializer;deserialize(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/util/Identifier;
      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;
      official a Lakr$a;a(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lakr;
    • serialize

      public JsonElement serialize(Identifier identifier, Type type, JsonSerializationContext jsonSerializationContext)
      Specified by:
      serialize in interface JsonSerializer<Identifier>
      Mappings:
      Namespace Name Mixin selector
      named serialize Lnet/minecraft/util/Identifier$Serializer;serialize(Lnet/minecraft/util/Identifier;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;
      official a Lakr$a;a(Lakr;Ljava/lang/reflect/Type;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;