PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
|
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.