Class Items


  • public class Items
    extends java.lang.Object
    • Field Detail

      • USE_ITEM_A_PREFERENCE

        public static volatile int USE_ITEM_A_PREFERENCE
    • Constructor Detail

      • Items

        public Items()
    • Method Detail

      • use

        public static boolean use​(RSItem itemA,
                                  RSItem itemB)
      • 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)