Package org.rspeer.game.component
Class DepositBox
- java.lang.Object
-
- org.rspeer.game.component.DepositBox
-
public class DepositBox extends Object
-
-
Constructor Summary
Constructors Constructor Description DepositBox()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
deposit(int id, int amount)
static boolean
deposit(String name, int amount)
static boolean
deposit(Function<ItemQuery,Item> function, int amount)
static boolean
depositAll(Function<ItemQuery,ItemQueryResults> function)
static boolean
depositAllExcept(Function<ItemQuery,ItemQueryResults> function)
static boolean
depositEquipment()
static boolean
depositInventory()
static boolean
depositLoot()
static boolean
isOpen()
static boolean
open()
Walks to the nearest deposit box determined via webstatic boolean
open(Bank.Location loc)
Walks to the deposit box using the web and opens it.static boolean
open(Bank.Location loc, boolean strict)
Walks to the deposit box using the web and opens it.
-
-
-
Method Detail
-
isOpen
public static boolean isOpen()
-
open
public static boolean open(Bank.Location loc)
Walks to the deposit box using the web and opens it.- Parameters:
loc
- the deposit box you want to open- Returns:
- returns true when we are in any deposit box or successfully clicked the deposit box
-
open
public static boolean open(Bank.Location loc, boolean strict)
Walks to the deposit box using the web and opens it.- Parameters:
loc
- the deposit box you want to openstrict
- if true it will guarantee you are at the correct deposit box before opening- Returns:
- returns true when we are in the deposit box or successfully clicked the deposit box
-
open
public static boolean open()
Walks to the nearest deposit box determined via web- Returns:
- returns true if we are in the deposit box or successfully clicked the deposit box
-
depositAll
public static boolean depositAll(Function<ItemQuery,ItemQueryResults> function)
-
depositAllExcept
public static boolean depositAllExcept(Function<ItemQuery,ItemQueryResults> function)
-
deposit
public static boolean deposit(String name, int amount)
-
deposit
public static boolean deposit(int id, int amount)
-
depositInventory
public static boolean depositInventory()
-
depositEquipment
public static boolean depositEquipment()
-
depositLoot
public static boolean depositLoot()
-
-