Class BankSlot
java.lang.Object
privbot.hooks.bank.BankSlot
One occupied slot in the bank's item container.
Deliberately not a Widget, for the same reason ShopSlot is
not: on Impact the bank is a single flat container object hanging off one widget, with no per-slot
child widgets, and a menu action against it is addressed by
(item id, slot index, container widget id).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintOwning widget — theparam1of a withdraw.intitemId()Item held here — theidentifierof a withdraw.itemName()Display name, or null when the definition could not be resolved.intquantity()Units banked in this slot, as reported by the container's quantity array.intPosition within the container — theparam0of a withdraw.toString()
-
Constructor Details
-
BankSlot
-
-
Method Details
-
containerWidgetId
public int containerWidgetId()Owning widget — theparam1of a withdraw. -
slotIndex
public int slotIndex()Position within the container — theparam0of a withdraw. -
itemId
public int itemId()Item held here — theidentifierof a withdraw. -
itemName
Display name, or null when the definition could not be resolved. -
quantity
public int quantity()Units banked in this slot, as reported by the container's quantity array. -
toString
-