Interface IBankItem

All Superinterfaces:
Identifiable, IItem, Interactable, Nameable, RuneLiteWrapper<net.runelite.api.Item>

public interface IBankItem extends IItem
Represents an item stored in the player's bank with withdrawal capabilities.

This interface extends IItem with methods specific to bank items, allowing items to be withdrawn from the bank to the player's inventory.

Usage notes:

  • The bank interface must be open to interact with bank items
  • Items are withdrawn to the player's inventory if space is available
  • The withdrawal mode (noted/un-noted) is determined by bank settings

See Also:
  • Method Details

    • withdraw

      void withdraw(int amount)
      Withdraws a specific amount of this item from the bank.

      The item will be placed in the player's inventory. If the specified amount exceeds the available quantity, only the available amount will be withdrawn.

      Parameters:
      amount - the number of items to withdraw
    • withdrawAll

      void withdrawAll()
      Withdraws all of this item from the bank.

      All items of this type will be transferred to the player's inventory, limited by available inventory space. For non-stackable items, this will withdraw up to the number of free inventory slots.