public abstract static class CombinedEntry.Serializer<T extends CombinedEntry> extends LootEntry.Serializer<T>
Constructor and Description |
---|
Serializer(Identifier id,
Class<T> type) |
Modifier and Type | Method and Description |
---|---|
T |
fromJson(JsonObject jsonObject,
JsonDeserializationContext jsonDeserializationContext,
LootCondition[] lootCondition) |
protected abstract T |
fromJson(JsonObject json,
JsonDeserializationContext context,
LootEntry[] children,
LootCondition[] conditions) |
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 CombinedEntry>
public final T fromJson(JsonObject jsonObject, JsonDeserializationContext jsonDeserializationContext, LootCondition[] lootCondition)
fromJson
in class LootEntry.Serializer<T extends CombinedEntry>
protected abstract T fromJson(JsonObject json, JsonDeserializationContext context, LootEntry[] children, LootCondition[] conditions)