Class EquipmentQuery

    • Constructor Detail

      • EquipmentQuery

        public EquipmentQuery​(Context ctx)
    • Method Detail

      • inInventory

        public EquipmentQuery inInventory()
        Configures the query to only look for wearable/wieldable items currently inside the player's inventory.
        Returns:
        EquipmentQuery
      • inInterface

        public EquipmentQuery inInterface()
        Configures the query to only look for items currently equipped on the player (read from the Equipment interface widgets).
        Returns:
        EquipmentQuery
      • all

        public EquipmentQuery all()
        Configures the query to look at both equipped items and wearable items in the inventory.
        Returns:
        EquipmentQuery
      • isWearing

        public boolean isWearing​(int id)
        Checks if the player is wearing an item by id. Note: This strictly checks the equipment slots, ignoring the "inInventory" setting.
        Parameters:
        id - The item id for the equipment to check
        Returns:
        True if the player is wearing the equipment and false otherwise
      • isWearing

        public boolean isWearing​(java.lang.String name)
        Checks if the player is wearing an item by name. Note: This strictly checks the equipment slots, ignoring the "inInventory" setting.
        Parameters:
        name - The name of the equipment to check
        Returns:
        True if the player is wearing the equipment and false otherwise
      • inSlot

        public EquipmentEntity inSlot​(net.runelite.api.EquipmentInventorySlot slot)
        Returns the interactable equipment entity for a given equipment slot.
        Parameters:
        slot - The EquipmentInventorySlot to retrieve.
        Returns:
        EquipmentEntity