Class Items
- java.lang.Object
-
- com.osrsbots.orb.api.interact.interactables.entities.Items
-
public class Items extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
USE_ITEM_A_PREFERENCE
-
Constructor Summary
Constructors Constructor Description Items()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static int
count(int itemId)
static int
count(int itemId, RSItem.Type... types)
static int
count(RSItem.Type... types)
static int
count(java.lang.String name)
static int
count(java.lang.String name, RSItem.Type... types)
static boolean
drop(java.lang.String... names)
static int
getEmptySlots()
java.util.Map.Entry<net.runelite.api.Item,java.lang.Integer>
getItemAndSlot(int id)
Deprecated.static RSItem
getSelected()
static int
getUsedSlots()
static boolean
isConsumable(RSItem rsi)
static boolean
isConsumable(RSLoot rsl)
static boolean
isEquipmentEmpty()
static boolean
isEquipmentFull()
static boolean
isInventoryEmpty()
static boolean
isInventoryFull()
static boolean
isSelected()
static boolean
isWearable(RSItem rsi)
static boolean
isWearable(RSLoot rsl)
static boolean
isWearable(java.util.List<java.lang.String> actions)
static WidgetItemQuery
query()
static boolean
use(RSItem itemA, RSItem itemB)
-
-
-
Method Detail
-
query
public static WidgetItemQuery query()
-
getEmptySlots
public static int getEmptySlots()
-
getUsedSlots
public static int getUsedSlots()
-
getItemAndSlot
@Nullable @Deprecated public java.util.Map.Entry<net.runelite.api.Item,java.lang.Integer> getItemAndSlot(int id)
Deprecated.
-
isWearable
public static boolean isWearable(RSItem rsi)
-
isWearable
public static boolean isWearable(RSLoot rsl)
-
isWearable
public static boolean isWearable(java.util.List<java.lang.String> actions)
-
isConsumable
public static boolean isConsumable(RSItem rsi)
-
isConsumable
public static boolean isConsumable(RSLoot rsl)
-
count
public static int count(@Nonnull java.lang.String name)
-
count
public static int count(@Nonnull java.lang.String name, @Nonnull RSItem.Type... types)
-
count
public static int count(int itemId)
-
count
public static int count(int itemId, @Nonnull RSItem.Type... types)
-
count
public static int count(@Nonnull RSItem.Type... types)
-
isInventoryFull
public static boolean isInventoryFull()
-
isInventoryEmpty
public static boolean isInventoryEmpty()
-
isEquipmentFull
public static boolean isEquipmentFull()
-
isEquipmentEmpty
public static boolean isEquipmentEmpty()
-
isSelected
public static boolean isSelected()
-
getSelected
@Nullable public static RSItem getSelected()
-
drop
public static boolean drop(@Nonnull java.lang.String... names)
-
-