The item type that the component will be attached to.
Optional
options: Partial<ItemTypeFoodComponentOptions>The options for the food component.
Protected
Readonly
collectionThe component collection of the item type.
Protected
conversionThe item type that this food component converts to when used.
Readonly
identifierThe component identifier of the item type.
Protected
Readonly
typeThe item type of the component.
Static
Readonly
identifierThe component identifier of the item type.
Protected
componentThe component value of the item type.
Get whether the item can always be eaten, regardless of hunger.
True if the item can always be eaten, false otherwise.
Get the item type that this food component converts to when used.
The item type that this food component converts to.
Set whether the item can always be eaten, regardless of hunger.
True if the item can always be eaten, false otherwise.
Set the item type that this food component converts to when used.
The item type that this food component converts to.
Static
from
Create a new food component for an item type.