Class LootPool.Serializer

java.lang.Object
net.minecraft.world.level.storage.loot.LootPool.Serializer
All Implemented Interfaces:
com.google.gson.JsonDeserializer<LootPool>, com.google.gson.JsonSerializer<LootPool>
Enclosing class:
LootPool

public static class LootPool.Serializer extends Object implements com.google.gson.JsonDeserializer<LootPool>, com.google.gson.JsonSerializer<LootPool>
  • Constructor Details

    • Serializer

      public Serializer()
  • Method Details

    • deserialize

      public LootPool deserialize(com.google.gson.JsonElement p_79090_, Type p_79091_, com.google.gson.JsonDeserializationContext p_79092_) throws com.google.gson.JsonParseException
      Specified by:
      deserialize in interface com.google.gson.JsonDeserializer<LootPool>
      Throws:
      com.google.gson.JsonParseException
    • serialize

      public com.google.gson.JsonElement serialize(LootPool p_79094_, Type p_79095_, com.google.gson.JsonSerializationContext p_79096_)
      Specified by:
      serialize in interface com.google.gson.JsonSerializer<LootPool>