Package com.valhalla.sdk.api.methods
Class Bank
java.lang.Object
com.valhalla.sdk.api.methods.Bank
Bank container queries and capability-gated actions.
Snapshot and cache methods remain useful away from the bank. Mutating
operations return false until the active native adapter advertises
bank-actions.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanaddToBankHistoryCache(Item item) all()static intstatic intcapacity()static booleanclose()static booleancontains(int id) static booleancontains(int... ids) static booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleancontainsAll(int... ids) static booleancontainsAll(Integer... ids) static booleancontainsAll(String... names) static booleancontainsAll(Collection<?> values) static intcount(int id) static intcount(int... ids) static intstatic intstatic intstatic intstatic intstatic booleandeposit(int id) static booleandeposit(int id, int amount) static booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleandepositAll(int id) static booleandepositAll(Item item) static booleandepositAll(Filter<Item> filter) static booleandepositAll(String name) static booleanstatic booleandepositAllExcept(int... ids) static booleandepositAllExcept(Filter<Item> keep) static booleandepositAllExcept(String... names) static booleanstatic booleandepositSlot(int slot, int amount) Deposits by inventory slot when inventory snapshots are unavailable.static booleandrag(int fromSlot, int toSlot) static booleanstatic intstatic intget(int id) get(int... ids) static intstatic intstatic BankQuantitySelectionstatic intstatic intstatic intgetIdForSlot(int slot) getItemInSlot(int slot) static longstatic longstatic longstatic intstatic StringgetNameForSlot(int slot) static BankModestatic intstatic intstatic intgetSlot(int id) static intstatic intstatic intgetTab(int slot) static intstatic BankModestatic booleanstatic booleanisCached()static booleanisEmpty()static booleanisFull()static booleanisLoaded()static booleanisOpen()static booleanstatic booleanisSlotEmpty(int slot) static booleanisSlotFull(int slot) static booleanisSlotVisible(Item item) static booleanneedToScroll(Item item) static booleanneedToScrollDown(Item item) static booleanneedToScrollUp(Item item) static booleanonlyContains(int... ids) static booleanonlyContains(Filter<Item> filter) static booleanonlyContains(String... names) static booleanopen()static booleanopenTab(int tab) static booleanstatic booleanstatic voidreset()static voidreset(boolean full) static voidstatic booleanscroll(int id) static booleanscroll(int id, BankScroll type) static booleanstatic booleanscroll(Filter<Item> filter, BankScroll type) static booleanstatic booleanscroll(String name, BankScroll type) static booleansearchItem(String itemName) static voidsetAlwaysOpenTab(boolean enabled) static booleansetDefaultQuantity(BankQuantitySelection selection) static voidsetMinimumItemToSearch(int amount) static booleansetRearrangeMode(BankMode mode) static voidsetRetainBankCache(boolean retain) static voidsetSearchItem(boolean enabled) static voidsetUseBankHistoryCache(boolean enabled) static booleansetWithdrawMode(BankMode mode) static booleanstatic booleanstatic booleanslotContains(int slot, int... ids) static booleanslotContains(int slot, Item item) static booleanslotContains(int slot, Filter<Item> filter) static booleanslotContains(int slot, String... names) static booleanslotNameContains(int slot, String substring) static booleantogglePlaceholders(boolean enabled) static voidstatic voidupdateCache(Collection<Item> items) static booleanwithdraw(int id) static booleanwithdraw(int id, int amount) static booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanwithdrawAll(int id) static booleanwithdrawAll(Item item) static booleanwithdrawAll(Filter<Item> filter) static booleanwithdrawAll(String name) static booleanwithdrawSlot(int slot, int amount) Withdraws by container slot when item snapshots are unavailable.
-
Field Details
-
ALL
public static final int ALL- See Also:
-
ALL_BUT_ONE
public static final int ALL_BUT_ONE- See Also:
-
-
Method Details
-
all
-
all
-
except
-
get
-
get
-
get
-
get
-
get
-
get
-
getItemInSlot
-
contains
public static boolean contains(int id) -
contains
public static boolean contains(int... ids) -
contains
-
contains
-
contains
-
contains
-
contains
-
containsAll
public static boolean containsAll(int... ids) -
containsAll
-
containsAll
-
containsAll
-
onlyContains
public static boolean onlyContains(int... ids) -
onlyContains
-
onlyContains
-
count
public static int count(int id) -
count
public static int count(int... ids) -
count
-
count
-
count
-
count
-
count
-
capacity
public static int capacity() -
fullSlotCount
public static int fullSlotCount() -
emptySlotCount
public static int emptySlotCount() -
isEmpty
public static boolean isEmpty() -
isFull
public static boolean isFull() -
getFirstFullSlot
public static int getFirstFullSlot() -
getFirstEmptySlot
public static int getFirstEmptySlot() -
getIdForSlot
public static int getIdForSlot(int slot) -
getNameForSlot
-
getSlot
public static int getSlot(int id) -
getSlot
-
getSlot
-
isSlotEmpty
public static boolean isSlotEmpty(int slot) -
isSlotFull
public static boolean isSlotFull(int slot) -
slotContains
public static boolean slotContains(int slot, int... ids) -
slotContains
-
slotContains
-
slotContains
-
slotNameContains
-
getRow
-
getTab
-
getTab
public static int getTab(int slot) -
availableTabs
public static int availableTabs() -
getCurrentTab
public static int getCurrentTab() -
getCurrentBankTab
-
getScrollHeight
public static int getScrollHeight() -
getCustomWithdrawAmount
public static int getCustomWithdrawAmount() -
getWithdrawMode
-
getRearrangeMode
-
getDefaultQuantity
-
placeHoldersEnabled
public static boolean placeHoldersEnabled() -
isSearchItem
public static boolean isSearchItem() -
isOpen
public static boolean isOpen() -
isLoaded
public static boolean isLoaded() -
getLastUpdatedTick
public static long getLastUpdatedTick() -
isSlotVisible
-
needToScroll
-
needToScrollUp
-
needToScrollDown
-
isCached
public static boolean isCached() -
getBankHistoryCache
-
getLastBankHistoryCacheTime
public static long getLastBankHistoryCacheTime() -
getLastBankHistoryCacheTick
public static long getLastBankHistoryCacheTick() -
setUseBankHistoryCache
public static void setUseBankHistoryCache(boolean enabled) -
setRetainBankCache
public static void setRetainBankCache(boolean retain) -
shouldRetainBankCache
public static boolean shouldRetainBankCache() -
resetCache
public static void resetCache() -
reset
public static void reset() -
reset
public static void reset(boolean full) -
updateCache
public static void updateCache() -
updateCache
-
addToBankHistoryCache
-
open
public static boolean open() -
close
public static boolean close() -
openTab
public static boolean openTab(int tab) -
openTab
-
setWithdrawMode
-
setRearrangeMode
-
setDefaultQuantity
-
togglePlaceholders
public static boolean togglePlaceholders(boolean enabled) -
drag
public static boolean drag(int fromSlot, int toSlot) -
emptyContainers
public static boolean emptyContainers() -
withdraw
public static boolean withdraw(int id) -
withdraw
public static boolean withdraw(int id, int amount) -
withdraw
-
withdraw
-
withdraw
-
withdraw
-
withdrawAll
public static boolean withdrawAll(int id) -
withdrawAll
-
withdrawAll
-
withdraw
-
withdraw
-
withdrawAll
-
withdrawSlot
public static boolean withdrawSlot(int slot, int amount) Withdraws by container slot when item snapshots are unavailable. -
deposit
public static boolean deposit(int id) -
deposit
public static boolean deposit(int id, int amount) -
deposit
-
deposit
-
deposit
-
deposit
-
deposit
-
deposit
-
depositAll
public static boolean depositAll(int id) -
depositAll
-
depositAll
-
depositAll
-
depositSlot
public static boolean depositSlot(int slot, int amount) Deposits by inventory slot when inventory snapshots are unavailable. -
depositAllItems
public static boolean depositAllItems() -
depositAllEquipment
public static boolean depositAllEquipment() -
depositAllExcept
public static boolean depositAllExcept(int... ids) -
depositAllExcept
-
depositAllExcept
-
scroll
public static boolean scroll(int id) -
scroll
-
scroll
-
scroll
-
scroll
-
scroll
-
searchItem
-
isAlwaysOpenTab
public static boolean isAlwaysOpenTab() -
setAlwaysOpenTab
public static void setAlwaysOpenTab(boolean enabled) -
setSearchItem
public static void setSearchItem(boolean enabled) -
shouldSearchItems
public static boolean shouldSearchItems() -
getMinimumItemToSearch
public static int getMinimumItemToSearch() -
setMinimumItemToSearch
public static void setMinimumItemToSearch(int amount)
-