PocketMine-MP 5.21.2 git-a6534ecbbbcf369264567d27e5ed70f7f5be9816
Loading...
Searching...
No Matches
pocketmine\entity\Consumable Interface Reference
+ Inheritance diagram for pocketmine\entity\Consumable:
+ Collaboration diagram for pocketmine\entity\Consumable:

Public Member Functions

 getAdditionalEffects ()
 
 onConsume (Living $consumer)
 

Detailed Description

Interface implemented by objects that can be consumed by mobs.

Definition at line 31 of file Consumable.php.

Member Function Documentation

◆ getAdditionalEffects()

◆ onConsume()

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.


The documentation for this interface was generated from the following file: