public abstract static class ConditionalLootFunction.Serializer<T extends ConditionalLootFunction> extends Object implements JsonSerializer<T>
Constructor and Description |
---|
Serializer() |
Modifier and Type | Method and Description |
---|---|
T |
fromJson(JsonObject jsonObject,
JsonDeserializationContext jsonDeserializationContext) |
abstract T |
fromJson(JsonObject json,
JsonDeserializationContext context,
LootCondition[] conditions) |
void |
toJson(JsonObject jsonObject,
T t,
JsonSerializationContext jsonSerializationContext) |
public void toJson(JsonObject jsonObject, T t, JsonSerializationContext jsonSerializationContext)
toJson
in interface JsonSerializer<T extends ConditionalLootFunction>
public final T fromJson(JsonObject jsonObject, JsonDeserializationContext jsonDeserializationContext)
fromJson
in interface JsonSerializer<T extends ConditionalLootFunction>
public abstract T fromJson(JsonObject json, JsonDeserializationContext context, LootCondition[] conditions)