Tribot-Scripting-SDK
/
org.tribot.script.sdk
/
Equipment
Equipment
public class
Equipment
Content copied to clipboard
Utilities for interacting with the equipment tab
Types
Functions
Types
Slot
Link copied to clipboard
public enum
Slot
Content copied to clipboard
Represents an equipment slot in the equipment tab
Functions
contains
Link copied to clipboard
static boolean
contains
(
Array
<int> itemId)
Content copied to clipboard
Determines if an item with the given itemId is equipped
static boolean
contains
(
Array
<
String
> itemName)
Content copied to clipboard
Determines if an item with the given itemName is equipped
static boolean
contains
(
Predicate
<
EquipmentItem
> filter)
Content copied to clipboard
Checks if any equipped item exists matching the specified filter
equip
Link copied to clipboard
static boolean
equip
(int itemId)
Content copied to clipboard
Equips an item from the inventory with the given itemId.
static boolean
equip
(
String
itemName)
Content copied to clipboard
Equips an item from the inventory with the given itemName.
static boolean
equip
(
InventoryItem
item)
Content copied to clipboard
Equips the given InventoryItem.
getAll
Link copied to clipboard
static
List
<
EquipmentItem
>
getAll
()
Content copied to clipboard
Gets all the items that the player character has equipped.
getCount
Link copied to clipboard
static int
getCount
(
Array
<int> id)
Content copied to clipboard
Counts the stacks of all items with the specified ids
static int
getCount
(
Array
<
String
> name)
Content copied to clipboard
Counts the stacks of all items with the specified names
static int
getCount
(
Predicate
<
EquipmentItem
> filter)
Content copied to clipboard
Counts the stacks of all items matching the specified filter
remove
Link copied to clipboard
static int
remove
(int itemId)
Content copied to clipboard
Unequips an item from equipment with the given itemId
static int
remove
(
String
itemName)
Content copied to clipboard
Unequips an item from equipment with the given itemName