public class Bank extends Inventory
  • Constructor Details

  • Method Details

    • isOpen

      public static boolean isOpen()
    • open

      public static boolean open(Bank.Location loc)
      Walks to the bank using the web and opens it.
      Parameters:
      loc - the bank you want to open
      Returns:
      returns true when we are in any bank or successfully clicked the bank
    • open

      public static boolean open(Bank.Location loc, boolean strict)
      Walks to the bank using the web and opens it.
      Parameters:
      loc - the bank you want to open
      strict - if true it will guarantee you are at the correct bank before opening
      Returns:
      returns true when we are in the bank or successfully clicked the bank
    • open

      public static boolean open()
      Walks to the nearest bank determined via web
      Returns:
      returns true if we are in the bank or successfully clicked the bank
    • isViewingMainTab

      public static boolean isViewingMainTab()
    • isDepositInventoryEnabled

      public static boolean isDepositInventoryEnabled()
    • isDepositEquipmentEnabled

      public static boolean isDepositEquipmentEnabled()
    • isSettingsOpen

      public static boolean isSettingsOpen()
    • depositInventory

      public boolean depositInventory()
    • depositEquipment

      public boolean depositEquipment()
    • deposit

      public boolean deposit(Function<ItemQuery,Item> function, int amount)
    • withdraw

      public boolean withdraw(Function<ItemQuery,Item> function, int amount)
    • withdrawAll

      public boolean withdrawAll(Function<ItemQuery,Item> function)
    • depositAll

      public boolean depositAll(Function<ItemQuery,ItemQueryResults> function)
    • depositAllExcept

      public boolean depositAllExcept(Function<ItemQuery,ItemQueryResults> function)
    • withdraw

      public boolean withdraw(String name, int amount)
    • withdraw

      public boolean withdraw(int id, int amount)
    • deposit

      public boolean deposit(String name, int amount)
    • deposit

      public boolean deposit(int id, int amount)
    • getWithdrawMode

      public Bank.WithdrawMode getWithdrawMode()
    • setWithdrawMode

      public boolean setWithdrawMode(Bank.WithdrawMode mode)