Class Identifier.Serializer

java.lang.Object
net.minecraft.util.Identifier.Serializer
All Implemented Interfaces:
com.google.gson.JsonDeserializer<Identifier>, com.google.gson.JsonSerializer<Identifier>
Enclosing class:
Identifier

public static class Identifier.Serializer extends Object implements com.google.gson.JsonDeserializer<Identifier>, com.google.gson.JsonSerializer<Identifier>
Mappings:
Namespace Name
official aew$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(com.google.gson.JsonElement jsonElement, Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext) throws com.google.gson.JsonParseException
      Specified by:
      deserialize in interface com.google.gson.JsonDeserializer<Identifier>
      Throws:
      com.google.gson.JsonParseException
      Mappings:
      Namespace Name Mixin selector
      official a Laew$b;a(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Laew;
      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 com.google.gson.JsonElement serialize(Identifier identifier, Type type, com.google.gson.JsonSerializationContext jsonSerializationContext)
      Specified by:
      serialize in interface com.google.gson.JsonSerializer<Identifier>
      Mappings:
      Namespace Name Mixin selector
      official a Laew$b;a(Laew;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;