Class BankSlot

java.lang.Object
privbot.hooks.bank.BankSlot

public final class BankSlot extends Object
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
    Constructor
    Description
    BankSlot(int containerWidgetId, int slotIndex, int itemId, String itemName, int quantity)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Owning widget — the param1 of a withdraw.
    int
    Item held here — the identifier of a withdraw.
    Display name, or null when the definition could not be resolved.
    int
    Units banked in this slot, as reported by the container's quantity array.
    int
    Position within the container — the param0 of a withdraw.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • BankSlot

      public BankSlot(int containerWidgetId, int slotIndex, int itemId, String itemName, int quantity)
  • Method Details

    • containerWidgetId

      public int containerWidgetId()
      Owning widget — the param1 of a withdraw.
    • slotIndex

      public int slotIndex()
      Position within the container — the param0 of a withdraw.
    • itemId

      public int itemId()
      Item held here — the identifier of a withdraw.
    • itemName

      public String 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

      public String toString()
      Overrides:
      toString in class Object