PocketMine-MP 5.31.1 git-79e3f2b2814ae3676339d931f659b32a01e19783
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: