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
Id
Used to reference ingredients, auto assigned if not specified
string Id { 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
ReturnedStack
JsonItemStack? ReturnedStack { get; set; }
Property Value
Methods
FillPlaceHolder(string, string)
void FillPlaceHolder(string key, string value)
Parameters
GetMatchType(string?, bool)
public static EnumRecipeMatchType GetMatchType(string? code, bool named = false)
Parameters
Returns
IsAdvancedWildcard(string)
public static bool IsAdvancedWildcard(string code)
Parameters
codestring
Returns
IsBasicWildcard(string)
public static bool IsBasicWildcard(string code)
Parameters
codestring
Returns
IsRegex(string)
public static bool IsRegex(string code)
Parameters
codestring
Returns
Resolve(IWorldAccessor, string)
bool Resolve(IWorldAccessor world, string sourceForErrorLogging)
Parameters
worldIWorldAccessorsourceForErrorLoggingstring