Class DepositBox
- java.lang.Object
-
- com.runemate.game.api.hybrid.local.hud.interfaces.DepositBox
-
public final class DepositBox extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
close()
Closes deposit box, returns true if already closedstatic boolean
deposit(int id, int amount)
static boolean
deposit(SpriteItem item, int amount)
Deposits the specified amount of the specified itemstatic boolean
deposit(java.lang.String name, int amount)
static boolean
deposit(java.util.function.Predicate<SpriteItem> filter, int amount)
Deposits the first item that matches the specified filter.static boolean
depositAllExcept(int... ids)
static boolean
depositAllExcept(java.lang.String... names)
static boolean
depositAllExcept(java.util.function.Predicate<SpriteItem> exclusion)
Deposits all items except those that match the given Predicatestatic boolean
depositAllExcept(java.util.regex.Pattern... names)
static boolean
depositEquipment()
Deposits equipmentstatic boolean
depositInventory()
Deposits the inventory, using hotkeys if on rs3 and playersense says to do so.static boolean
depositInventory(boolean hotkeys)
Deposits the inventory, using hotkeys if specified and on rs3static boolean
isOpen()
Determines if the deposit box interface is openstatic boolean
open()
Opens the nearest deposit boxstatic boolean
open(GameObject depositBox)
Open the deposit box specified
-
-
-
Method Detail
-
open
public static boolean open()
Opens the nearest deposit box
-
open
public static boolean open(GameObject depositBox)
Open the deposit box specified- Returns:
- returns true if opened
-
isOpen
public static boolean isOpen()
Determines if the deposit box interface is open- Returns:
- Returns true if open
-
close
public static boolean close()
Closes deposit box, returns true if already closed- Returns:
- Returns true if deposit box is not open
-
deposit
public static boolean deposit(java.lang.String name, int amount)
-
deposit
public static boolean deposit(java.util.function.Predicate<SpriteItem> filter, int amount)
Deposits the first item that matches the specified filter. If amount is equal to 0 it will deposit all of the item
-
deposit
public static boolean deposit(SpriteItem item, int amount)
Deposits the specified amount of the specified item- Parameters:
item
- the item you want to depositamount
- the amount you want to deposit- Returns:
- true if the item is deposited
-
depositAllExcept
public static boolean depositAllExcept(java.util.regex.Pattern... names)
-
depositAllExcept
public static boolean depositAllExcept(java.lang.String... names)
-
depositAllExcept
public static boolean depositAllExcept(int... ids)
-
depositAllExcept
public static boolean depositAllExcept(java.util.function.Predicate<SpriteItem> exclusion)
Deposits all items except those that match the given Predicate- Parameters:
exclusion
- filter to test against- Returns:
- if all non-matching items were successfully deposited
-
deposit
public static boolean deposit(int id, int amount)
-
depositInventory
public static boolean depositInventory()
Deposits the inventory, using hotkeys if on rs3 and playersense says to do so.- Returns:
- Returns true if inventory was deposited
-
depositInventory
public static boolean depositInventory(boolean hotkeys)
Deposits the inventory, using hotkeys if specified and on rs3- Returns:
- Returns true if inventory was deposited
-
depositEquipment
public static boolean depositEquipment()
Deposits equipment- Returns:
- Returns true if equipment was deposited
-
-