Struct RecipeIngredientConsumeProperties
- Namespace
- Vintagestory.API.Common
- Assembly
- VintagestoryAPI.dll
public struct RecipeIngredientConsumeProperties
- Inherited Members
- Extension Methods
Properties
BreakOnZeroDurability
If set to False item will not break when it durability reaches zero.
public bool BreakOnZeroDurability { readonly get; set; }
Property Value
Consume
Should ingredient be consumed on crafting.
If set to true Quantity will be removed from ItemStack.
Other wise DurabilityChange will be applied to item, if it is not equal to 0.
public bool Consume { readonly get; set; }
Property Value
DurabilityChange
Durability change on being used for crafting.
Positive number will result in durability increase. Negative in decrease.
public int DurabilityChange { readonly get; set; }
Property Value
DurabilityCost
Equal to -DurabilityChange. Durability of item will be reduced by this amount if it is not consumed
public int DurabilityCost { readonly get; set; }
Property Value
Quantity
How ItemStack size will be reduced.
public int Quantity { readonly get; set; }