Skip to content

Consumable ​

interface · pocketmine\entity\Consumable · source

Interface implemented by objects that can be consumed by mobs.

Methods ​

getAdditionalEffects() ​

php
public function getAdditionalEffects() : array

onConsume() ​

php
public function onConsume(\pocketmine\entity\Living $consumer) : void

Called when this Consumable is consumed by mob, after standard resulting effects have been applied.

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.