Skip to content

ConsumableItem ​

interface · pocketmine\item\ConsumableItem · source

Extends Consumable, Releasable

Interface implemented by objects that can be consumed by mobs.

Methods ​

getResidue() ​

php
public function getResidue() : \pocketmine\item\Item

Returns the leftover that this Consumable produces when it is consumed. For Items, this is usually air, but could be an Item to add to a Player's inventory afterwards (such as a bowl).

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