java.lang.Object
net.botwithus.rs3.game.inventories.Equipment
Equipment is a class to interact with the equipment interface
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic InventoryContainer
Get the InventoryContainer for Equipmentstatic boolean
contains
(int id) Check if the backpack contains a specific itemstatic boolean
Check if the backpack contains a specific itemstatic boolean
Interact with an item in the equipmentstatic boolean
Interact with an item in the equipmentstatic boolean
interact
(Equipment.Slot slot, int index) Interact with an item in the equipmentstatic boolean
interact
(Equipment.Slot slot, String option) Interact with an item in the equipmentstatic boolean
interactByCategory
(int category, String option) Interact with an item in the backpack
-
Method Details
-
interact
Interact with an item in the equipment- Parameters:
slot
- the slot of the items to interact withindex
- the option index to interact with- Returns:
- true if the interaction was successful
-
interact
Interact with an item in the equipment- Parameters:
slot
- the slot 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 equipment- 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 equipment- Parameters:
id
- the id of the item to interact withoption
- the option to interact with- Returns:
- true if the interaction was successful
-
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
-
container
Get the InventoryContainer for Equipment- Returns:
- the InventoryContainer for the players Equipment
-