Companion

object Companion

Functions

Link copied to clipboard
fun getRecipeKey(file: File): NamespacedKey

Generates a NamespacedKey for a recipe file, assuming that is located under plugins/<addon name>/recipes/<recipe type namespace>/<recipe type name>/<recipe name>.json, which would generate the following key: <addon id>:<recipe type namespace>/<recipe type name>/<recipe name>

Link copied to clipboard
fun parseRecipeChoice(element: JsonElement): RecipeChoice
fun parseRecipeChoice(list: List<String>): RecipeChoice