diff --git a/com/csse3200/game/components/player/InventoryComponent.html b/com/csse3200/game/components/player/InventoryComponent.html index 9e0224801..87cf6c9fc 100644 --- a/com/csse3200/game/components/player/InventoryComponent.html +++ b/com/csse3200/game/components/player/InventoryComponent.html @@ -283,8 +283,9 @@
newCapacity
- - the size to set this item component's capacity to. Must be a positive, non-zero integer.
- Throws IllegalArgumentException - if newSize is 1.newCapacity
- - the size to set this item component's capacity to. Must be a positive, non-zero integer.IllegalArgumentException
- - if newSize is less than 1.index
- - the index to set the currently selected item to
- Throws IllegalArgumentException - if index is not within 0 index this.getSize()index
- - the index to set the currently selected item toIllegalArgumentException
- - if index is not within 0 and this.getSize()index
- - the index being queried.IllegalArgumentException
- - if the given index is negative or out of bounds.item
- - the item to be added to the Inventory.index
- - the index where the item will be inserted.
- Throws IllegalArgumentException - if the given index is negative or out of bounds.index
- - the index where the item will be inserted.IllegalArgumentException
- - if the given index is negative or out of bounds.index
- - the index where an item will be removed.
- Throws IllegalArgumentException - if the given index is negative or out of bounds.index
- - the index where an item will be removed.IllegalArgumentException
- - if the given index is negative or out of bounds.