Interface IBankWornItems


public interface IBankWornItems
Interface for interacting with worn items displayed in the bank interface.

This interface provides methods to access and manage equipped items while the bank interface is open. It allows viewing, depositing, and unequipping items from the worn equipment panel in the bank.

See Also:
  • Method Details

    • isOpen

      boolean isOpen()
      Checks if the worn items panel in the bank interface is currently open.
      Returns:
      true if the worn items panel is open, false otherwise
    • open

      void open()
      Opens the worn items panel in the bank interface.
    • close

      void close()
      Closes the worn items panel in the bank interface.
    • getHead

      @Nullable BankWornItem getHead()
      Gets the item worn in the head slot.
      Returns:
      the head item, or null if the slot is empty
    • getCape

      @Nullable BankWornItem getCape()
      Gets the item worn in the cape slot.
      Returns:
      the cape item, or null if the slot is empty
    • getAmulet

      @Nullable BankWornItem getAmulet()
      Gets the item worn in the amulet/necklace slot.
      Returns:
      the amulet item, or null if the slot is empty
    • getWeapon

      @Nullable BankWornItem getWeapon()
      Gets the item worn in the weapon slot.
      Returns:
      the weapon item, or null if the slot is empty
    • getBody

      @Nullable BankWornItem getBody()
      Gets the item worn in the body/chest slot.
      Returns:
      the body item, or null if the slot is empty
    • getShield

      @Nullable BankWornItem getShield()
      Gets the item worn in the shield/off-hand slot.
      Returns:
      the shield item, or null if the slot is empty
    • getLegs

      @Nullable BankWornItem getLegs()
      Gets the item worn in the legs slot.
      Returns:
      the legs item, or null if the slot is empty
    • getGloves

      @Nullable BankWornItem getGloves()
      Gets the item worn in the gloves slot.
      Returns:
      the gloves item, or null if the slot is empty
    • getBoots

      @Nullable BankWornItem getBoots()
      Gets the item worn in the boots slot.
      Returns:
      the boots item, or null if the slot is empty
    • getRing

      @Nullable BankWornItem getRing()
      Gets the item worn in the ring slot.
      Returns:
      the ring item, or null if the slot is empty
    • getAmmo

      @Nullable BankWornItem getAmmo()
      Gets the item worn in the ammunition slot.
      Returns:
      the ammunition item, or null if the slot is empty
    • fromSlot

      @Nullable BankWornItem fromSlot(EquipmentSlot slot)
      Gets the item worn in the specified equipment slot.
      Parameters:
      slot - the equipment slot to retrieve the item from
      Returns:
      the item in the specified slot, or null if the slot is empty