diff --git a/src/pocketmine/inventory/BaseInventory.php b/src/pocketmine/inventory/BaseInventory.php index 09dbd24c2..6328360da 100644 --- a/src/pocketmine/inventory/BaseInventory.php +++ b/src/pocketmine/inventory/BaseInventory.php @@ -62,16 +62,6 @@ abstract class BaseInventory implements Inventory{ return $this->slots->getSize(); } - /** - * Sets the new size of the inventory. - * WARNING: If the size is smaller, any items past the new size will be lost. - * - * @param int $size - */ - public function setSize(int $size) : void{ - $this->slots->setSize($size); - } - public function getMaxStackSize() : int{ return $this->maxStackSize; } diff --git a/src/pocketmine/inventory/CraftingGrid.php b/src/pocketmine/inventory/CraftingGrid.php index 2cdabff19..bd29d8c8b 100644 --- a/src/pocketmine/inventory/CraftingGrid.php +++ b/src/pocketmine/inventory/CraftingGrid.php @@ -57,10 +57,6 @@ class CraftingGrid extends BaseInventory{ return $this->gridWidth; } - public function setSize(int $size) : void{ - throw new \BadMethodCallException("Cannot change the size of a crafting grid"); - } - public function setItem(int $index, Item $item, bool $send = true) : void{ parent::setItem($index, $item, $send); $this->seekRecipeBounds(); diff --git a/src/pocketmine/inventory/PlayerCursorInventory.php b/src/pocketmine/inventory/PlayerCursorInventory.php index e760493f2..a016d3b4f 100644 --- a/src/pocketmine/inventory/PlayerCursorInventory.php +++ b/src/pocketmine/inventory/PlayerCursorInventory.php @@ -34,10 +34,6 @@ class PlayerCursorInventory extends BaseInventory{ parent::__construct(1); } - public function setSize(int $size) : void{ - throw new \BadMethodCallException("Cursor can only carry one item at a time"); - } - /** * This override is here for documentation and code completion purposes only. * @return Player