Table of Contents

Class RecipeBase<T>

Namespace
Vintagestory.API.Common
Assembly
VintagestoryAPI.dll

Creates a new base recipe type. Almost all recipe types extend from this.

[DocumentAsJson]
public abstract class RecipeBase<T>

Type Parameters

T

The resulting recipe type.

Inheritance
RecipeBase<T>
Derived

Fields

Ingredient (Required)

A single ingredient for this recipe. If you need to use more than one ingredient, see Ingredients.
Required if not using Ingredients.

[DocumentAsJson]
public CraftingRecipeIngredient Ingredient { get; set; }

Field Value

CraftingRecipeIngredient

Ingredients (Required)

An array of ingredients for this recipe. If only using a single ingredient, see Ingredient.
Required if not using Ingredient.

[DocumentAsJson]
public CraftingRecipeIngredient[] Ingredients

Field Value

CraftingRecipeIngredient[]

Output (Required)

The output when the recipe is successful.

[DocumentAsJson]
public JsonItemStack Output

Field Value

JsonItemStack

Enabled (Optional) (Default: True)

Should this recipe be loaded by the game?

[DocumentAsJson]
public bool Enabled { get; set; }

Field Value

bool

Name (Optional) (Default: Asset Path)

Adds a name to this recipe. Used for logging, and determining helve hammer workability for smithing recipes.

[DocumentAsJson]
public AssetLocation Name { get; set; }

Field Value

AssetLocation