Class Bank
- java.lang.Object
-
- com.osrsbots.orb.api.interact.interactables.widgets.Bank
-
public class Bank extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Bank.Amount
-
Field Summary
Fields Modifier and Type Field Description static int
DEPOSIT_ALL_MAX_DELAY
static int
DEPOSIT_ALL_MIN_DELAY
static int
USE_NPC_PREFERENCE_SEED
static int
WITHDRAW_ALL_MAX_DELAY
static int
WITHDRAW_ALL_MIN_DELAY
-
Constructor Summary
Constructors Constructor Description Bank()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
close()
static boolean
deposit(RSItem item, int amount)
static boolean
deposit(RSItem item, int amount, boolean moveMouse)
static boolean
deposit(RSWidget widget, int amount)
static boolean
deposit(RSWidget widget, int amount, boolean moveMouse)
static boolean
deposit(java.lang.String name, int amount)
static boolean
deposit(java.lang.String name, int amount, boolean moveMouse)
static boolean
depositAll(java.util.function.Predicate<RSItem> itemFilter)
static boolean
depositAll(java.util.function.Predicate<RSItem> itemFilter, boolean moveMouse)
static boolean
depositAllExcept(java.lang.String... names)
static boolean
depositAllExcept(java.util.function.Predicate<RSItem> itemFilter)
static boolean
depositAllExcept(java.util.function.Predicate<RSItem> itemFilter, boolean moveMouse)
static boolean
depositAllExcept(java.util.List<java.lang.String> names, boolean moveMouse)
static boolean
depositEquipment()
static boolean
depositEquipment(boolean moveMouse)
static boolean
depositInventory()
static boolean
depositInventory(boolean moveMouse)
static Bank.Amount
getAmount()
static int
getAmountValue()
static @Nullable RSObject
getBoothOrChest(boolean random)
static @Nullable RSNpc
getNPCBanker(boolean random)
static void
initSeeds()
static boolean
isOpen()
static boolean
openCustomAmountDialog()
static boolean
openNearest()
static boolean
openNearest(boolean moveMouse)
static boolean
openRandom()
static boolean
openRandom(boolean moveMouse)
static boolean
openWithBanker(boolean random)
static boolean
openWithBanker(boolean random, boolean moveMouse)
static boolean
openWithBanker(RSNpc banker)
static boolean
openWithBanker(RSNpc banker, boolean moveMouse)
static boolean
openWithBoothOrChest(boolean random, boolean moveMouse)
static boolean
openWithBoothOrChest(RSObject bank)
static boolean
openWithBoothOrChest(RSObject bank, boolean moveMouse)
static boolean
setAmount(Bank.Amount amount)
static void
setCustomAmount(int amount)
static boolean
shouldOpenWithNpc()
static @Nullable java.lang.Boolean
withdraw(RSItem item, int amount)
static @Nullable java.lang.Boolean
withdraw(RSItem item, int amount, boolean moveMouse)
static @Nullable java.lang.Boolean
withdraw(RSWidget widget, int amount)
static @Nullable java.lang.Boolean
withdraw(RSWidget widget, int amount, boolean moveMouse)
static @Nullable java.lang.Boolean
withdraw(java.lang.String name, int amount)
static @Nullable java.lang.Boolean
withdraw(java.lang.String name, int amount, boolean moveMouse)
static @Nullable java.lang.Boolean
withdraw(java.util.function.Predicate<RSItem> itemFilter, int amount)
static @Nullable java.lang.Boolean
withdraw(java.util.function.Predicate<RSItem> itemFilter, int amount, boolean moveMouse)
static @Nullable java.lang.Boolean
withdrawAll(java.util.HashMap<RSItem,java.lang.Integer> items)
static @Nullable java.lang.Boolean
withdrawAll(java.util.HashMap<java.lang.String,java.lang.Integer> items, boolean ignoreCase)
static @Nullable java.lang.Boolean
withdrawAll(java.util.HashMap<java.lang.String,java.lang.Integer> items, boolean ignoreCase, boolean moveMouse)
static @Nullable java.lang.Boolean
withdrawAll(java.util.Map<RSWidget,java.lang.Integer> items)
static @Nullable java.lang.Boolean
withdrawAll(java.util.Map<RSWidget,java.lang.Integer> items, boolean moveMouse)
static @Nullable java.lang.Boolean
withdrawAllFilter(java.util.Map<java.util.function.Predicate<RSItem>,java.lang.Integer> items)
static @Nullable java.lang.Boolean
withdrawAllFilter(java.util.Map<java.util.function.Predicate<RSItem>,java.lang.Integer> items, boolean moveMouse)
-
-
-
Field Detail
-
DEPOSIT_ALL_MIN_DELAY
public static int DEPOSIT_ALL_MIN_DELAY
-
DEPOSIT_ALL_MAX_DELAY
public static int DEPOSIT_ALL_MAX_DELAY
-
WITHDRAW_ALL_MIN_DELAY
public static int WITHDRAW_ALL_MIN_DELAY
-
WITHDRAW_ALL_MAX_DELAY
public static int WITHDRAW_ALL_MAX_DELAY
-
USE_NPC_PREFERENCE_SEED
public static int USE_NPC_PREFERENCE_SEED
-
-
Method Detail
-
initSeeds
public static void initSeeds()
-
isOpen
public static boolean isOpen()
-
getAmountValue
public static int getAmountValue()
-
setCustomAmount
public static void setCustomAmount(int amount)
-
openCustomAmountDialog
public static boolean openCustomAmountDialog()
-
close
public static boolean close()
-
getAmount
public static Bank.Amount getAmount()
-
setAmount
public static boolean setAmount(Bank.Amount amount)
-
depositEquipment
public static boolean depositEquipment()
-
depositEquipment
public static boolean depositEquipment(boolean moveMouse)
-
depositInventory
public static boolean depositInventory()
-
depositInventory
public static boolean depositInventory(boolean moveMouse)
-
withdrawAllFilter
@Nullable public static @Nullable java.lang.Boolean withdrawAllFilter(@Nonnull java.util.Map<java.util.function.Predicate<RSItem>,java.lang.Integer> items)
-
withdrawAllFilter
@Nullable public static @Nullable java.lang.Boolean withdrawAllFilter(@Nonnull java.util.Map<java.util.function.Predicate<RSItem>,java.lang.Integer> items, boolean moveMouse)
-
withdrawAll
@Nullable public static @Nullable java.lang.Boolean withdrawAll(@Nonnull java.util.HashMap<RSItem,java.lang.Integer> items)
-
withdrawAll
@Nullable public static @Nullable java.lang.Boolean withdrawAll(@Nonnull java.util.Map<RSWidget,java.lang.Integer> items)
-
withdrawAll
@Nullable public static @Nullable java.lang.Boolean withdrawAll(@Nonnull java.util.Map<RSWidget,java.lang.Integer> items, boolean moveMouse)
-
withdrawAll
@Nullable public static @Nullable java.lang.Boolean withdrawAll(@Nonnull java.util.HashMap<java.lang.String,java.lang.Integer> items, boolean ignoreCase)
-
withdrawAll
@Nullable public static @Nullable java.lang.Boolean withdrawAll(@Nonnull java.util.HashMap<java.lang.String,java.lang.Integer> items, boolean ignoreCase, boolean moveMouse)
-
withdraw
@Nullable public static @Nullable java.lang.Boolean withdraw(@Nonnull java.util.function.Predicate<RSItem> itemFilter, int amount)
-
withdraw
@Nullable public static @Nullable java.lang.Boolean withdraw(@Nonnull java.util.function.Predicate<RSItem> itemFilter, int amount, boolean moveMouse)
-
withdraw
@Nullable public static @Nullable java.lang.Boolean withdraw(@Nonnull java.lang.String name, int amount)
-
withdraw
@Nullable public static @Nullable java.lang.Boolean withdraw(@Nonnull java.lang.String name, int amount, boolean moveMouse)
-
withdraw
@Nullable public static @Nullable java.lang.Boolean withdraw(@Nonnull RSItem item, int amount)
-
withdraw
@Nullable public static @Nullable java.lang.Boolean withdraw(@Nonnull RSItem item, int amount, boolean moveMouse)
-
withdraw
@Nullable public static @Nullable java.lang.Boolean withdraw(@Nonnull RSWidget widget, int amount)
-
withdraw
@Nullable public static @Nullable java.lang.Boolean withdraw(@Nonnull RSWidget widget, int amount, boolean moveMouse)
-
depositAll
public static boolean depositAll(@Nonnull java.util.function.Predicate<RSItem> itemFilter)
-
depositAll
public static boolean depositAll(@Nonnull java.util.function.Predicate<RSItem> itemFilter, boolean moveMouse)
-
depositAllExcept
public static boolean depositAllExcept(@Nonnull java.util.function.Predicate<RSItem> itemFilter)
-
depositAllExcept
public static boolean depositAllExcept(@Nonnull java.util.function.Predicate<RSItem> itemFilter, boolean moveMouse)
-
depositAllExcept
public static boolean depositAllExcept(@Nonnull java.lang.String... names)
-
depositAllExcept
public static boolean depositAllExcept(@Nonnull java.util.List<java.lang.String> names, boolean moveMouse)
-
deposit
public static boolean deposit(@Nonnull java.lang.String name, int amount)
-
deposit
public static boolean deposit(@Nonnull java.lang.String name, int amount, boolean moveMouse)
-
deposit
public static boolean deposit(@Nonnull RSItem item, int amount)
-
deposit
public static boolean deposit(@Nonnull RSItem item, int amount, boolean moveMouse)
-
deposit
public static boolean deposit(@Nonnull RSWidget widget, int amount)
-
deposit
public static boolean deposit(@Nonnull RSWidget widget, int amount, boolean moveMouse)
-
openWithBanker
public static boolean openWithBanker(boolean random)
-
openWithBanker
public static boolean openWithBanker(boolean random, boolean moveMouse)
-
openWithBanker
public static boolean openWithBanker(@Nonnull RSNpc banker)
-
openWithBanker
public static boolean openWithBanker(@Nonnull RSNpc banker, boolean moveMouse)
-
openWithBoothOrChest
public static boolean openWithBoothOrChest(boolean random, boolean moveMouse)
-
openWithBoothOrChest
public static boolean openWithBoothOrChest(@Nonnull RSObject bank)
-
openWithBoothOrChest
public static boolean openWithBoothOrChest(@Nonnull RSObject bank, boolean moveMouse)
-
getBoothOrChest
@Nullable public static @Nullable RSObject getBoothOrChest(boolean random)
-
getNPCBanker
@Nullable public static @Nullable RSNpc getNPCBanker(boolean random)
-
shouldOpenWithNpc
public static boolean shouldOpenWithNpc()
-
openRandom
public static boolean openRandom()
-
openRandom
public static boolean openRandom(boolean moveMouse)
-
openNearest
public static boolean openNearest()
-
openNearest
public static boolean openNearest(boolean moveMouse)
-
-