mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-12 14:35:35 +00:00
Inventory: move removeItem() next to remove()
this should hopefully be more attention grabbing and a bit less misleading, since people will wonder why there are 'remove' and 'removeItem' both. we really need to rename one of these...
This commit is contained in:
parent
ea33a04d00
commit
98aa2b9ff9
@ -66,14 +66,6 @@ interface Inventory{
|
|||||||
*/
|
*/
|
||||||
public function getAddableItemQuantity(Item $item) : int;
|
public function getAddableItemQuantity(Item $item) : int;
|
||||||
|
|
||||||
/**
|
|
||||||
* Removes the given Item from the inventory.
|
|
||||||
* It will return the Items that couldn't be removed.
|
|
||||||
*
|
|
||||||
* @return Item[]
|
|
||||||
*/
|
|
||||||
public function removeItem(Item ...$slots) : array;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return Item[]
|
* @return Item[]
|
||||||
*/
|
*/
|
||||||
@ -121,6 +113,14 @@ interface Inventory{
|
|||||||
*/
|
*/
|
||||||
public function remove(Item $item) : void;
|
public function remove(Item $item) : void;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Removes the given Item from the inventory.
|
||||||
|
* It will return the Items that couldn't be removed.
|
||||||
|
*
|
||||||
|
* @return Item[]
|
||||||
|
*/
|
||||||
|
public function removeItem(Item ...$slots) : array;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Will clear a specific slot
|
* Will clear a specific slot
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user