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
parentCraftingRecipeIngredient
Properties
AllowedVariants
public string[]? AllowedVariants { get; set; }
Property Value
- string[]
Code
public AssetLocation? Code { get; set; }
Property Value
MatchingType
public EnumRecipeMatchType MatchingType { get; set; }
Property Value
ResolvedItemStack
public ItemStack? ResolvedItemStack { get; set; }
Property Value
SkipVariants
public string[]? SkipVariants { get; set; }
Property Value
- string[]
Tags
public ComplexTagCondition<TagSet> Tags { get; set; }
Property Value
Type
public EnumItemClass Type { get; set; }
Property Value
Methods
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
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)