ItemHelper#getFoodPoints(Material) - gets the amount of hunger an item restores (implemented on 1.20).
MaterialTag.food_points - returns the amount of hunger an item restores when eaten (1.20+).
[!NOTE]
The tag is on MaterialTag since it only requires the item type, but maybe we should start implementing such tags on ItemTag with the proper item/block type split coming soon? in the off chance someone actually has a MaterialTag instead of an ItemTag that they want to use it on they can just MaterialTag.item for now.
Requested on Discord.
Additions
ItemHelper#getFoodPoints(Material)
- gets the amount of hunger an item restores (implemented on 1.20).MaterialTag.food_points
- returns the amount of hunger an item restores when eaten (1.20+).