Class Bank
- java.lang.Object
-
- com.osrsbots.orb.api.interactables.widgets.Bank
-
public class Bank extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBank.Amount
-
Field Summary
Fields Modifier and Type Field Description static intDEPOSIT_ALL_MAX_DELAYstatic intDEPOSIT_ALL_MIN_DELAYstatic intUSE_NPC_PREFERENCE_SEEDstatic intWITHDRAW_ALL_MAX_DELAYstatic intWITHDRAW_ALL_MIN_DELAY
-
Constructor Summary
Constructors Constructor Description Bank()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanclose()static booleandeposit(RSItem item, int amount)static booleandeposit(RSItem item, int amount, boolean moveMouse)static booleandeposit(RSWidget widget, int amount)static booleandeposit(RSWidget widget, int amount, boolean moveMouse)static booleandeposit(java.lang.String name, int amount)static booleandeposit(java.lang.String name, int amount, boolean moveMouse)static booleandepositAll(java.util.function.Predicate<RSItem> itemFilter)static booleandepositAll(java.util.function.Predicate<RSItem> itemFilter, boolean moveMouse)static booleandepositAllExcept(java.lang.String... names)static booleandepositAllExcept(java.util.function.Predicate<RSItem> itemFilter)static booleandepositAllExcept(java.util.function.Predicate<RSItem> itemFilter, boolean moveMouse)static booleandepositAllExcept(java.util.List<java.lang.String> names, boolean moveMouse)static booleandepositEquipment()static booleandepositEquipment(boolean moveMouse)static booleandepositInventory()static booleandepositInventory(boolean moveMouse)static @Nullable net.runelite.api.widgets.WidgetfindWidgetItem(net.runelite.api.widgets.WidgetInfo container, java.lang.String name, boolean random)static Bank.AmountgetAmount()static intgetAmountValue()static @Nullable RSObjectgetBoothOrChest(boolean random)static @Nullable RSNpcgetNPCBanker(boolean random)static voidinitSeeds()static booleanisOpen()static booleanopenCustomAmountDialog()static booleanopenNearest()static booleanopenNearest(boolean moveMouse)static booleanopenRandom()static booleanopenRandom(boolean moveMouse)static booleanopenWithBanker(boolean random)static booleanopenWithBanker(boolean random, boolean moveMouse)static booleanopenWithBanker(RSNpc banker)static booleanopenWithBanker(RSNpc banker, boolean moveMouse)static booleanopenWithBoothOrChest(boolean random, boolean moveMouse)static booleanopenWithBoothOrChest(RSObject bank)static booleanopenWithBoothOrChest(RSObject bank, boolean moveMouse)static booleansetAmount(Bank.Amount amount)static voidsetCustomAmount(int amount)static booleanshouldOpenWithNpc()static booleanuniquelyDepositInventory(boolean moveMouse)static @Nullable java.lang.Booleanwithdraw(RSItem item, int amount)static @Nullable java.lang.Booleanwithdraw(RSItem item, int amount, boolean moveMouse)static @Nullable java.lang.Booleanwithdraw(RSWidget widget, int amount)static @Nullable java.lang.Booleanwithdraw(RSWidget widget, int amount, boolean moveMouse)static @Nullable java.lang.Booleanwithdraw(java.lang.String name, int amount)static @Nullable java.lang.Booleanwithdraw(java.lang.String name, int amount, boolean moveMouse)static @Nullable java.lang.Booleanwithdraw(java.util.function.Predicate<RSItem> itemFilter, int amount)static @Nullable java.lang.Booleanwithdraw(java.util.function.Predicate<RSItem> itemFilter, int amount, boolean moveMouse)static @Nullable java.lang.BooleanwithdrawAll(java.util.HashMap<RSItem,java.lang.Integer> items)static @Nullable java.lang.BooleanwithdrawAll(java.util.HashMap<java.lang.String,java.lang.Integer> items, boolean ignoreCase)static @Nullable java.lang.BooleanwithdrawAll(java.util.HashMap<java.lang.String,java.lang.Integer> items, boolean ignoreCase, boolean moveMouse)static @Nullable java.lang.BooleanwithdrawAll(java.util.Map<RSWidget,java.lang.Integer> items)static @Nullable java.lang.BooleanwithdrawAll(java.util.Map<RSWidget,java.lang.Integer> items, boolean moveMouse)static @Nullable java.lang.BooleanwithdrawAllFilter(java.util.Map<java.util.function.Predicate<RSItem>,java.lang.Integer> items)static @Nullable java.lang.BooleanwithdrawAllFilter(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)
-
uniquelyDepositInventory
public static boolean uniquelyDepositInventory(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)
-
findWidgetItem
@Nullable public static @Nullable net.runelite.api.widgets.Widget findWidgetItem(net.runelite.api.widgets.WidgetInfo container, java.lang.String name, boolean random)
-
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)
-
-