Class Items
- java.lang.Object
-
- com.osrsbots.orb.api.interactables.entities.Items
-
public class Items extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static intUSE_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 intcount(int itemId)static intcount(int itemId, RSItem.Type... types)static intcount(RSItem.Type... types)static intcount(java.lang.String name)static intcount(java.lang.String name, RSItem.Type... types)static booleandrop(java.lang.String... names)static intgetEmptySlots()java.util.Map.Entry<net.runelite.api.Item,java.lang.Integer>getItemAndSlot(int id)Deprecated.static intgetPrice(int id)static RSItemgetSelected()static intgetUsedSlots()static booleanisConsumable(RSItem rsi)static booleanisConsumable(RSLoot rsl)static booleanisEquipmentEmpty()static booleanisEquipmentFull()static booleanisInventoryEmpty()static booleanisInventoryFull()static booleanisSelected()static booleanisWearable(RSItem rsi)static booleanisWearable(RSLoot rsl)static booleanisWearable(java.util.List<java.lang.String> actions)static WidgetItemQueryquery()static booleanuse(RSItem itemA, RSItem itemB)
-
-
-
Method Detail
-
query
public static WidgetItemQuery query()
-
getEmptySlots
public static int getEmptySlots()
-
getUsedSlots
public static int getUsedSlots()
-
getPrice
public static int getPrice(int id)
-
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)
-
-