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.

public abstract class RecipeBase<T>

Type Parameters

T

The resulting recipe type.

Inheritance
RecipeBase<T>
Derived

Fields

Ingredients (Required)

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

public CraftingRecipeIngredient[] Ingredients

Field Value

CraftingRecipeIngredient[]

Output (Required)

The output when the recipe is successful.

public JsonItemStack Output

Field Value

JsonItemStack

Properties

Ingredient (Required)

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

public CraftingRecipeIngredient Ingredient { get; set; }

Property Value

CraftingRecipeIngredient

Enabled (Optional) (Default: True)

Should this recipe be loaded by the game?

public bool Enabled { get; set; }

Property Value

bool

Name (Optional) (Default: Asset Path)

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

public AssetLocation Name { get; set; }

Property Value

AssetLocation