PocketMine-MP 5.36.1 git-eaa7c4834c8fe2f379d24e7f0ee6cc63cfb18ccc
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: