Expansion for IItemStack
Link to expansion-for-iitemstack
Methods
Link to methods
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");
Parameter | Type | Description |
---|---|---|
Parameter trait | Type string | Description the trait we are adding to it |