PocketMine-MP 5.21.2 git-a6534ecbbbcf369264567d27e5ed70f7f5be9816
|
Public Member Functions | |
getAdditionalEffects () | |
onConsume (Living $consumer) | |
Interface implemented by objects that can be consumed by mobs.
Definition at line 31 of file Consumable.php.
pocketmine\entity\Consumable::getAdditionalEffects | ( | ) |
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.
pocketmine\entity\Consumable::onConsume | ( | Living | $consumer | ) |
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.