registerRecipe

fun registerRecipe(recipes: List<CRecipe>, plugin: JavaPlugin = CustomCrafter.getInstance(), calledAsync: Boolean = false)

Registers the provided recipes and fires RegisterCustomRecipeEvent.

Parameters

recipes

Recipes to register

plugin

Plugin instance registering the recipes

calledAsync

Called from async processing or not. (Default = false)

Throws

if recipes contains duplicate names under the current strict level

if any recipe in recipes is invalid