Class InventoryService


  • @Singleton
    public class InventoryService
    extends java.lang.Object
    Inventory reads and menu-first slot interactions.
    • Constructor Detail

      • InventoryService

        @Inject
        public InventoryService​(net.runelite.api.Client client,
                                MenuDispatcher dispatcher)
    • Method Detail

      • count

        public int count​(int id)
      • isEmpty

        public boolean isEmpty()
      • isFull

        public boolean isFull()
      • useOn

        public void useOn​(InventoryItem item,
                          NpcRef npc)
        Use an inventory item on an NPC through the native menu tuple.
      • useOn

        public void useOn​(InventoryItem item,
                          PlayerRef player)
        Use an inventory item on another player through the native menu tuple.
      • useOn

        public void useOn​(InventoryItem item,
                          ObjectRef object)
        Use an inventory item on a scene object through the native menu tuple.
      • useOn

        public void useOn​(InventoryItem item,
                          GroundItemRef groundItem)
        Use an inventory item on a ground item through the native menu tuple.
      • useOn

        public void useOn​(InventoryItem item,
                          InventoryItem target)
        Use an inventory item on another inventory item through the native menu tuple.
      • interact

        public void interact​(InventoryItem item,
                             java.lang.String action)