Add getInventory() to Container interface where it's actually useful

This commit is contained in:
Dylan K. Taylor
2017-09-19 19:26:41 +01:00
parent 1323d89139
commit 1fb6d12a6b
2 changed files with 8 additions and 2 deletions

View File

@ -23,6 +23,7 @@ declare(strict_types=1);
namespace pocketmine\tile;
use pocketmine\inventory\Inventory;
use pocketmine\item\Item;
interface Container{
@ -44,4 +45,9 @@ interface Container{
* @return int
*/
public function getSize() : int;
/**
* @return Inventory
*/
public function getInventory();
}