public static class CopyStateFunction.Serializer extends ConditionalLootFunction.Serializer<CopyStateFunction>
Constructor and Description |
---|
Serializer() |
Modifier and Type | Method and Description |
---|---|
CopyStateFunction |
fromJson(JsonObject jsonObject,
JsonDeserializationContext jsonDeserializationContext,
LootCondition[] lootCondition) |
void |
toJson(JsonObject jsonObject,
CopyStateFunction copyStateFunction,
JsonSerializationContext jsonSerializationContext) |
fromJson
public void toJson(JsonObject jsonObject, CopyStateFunction copyStateFunction, JsonSerializationContext jsonSerializationContext)
toJson
in interface JsonSerializer<CopyStateFunction>
toJson
in class ConditionalLootFunction.Serializer<CopyStateFunction>
public CopyStateFunction fromJson(JsonObject jsonObject, JsonDeserializationContext jsonDeserializationContext, LootCondition[] lootCondition)
fromJson
in class ConditionalLootFunction.Serializer<CopyStateFunction>