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 InventoryContainerGet the InventoryContainer for the backpackstatic booleancontains(int id) Check if the backpack contains a specific itemstatic booleancontains(int id, int amount) static booleanCheck if the backpack contains a specific itemstatic booleanstatic booleancontainsByCategory(int category) static ItemgetSlot(int slot) static booleanInteract with an item in the backpackstatic booleanInteract with an item in the backpackstatic booleaninteractByCategory(int category, String option) Interact with an item in the backpackstatic booleanisEmpty()static booleanisFull()static voidstatic booleanuse(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
-