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