mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Improved safe_var_dump(), Inventory::addItem() Inventory::removeItem() using argument unpacking
This commit is contained in:
@ -73,7 +73,7 @@ interface Inventory{
|
||||
*
|
||||
* @return Item[]
|
||||
*/
|
||||
public function addItem();
|
||||
public function addItem(...$slots);
|
||||
|
||||
/**
|
||||
* Checks if a given Item can be added to the inventory
|
||||
@ -92,7 +92,7 @@ interface Inventory{
|
||||
*
|
||||
* @return Item[]
|
||||
*/
|
||||
public function removeItem();
|
||||
public function removeItem(...$slots);
|
||||
|
||||
/**
|
||||
* @return Item[]
|
||||
|
Reference in New Issue
Block a user