Package net.minecraft.loot
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>
-
Constructor Summary
Constructors Constructor Description Serializer()
-
Method Summary
Modifier and Type Method Description LootPool
deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext)
JsonElement
serialize(LootPool lootPool, Type type, JsonSerializationContext jsonSerializationContext)
-
Constructor Details
-
Serializer
public Serializer()
-
-
Method Details
-
deserialize
public LootPool deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException- Specified by:
deserialize
in interfaceJsonDeserializer<LootPool>
- Throws:
JsonParseException
-
serialize
public JsonElement serialize(LootPool lootPool, Type type, JsonSerializationContext jsonSerializationContext)- Specified by:
serialize
in interfaceJsonSerializer<LootPool>
-