public abstract static class LootPoolEntry.Serializer<T extends LootPoolEntry> extends Object implements JsonSerializer<T>
| Constructor and Description |
|---|
Serializer() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
addEntryFields(com.google.gson.JsonObject json,
T entry,
com.google.gson.JsonSerializationContext context) |
T |
fromJson(com.google.gson.JsonObject jsonObject,
com.google.gson.JsonDeserializationContext jsonDeserializationContext) |
abstract T |
fromJson(com.google.gson.JsonObject json,
com.google.gson.JsonDeserializationContext context,
LootCondition[] conditions) |
void |
toJson(com.google.gson.JsonObject jsonObject,
T t,
com.google.gson.JsonSerializationContext jsonSerializationContext) |
public final void toJson(com.google.gson.JsonObject jsonObject,
T t,
com.google.gson.JsonSerializationContext jsonSerializationContext)
toJson in interface JsonSerializer<T extends LootPoolEntry>public final T fromJson(com.google.gson.JsonObject jsonObject, com.google.gson.JsonDeserializationContext jsonDeserializationContext)
fromJson in interface JsonSerializer<T extends LootPoolEntry>public abstract void addEntryFields(com.google.gson.JsonObject json,
T entry,
com.google.gson.JsonSerializationContext context)
public abstract T fromJson(com.google.gson.JsonObject json, com.google.gson.JsonDeserializationContext context, LootCondition[] conditions)