java.lang.Object
net.botwithus.rs3.game.inventories.Backpack
Backpack is a class to interact with the backpack interface
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic InventoryContainer
Get the InventoryContainer for the backpackstatic boolean
contains
(int id) Check if the backpack contains a specific itemstatic boolean
contains
(int id, int amount) static boolean
Check if the backpack contains a specific itemstatic boolean
static boolean
containsByCategory
(int category) static Item
getSlot
(int slot) static boolean
Interact with an item in the backpackstatic boolean
Interact with an item in the backpackstatic boolean
interactByCategory
(int category, String option) Interact with an item in the backpackstatic boolean
isEmpty()
static boolean
isFull()
static void
static boolean
use
(int id) static boolean
-
Method Details
-
isEmpty
public static boolean isEmpty() -
isFull
public static boolean isFull() -
interact
Interact with an item in the backpack- Parameters:
name
- the name of the items to interact withoption
- the option to interact with- Returns:
- true if the interaction was successful
-
interact
Interact with an item in the backpack- Parameters:
id
- the id of the item to interact withoption
- the option to interact with- Returns:
- true if the interaction was successful
-
use
public static boolean use(int id) -
use
-
getSlot
-
interactByCategory
Interact with an item in the backpack- Parameters:
category
- the category of the items to interact withoption
- the option to interact with- Returns:
- true if the interaction was successful
-
contains
Check if the backpack contains a specific item- Parameters:
name
- the name of the items to check for- Returns:
- true if the backpack contains the item
-
contains
public static boolean contains(int id) Check if the backpack contains a specific item- Parameters:
id
- the id of the item to check for- Returns:
- true if the backpack contains the item
-
contains
-
contains
public static boolean contains(int id, int amount) -
containsByCategory
public static boolean containsByCategory(int category) -
print
-
container
Get the InventoryContainer for the backpack- Returns:
- the InventoryContainer for the backpack
-