Table of Contents

Interface IRecipeIngredient

Namespace
Vintagestory.API.Common
Assembly
VintagestoryAPI.dll
public interface IRecipeIngredient : IRecipeIngredientBase, IByteSerializable, ICloneable
Inherited Members
Extension Methods

Properties

ConsumeProperties

RecipeIngredientConsumeProperties ConsumeProperties { get; }

Property Value

RecipeIngredientConsumeProperties

Id

Used to reference ingredients, auto assigned if not specified

string Id { get; set; }

Property Value

string

Name

Attaches a name to a wildcard in an ingredient. This is used to substitute the value into the output. Only required if using a wildcard.

string? Name { get; set; }

Property Value

string

Quantity

int Quantity { get; set; }

Property Value

int

RecipeAttributes

JsonObject? RecipeAttributes { get; set; }

Property Value

JsonObject

ReturnedStack

JsonItemStack? ReturnedStack { get; set; }

Property Value

JsonItemStack

Methods

FillPlaceHolder(string, string)

void FillPlaceHolder(string key, string value)

Parameters

key string
value string

GetMatchType(string?, bool)

public static EnumRecipeMatchType GetMatchType(string? code, bool named = false)

Parameters

code string
named bool

Returns

EnumRecipeMatchType

IsAdvancedWildcard(string)

public static bool IsAdvancedWildcard(string code)

Parameters

code string

Returns

bool

IsBasicWildcard(string)

public static bool IsBasicWildcard(string code)

Parameters

code string

Returns

bool

IsRegex(string)

public static bool IsRegex(string code)

Parameters

code string

Returns

bool

Resolve(IWorldAccessor, string)

bool Resolve(IWorldAccessor world, string sourceForErrorLogging)

Parameters

world IWorldAccessor
sourceForErrorLogging string

Returns

bool