Table of Contents

Class RecipeBase<T>

Namespace
Vintagestory.API.Common
Assembly
VintagestoryAPI.dll

Creates a new base recipe type.

public abstract class RecipeBase<T> : IRecipeBase<T>

Type Parameters

T

The resulting recipe type.

Inheritance
RecipeBase<T>
Implements
Derived
Inherited Members

Fields

Ingredients

...or alternatively for recipes with multiple ingredients

public CraftingRecipeIngredient[] Ingredients

Field Value

CraftingRecipeIngredient[]

Output

public JsonItemStack Output

Field Value

JsonItemStack

RecipeId

public int RecipeId

Field Value

int

Properties

Enabled

public bool Enabled { get; set; }

Property Value

bool

Ingredient

public CraftingRecipeIngredient Ingredient { get; set; }

Property Value

CraftingRecipeIngredient

Name

public AssetLocation Name { get; set; }

Property Value

AssetLocation

Methods

Clone()

public abstract T Clone()

Returns

T

GetNameToCodeMapping(IWorldAccessor)

public abstract Dictionary<string, string[]> GetNameToCodeMapping(IWorldAccessor world)

Parameters

world IWorldAccessor

Returns

Dictionary<string, string[]>

Resolve(IWorldAccessor, string)

public abstract bool Resolve(IWorldAccessor world, string sourceForErrorLogging)

Parameters

world IWorldAccessor
sourceForErrorLogging string

Returns

bool