Table of Contents

Interface IRecipeIngredient

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

Properties

AllowedVariants

string[]? AllowedVariants { get; set; }

Property Value

string[]

Code

AssetLocation? Code { get; set; }

Property Value

AssetLocation

ConsumeProperties

RecipeIngredientConsumeProperties ConsumeProperties { get; }

Property Value

RecipeIngredientConsumeProperties

Id

Used to reference ingredients, auto assigned if not specified

string Id { get; set; }

Property Value

string

MatchingType

EnumRecipeMatchType MatchingType { get; set; }

Property Value

EnumRecipeMatchType

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

ResolvedItemStack

ItemStack? ResolvedItemStack { get; set; }

Property Value

ItemStack

ResolvedTags

IEnumerable<TagCondition<TagSet>>? ResolvedTags { get; }

Property Value

IEnumerable<TagCondition<TagSet>>

ReturnedStack

JsonItemStack? ReturnedStack { get; set; }

Property Value

JsonItemStack

SkipVariants

string[]? SkipVariants { get; set; }

Property Value

string[]

Type

EnumItemClass Type { get; set; }

Property Value

EnumItemClass

Methods

FillPlaceHolder(string, string)

void FillPlaceHolder(string key, string value)

Parameters

key string
value string

MatchTags(TagSet)

bool MatchTags(TagSet tags)

Parameters

tags TagSet

Returns

bool

Resolve(IWorldAccessor, string)

bool Resolve(IWorldAccessor world, string sourceForErrorLogging)

Parameters

world IWorldAccessor
sourceForErrorLogging string

Returns

bool

ResolveTags(IWorldAccessor)

void ResolveTags(IWorldAccessor world)

Parameters

world IWorldAccessor

SatisfiesAsIngredient(ItemStack, bool)

bool SatisfiesAsIngredient(ItemStack inputStack, bool checkStackSize = true)

Parameters

inputStack ItemStack
checkStackSize bool

Returns

bool