Revert BC-breaking backport from b38c81c96

this can't be applied to a minor version because it places additional requirements on the Inventory contract.
This commit is contained in:
Dylan K. Taylor 2020-06-01 13:51:36 +01:00
parent f24be2b055
commit 3be83e09f2
2 changed files with 0 additions and 12 deletions

View File

@ -372,13 +372,6 @@ abstract class BaseInventory implements Inventory{
}
}
public function swap(int $slot1, int $slot2) : void{
$i1 = $this->getItem($slot1);
$i2 = $this->getItem($slot2);
$this->setItem($slot1, $i2);
$this->setItem($slot2, $i1);
}
/**
* @return Player[]
*/

View File

@ -152,11 +152,6 @@ interface Inventory{
*/
public function clearAll(bool $send = true) : void;
/**
* Swaps the specified slots.
*/
public function swap(int $slot1, int $slot2) : void;
/**
* Gets all the Players viewing the inventory
* Players will view their inventory at all times, even when not open.