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:
Dylan K. Taylor 2022-03-22 17:08:30 +00:00
parent ea33a04d00
commit 98aa2b9ff9
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -66,14 +66,6 @@ interface Inventory{
*/
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[]
*/
@ -121,6 +113,14 @@ interface Inventory{
*/
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
*/