public abstract static class LootEntry.Serializer<T extends LootEntry> extends Object
Modifier and Type | Field and Description |
---|---|
private Identifier |
id |
private Class<T> |
type |
Modifier | Constructor and Description |
---|---|
protected |
Serializer(Identifier id,
Class<T> type) |
Modifier and Type | Method and Description |
---|---|
abstract T |
fromJson(JsonObject json,
JsonDeserializationContext context,
LootCondition[] conditions) |
Identifier |
getIdentifier() |
Class<T> |
getType() |
abstract void |
toJson(JsonObject json,
T entry,
JsonSerializationContext context) |
private final Identifier id
protected Serializer(Identifier id, Class<T> type)
public Identifier getIdentifier()
public abstract void toJson(JsonObject json, T entry, JsonSerializationContext context)
public abstract T fromJson(JsonObject json, JsonDeserializationContext context, LootCondition[] conditions)