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