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 LootPooldeserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext)JsonElementserialize(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:
deserializein interfaceJsonDeserializer<LootPool>- Throws:
JsonParseException
-
serialize
public JsonElement serialize(LootPool lootPool, Type type, JsonSerializationContext jsonSerializationContext)- Specified by:
serializein interfaceJsonSerializer<LootPool>
-