Expansion for IItemStack

Link to expansion-for-iitemstack

Name: applyFoodTrait

Apply a food trait to the stack

Returns:
Return Type: IItemStack

ZenScript
Copy
// IItemStack.applyFoodTrait(trait as string) as IItemStack

<item:tfc:apple>.applyFoodTrait("salted");
ParameterTypeDescription
Parameter
trait
Type
string
Description
the trait we are adding to it