PocketMine-MP 5.21.2 git-a6534ecbbbcf369264567d27e5ed70f7f5be9816
|
Public Member Functions | |
canStartUsingItem (Player $player) | |
getAdditionalEffects () | |
getFoodRestore () | |
getResidue () | |
getSaturationRestore () | |
onConsume (Living $consumer) | |
requiresHunger () | |
Definition at line 28 of file FoodSourceItem.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 |
Returns the leftover that this Consumable produces when it is consumed. For Items, this is usually air, but could be an Item to add to a Player's inventory afterwards (such as a bowl).
Implemented in pocketmine\item\BeetrootSoup, pocketmine\item\Food, pocketmine\item\HoneyBottle, pocketmine\item\Medicine, pocketmine\item\MilkBucket, pocketmine\item\MushroomStew, pocketmine\item\Potion, pocketmine\item\RabbitStew, 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.
|
inherited |
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.