mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-06 10:01:53 +00:00
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:
parent
f24be2b055
commit
3be83e09f2
@ -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[]
|
* @return Player[]
|
||||||
*/
|
*/
|
||||||
|
@ -152,11 +152,6 @@ interface Inventory{
|
|||||||
*/
|
*/
|
||||||
public function clearAll(bool $send = true) : void;
|
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
|
* Gets all the Players viewing the inventory
|
||||||
* Players will view their inventory at all times, even when not open.
|
* Players will view their inventory at all times, even when not open.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user