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 acq$b
intermediary net/minecraft/class_2960$class_2961
named net/minecraft/util/Identifier$Serializer
  • 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
      official a Lacq$b;a(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lacq;
      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 interface JsonSerializer<Identifier>
      Mappings:
      Namespace Name Mixin selector
      official a Lacq$b;a(Lacq;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;