true if the following food can be eaten even when the player has full food stats. By default this property is false, the only vanilla food items with this property set to true are golden apple and enchanted apple.
cooldown time of the following food item, 0 by default. The only vanilla food item with cooldown time is chorus fruit.
cooldown type of the following food item, or null if it was not specified.
The only known vanilla food cooldown type is chorusfruit
.
numeric ID of the item that the following FoodItemComponent is associated with.
the amount of nutrition points added to the player's food stats when eating the food. 2 nutrition = 1 hunger bar.
numeric ID of the action that will be performed after eating the food.
pointer to the native object wrapped by the following native interface object, represented by a signed 64-bit integer
list of numeric IDs of potion effects that will be removed from the player if present, when eating the following food.
the amount of saturation points added to the player's food stats when eating the food.
the saturation modifier that is used in calculating the amount of saturation points
added to the player's food stats when eating the food.
The formula is saturation = nutrition * saturationModifier
the name ID of the item, that will be added to the inventory after eating the food
(for example, mushroom stew -> "bowl"
), or null if this item was not specified.
Generated using TypeDoc
Object containing all the food properties of the specific item. Returned by ItemsModule.getFood
1.4