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(JsonObject json,
T entry,
JsonSerializationContext context) |
T |
fromJson(JsonObject jsonObject,
JsonDeserializationContext jsonDeserializationContext) |
abstract T |
fromJson(JsonObject json,
JsonDeserializationContext context,
LootCondition[] conditions) |
void |
toJson(JsonObject jsonObject,
T t,
JsonSerializationContext jsonSerializationContext) |
public final void toJson(JsonObject jsonObject, T t, JsonSerializationContext jsonSerializationContext)
toJson
in interface JsonSerializer<T extends LootPoolEntry>
public final T fromJson(JsonObject jsonObject, JsonDeserializationContext jsonDeserializationContext)
fromJson
in interface JsonSerializer<T extends LootPoolEntry>
public abstract void addEntryFields(JsonObject json, T entry, JsonSerializationContext context)
public abstract T fromJson(JsonObject json, JsonDeserializationContext context, LootCondition[] conditions)