public abstract static class LeafEntry.Serializer<T extends LeafEntry> extends LootPoolEntry.Serializer<T>
Constructor and Description |
---|
Serializer() |
Modifier and Type | Method and Description |
---|---|
void |
addEntryFields(JsonObject jsonObject,
T t,
JsonSerializationContext jsonSerializationContext) |
protected abstract T |
fromJson(JsonObject entryJson,
JsonDeserializationContext context,
int weight,
int quality,
LootCondition[] conditions,
LootFunction[] functions) |
T |
fromJson(JsonObject jsonObject,
JsonDeserializationContext jsonDeserializationContext,
LootCondition[] lootCondition) |
fromJson, toJson
public void addEntryFields(JsonObject jsonObject, T t, JsonSerializationContext jsonSerializationContext)
addEntryFields
in class LootPoolEntry.Serializer<T extends LeafEntry>
public final T fromJson(JsonObject jsonObject, JsonDeserializationContext jsonDeserializationContext, LootCondition[] lootCondition)
fromJson
in class LootPoolEntry.Serializer<T extends LeafEntry>
protected abstract T fromJson(JsonObject entryJson, JsonDeserializationContext context, int weight, int quality, LootCondition[] conditions, LootFunction[] functions)