RecipeEvents
RecipeEvents posts callbacks around recipe synchronization and modification.
Events
| Method | When |
|---|---|
recipesReceived { event -> ... } | The server sends the recipe list to the client. |
modifyRecipes { event -> ... } | Recipes are being modified before they are applied. |
Example
RecipeEvents.modifyRecipes { event ->
// Modify recipe JSONs here
println "Modifying recipes"
}