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 booleandeposit(int id, int amount)static booleandeposit(String name, int amount)static booleandeposit(Function<ItemQuery,Item> function, int amount)static booleandepositAll(Function<ItemQuery,ItemQueryResults> function)static booleandepositAllExcept(Function<ItemQuery,ItemQueryResults> function)static booleandepositEquipment()static booleandepositInventory()static booleandepositLoot()static booleanisOpen()static booleanopen()Walks to the nearest deposit box determined via webstatic booleanopen(Bank.Location loc)Walks to the deposit box using the web and opens it.static booleanopen(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()
-
-