The item type that the component will be attached to.
Optionaloptions: Partial<ItemTypeFoodComponentOptions>The options for the food component.
Protected ReadonlycollectionThe component collection of the item type.
ProtectedconversionThe item type that this food component converts to when used.
ReadonlyidentifierThe component identifier of the item type.
Protected ReadonlytypeThe item type of the component.
Static ReadonlyidentifierThe component identifier of the item type.
ProtectedcomponentThe 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 effects that are applied when the food is consumed.
An array of the effect info.
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 effects that are applied when the food is consumed.
An array of the effect info to set.
Set the item type that this food component converts to when used.
The item type that this food component converts to.
Staticfrom
Create a new food component for an item type.