Add Releasable interface (#3664)

closes #3301
This commit is contained in:
Govdim
2020-06-30 23:09:10 +03:00
committed by GitHub
parent 74a919353f
commit 7f81507ea1
4 changed files with 35 additions and 4 deletions

View File

@@ -28,7 +28,7 @@ use pocketmine\entity\Consumable;
/**
* Interface implemented by objects that can be consumed by mobs.
*/
interface ConsumableItem extends Consumable{
interface ConsumableItem extends Consumable, Releasable{
/**
* Returns the leftover that this Consumable produces when it is consumed. For Items, this is usually air, but could