Private constructorReadonly canIf true, the player can always eat this item (even when not hungry).
This property can throw when used.
Readonly nutritionRepresents how much nutrition this food item will give an entity when eaten.
This property can throw when used.
Readonly saturationWhen an item is eaten, this value is used according to this formula (nutrition * saturation_modifier * 2) to apply a saturation buff.
This property can throw when used.
Readonly typeIdentifier of the component.
Readonly usingWhen specified, converts the active item to the one specified by this property.
This property can throw when used.
Static Readonly componentWhether the component is valid.
This function is deprecated and will be removed in 2.0.0.
Returns whether the component is valid. A component is considered valid if its owner is valid, in addition to any addition to any additional validation required by the component.
When present on an item, this item is consumable by entities. Note that this component only applies to data-driven items.