Class LootPool.Serializer

java.lang.Object
net.minecraft.loot.LootPool.Serializer
All Implemented Interfaces:
JsonDeserializer<LootPool>, JsonSerializer<LootPool>
Enclosing class:
LootPool

public static class LootPool.Serializer extends Object implements JsonDeserializer<LootPool>, JsonSerializer<LootPool>
Mappings:
Namespace Name
official dzr$b
intermediary net/minecraft/class_55$class_57
named net/minecraft/loot/LootPool$Serializer
  • Constructor Details

    • Serializer

      public Serializer()
  • Method Details

    • deserialize

      public LootPool deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException
      Specified by:
      deserialize in interface JsonDeserializer<LootPool>
      Throws:
      JsonParseException
      Mappings:
      Namespace Name Mixin selector
      official a Ldzr$b;a(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Ldzr;
      intermediary method_358 Lnet/minecraft/class_55$class_57;method_358(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/class_55;
      named deserialize Lnet/minecraft/loot/LootPool$Serializer;deserialize(Lcom/google/gson/JsonElement;Ljava/lang/reflect/Type;Lcom/google/gson/JsonDeserializationContext;)Lnet/minecraft/loot/LootPool;
    • serialize

      public JsonElement serialize(LootPool lootPool, Type type, JsonSerializationContext jsonSerializationContext)
      Specified by:
      serialize in interface JsonSerializer<LootPool>
      Mappings:
      Namespace Name Mixin selector
      official a Ldzr$b;a(Ldzr;Ljava/lang/reflect/Type;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;
      intermediary method_357 Lnet/minecraft/class_55$class_57;method_357(Lnet/minecraft/class_55;Ljava/lang/reflect/Type;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;
      named serialize Lnet/minecraft/loot/LootPool$Serializer;serialize(Lnet/minecraft/loot/LootPool;Ljava/lang/reflect/Type;Lcom/google/gson/JsonSerializationContext;)Lcom/google/gson/JsonElement;