public static class LootTable.Serializer extends Object implements JsonDeserializer<LootTable>, JsonSerializer<LootTable>
Constructor and Description |
---|
Serializer() |
Modifier and Type | Method and Description |
---|---|
LootTable |
deserialize(JsonElement jsonElement,
Type type,
JsonDeserializationContext jsonDeserializationContext) |
JsonElement |
serialize(LootTable lootTable,
Type type,
JsonSerializationContext jsonSerializationContext) |
public LootTable deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException
deserialize
in interface JsonDeserializer<LootTable>
JsonParseException
public JsonElement serialize(LootTable lootTable, Type type, JsonSerializationContext jsonSerializationContext)
serialize
in interface JsonSerializer<LootTable>