Interface BankWornItem


public interface BankWornItem
Represents an item worn by the player, as displayed in the bank's worn items panel.

This interface provides methods to access information about equipped items and perform actions on them while viewing them through the bank interface.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deposits this worn item directly into the bank.
    int
    Gets the item ID of this worn item.
    int
    Gets the quantity of this worn item (relevant for stackable items like ammunition).
    Gets the equipment slot where this item is worn.
    Gets the widget representing this worn item in the bank interface.
    void
    Unequips this worn item to the inventory.
  • Method Details

    • getWidget

      IWidget getWidget()
      Gets the widget representing this worn item in the bank interface.
      Returns:
      the widget for this item
    • getId

      int getId()
      Gets the item ID of this worn item.
      Returns:
      the item ID
    • getQuantity

      int getQuantity()
      Gets the quantity of this worn item (relevant for stackable items like ammunition).
      Returns:
      the quantity of the item
    • getSlot

      EquipmentSlot getSlot()
      Gets the equipment slot where this item is worn.
      Returns:
      the equipment slot
    • deposit

      void deposit()
      Deposits this worn item directly into the bank. The item will be removed from the equipment and placed in the bank.
    • unequip

      void unequip()
      Unequips this worn item to the inventory. The item will be removed from the equipment and placed in the inventory.