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
ConsumeProperties
RecipeIngredientConsumeProperties ConsumeProperties { get; }
Property Value
Id
Used to reference ingredients, auto assigned if not specified
string Id { get; set; }
Property Value
MatchingType
EnumRecipeMatchType MatchingType { get; set; }
Property Value
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
Quantity
int Quantity { get; set; }
Property Value
RecipeAttributes
JsonObject? RecipeAttributes { get; set; }
Property Value
ResolvedItemStack
ItemStack? ResolvedItemStack { get; set; }
Property Value
ResolvedTags
IEnumerable<TagCondition<TagSet>>? ResolvedTags { get; }
Property Value
ReturnedStack
JsonItemStack? ReturnedStack { get; set; }
Property Value
SkipVariants
string[]? SkipVariants { get; set; }
Property Value
- string[]
Type
EnumItemClass Type { get; set; }
Property Value
Methods
FillPlaceHolder(string, string)
void FillPlaceHolder(string key, string value)
Parameters
MatchTags(TagSet)
bool MatchTags(TagSet tags)
Parameters
tagsTagSet
Returns
Resolve(IWorldAccessor, string)
bool Resolve(IWorldAccessor world, string sourceForErrorLogging)
Parameters
worldIWorldAccessorsourceForErrorLoggingstring
Returns
ResolveTags(IWorldAccessor)
void ResolveTags(IWorldAccessor world)
Parameters
worldIWorldAccessor
SatisfiesAsIngredient(ItemStack, bool)
bool SatisfiesAsIngredient(ItemStack inputStack, bool checkStackSize = true)