FoodSource
Extends Consumable
Interface implemented by objects that can be consumed by players, giving them food and saturation.
Methods
getFoodRestore()
php
public function getFoodRestore() : intgetSaturationRestore()
php
public function getSaturationRestore() : floatrequiresHunger()
php
public function requiresHunger() : boolReturns whether a Human eating this FoodSource must have a non-full hunger bar. This is ignored in creative mode and in peaceful difficulty.
