public static class LootEntries.Serializer extends Object implements JsonDeserializer<LootEntry>, JsonSerializer<LootEntry>
Constructor and Description |
---|
Serializer() |
Modifier and Type | Method and Description |
---|---|
LootEntry |
deserialize(JsonElement jsonElement,
Type type,
JsonDeserializationContext jsonDeserializationContext) |
private static LootEntry.Serializer<LootEntry> |
getSerializer(Class<?> clazz) |
JsonElement |
serialize(LootEntry lootEntry,
Type type,
JsonSerializationContext jsonSerializationContext) |
public LootEntry deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext)
deserialize
in interface JsonDeserializer<LootEntry>
public JsonElement serialize(LootEntry lootEntry, Type type, JsonSerializationContext jsonSerializationContext)
serialize
in interface JsonSerializer<LootEntry>
private static LootEntry.Serializer<LootEntry> getSerializer(Class<?> clazz)