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
-
IRecipeBase<T>
- Derived
- Inherited Members
- Extension Methods
Fields
Ingredients
...or alternatively for recipes with multiple ingredients
public CraftingRecipeIngredient[] Ingredients
Field Value
Output
public JsonItemStack Output
Field Value
RecipeId
public int RecipeId
Field Value
Properties
Enabled
public bool Enabled { get; set; }
Property Value
Ingredient
public CraftingRecipeIngredient Ingredient { get; set; }
Property Value
Name
public AssetLocation Name { get; set; }
Property Value
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
IWorldAccessorsourceForErrorLogging
string