Table of Contents

Class FastSearchCraftingRecipeIngredient

Namespace
Vintagestory.API.Common
Assembly
VintagestoryAPI.dll

A simplified version of a CraftingRecipeIngredient, for faster searching and ingredient matching; note this object stores the actual ResolvedItemStack object (if any - there may be none for a Tags based ingredient) Open in GitHub

public class FastSearchCraftingRecipeIngredient : IRecipeIngredientBase
Inheritance
FastSearchCraftingRecipeIngredient
Implements
Inherited Members
Extension Methods

Constructors

FastSearchCraftingRecipeIngredient(CraftingRecipeIngredient)

public FastSearchCraftingRecipeIngredient(CraftingRecipeIngredient parent)

Parameters

parent CraftingRecipeIngredient

Properties

AllowedVariants

public string[]? AllowedVariants { get; set; }

Property Value

string[]

Code

public AssetLocation? Code { get; set; }

Property Value

AssetLocation

MatchingType

public EnumRecipeMatchType MatchingType { get; set; }

Property Value

EnumRecipeMatchType

ResolvedItemStack

public ItemStack? ResolvedItemStack { get; set; }

Property Value

ItemStack

SkipVariants

public string[]? SkipVariants { get; set; }

Property Value

string[]

Tags

public ComplexTagCondition<TagSet> Tags { get; set; }

Property Value

ComplexTagCondition<TagSet>

Type

public EnumItemClass Type { get; set; }

Property Value

EnumItemClass

Methods

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

SatisfiesAsIngredient(ItemStack, bool)

public bool SatisfiesAsIngredient(ItemStack inputStack, bool unused = false)

Parameters

inputStack ItemStack
unused bool

Returns

bool