addRecipe

fun addRecipe(id: ResourceLocation, recipe: Recipe<*>): ResourceKey<Recipe<*>>

Add a recipe.

Return

a ResourceKey pointing to the created recipe

Parameters

id

the recipe identifier

recipe

the recipe


fun addRecipe(recipeId: ResourceLocation, builder: RecipeBuilder): ResourceKey<Recipe<*>>
fun addRecipe(recipeId: ResourceLocation, builder: SmithingTransformRecipeBuilder): ResourceKey<Recipe<*>>
fun addRecipe(recipeId: ResourceLocation, builder: SmithingTrimRecipeBuilder): ResourceKey<Recipe<*>>
fun addRecipe(recipeId: ResourceLocation, builder: SpecialRecipeBuilder): ResourceKey<Recipe<*>>

Add only the recipe from a recipe builder.

Return

a ResourceKey pointing to the created recipe

Parameters

recipeId

the recipe identifier

builder

the recipe builder