addRecipe

fun addRecipe(id: ResourceLocation, recipe: 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): ResourceLocation
fun addRecipe(recipeId: ResourceLocation, builder: SmithingTransformRecipeBuilder): ResourceLocation
fun addRecipe(recipeId: ResourceLocation, builder: SmithingTrimRecipeBuilder): ResourceLocation
fun addRecipe(recipeId: ResourceLocation, builder: SpecialRecipeBuilder): ResourceLocation

Add only the recipe from a recipe builder.

Return

the passed recipe identifier

Parameters

recipeId

the recipe identifier

builder

the recipe builder