Expansion for IItemStack
Methods
Apply a food trait to the stack
Returns:
Return Type: IItemStack
// 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 |