PocketMine-MP 5.21.3 git-fcef015f32c0b0709cfd4d6f1b3c32f484b25bde
|
Public Member Functions | |
getAdditionalEffects () | |
getFoodRestore () | |
getSaturationRestore () | |
onConsume (Living $consumer) | |
requiresHunger () | |
Interface implemented by objects that can be consumed by players, giving them food and saturation.
Definition at line 29 of file FoodSource.php.
|
inherited |
Implemented in pocketmine\block\BaseCake, pocketmine\item\Food, pocketmine\item\GoldenApple, pocketmine\item\GoldenAppleEnchanted, pocketmine\item\Medicine, pocketmine\item\MilkBucket, pocketmine\item\PoisonousPotato, pocketmine\item\Potion, pocketmine\item\Pufferfish, pocketmine\item\RawChicken, pocketmine\item\RottenFlesh, pocketmine\item\SpiderEye, and pocketmine\item\SuspiciousStew.
|
inherited |
Called when this Consumable is consumed by mob, after standard resulting effects have been applied.
Implemented in pocketmine\block\BaseCake, pocketmine\block\CakeWithCandle, pocketmine\item\ChorusFruit, pocketmine\item\Food, pocketmine\item\HoneyBottle, pocketmine\item\Medicine, pocketmine\item\MilkBucket, and pocketmine\item\Potion.
pocketmine\entity\FoodSource::requiresHunger | ( | ) |
Returns whether a Human eating this FoodSource must have a non-full hunger bar.
Implemented in pocketmine\block\BaseCake, pocketmine\item\ChorusFruit, pocketmine\item\Food, pocketmine\item\GoldenApple, pocketmine\item\HoneyBottle, and pocketmine\item\SuspiciousStew.