Class Bank
java.lang.Object
org.highlife.api.methods.container.impl.bank.Bank
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanaddToBankHistoryCache(Item item) all()static intstatic RectanglecalculateSlotPosition(int slot) static 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<?> collection) 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(String name) static booleandepositAll(Filter<Item> filter) static booleandepositAll(Item item) static booleanstatic booleandepositAllExcept(int[] ids) static booleandepositAllExcept(Integer... ids) static booleandepositAllExcept(String... names) static booleandepositAllExcept(Filter<Item> filter) static booleanstatic booleandrag(int fromSlot, int toSlot) static booleanstatic intstatic intstatic Itemget(int id) static Itemget(int[] ids) static Itemstatic Itemstatic Itemstatic Itemstatic WidgetChildgetChild(int id) static WidgetChildstatic WidgetChildstatic WidgetChildstatic WidgetChildgetChildForSlot(int slot) static EntitygetClosestBank(BankType type) static BankLocationstatic BankLocationgetClosestBankLocation(boolean includeTeleports) static BankTabstatic intstatic intstatic BankQuantitySelectionstatic intstatic intstatic intgetIdForSlot(int slot) static ItemgetItemInSlot(int slot) static longstatic longstatic intstatic 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(Integer... ids) static booleanonlyContains(String... names) static booleanonlyContains(Filter<Item> f) static booleanopen()static booleanopen(BankLocation bank) 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(String name, BankScroll type) static booleanstatic booleanscroll(Filter<Item> filter, BankScroll type) static booleansearchItem(String itemName) static Itemstatic voidsetAlwaysOpenTab(boolean alwaysOpenTab) static booleansetDefaultQuantity(BankQuantitySelection selection) static voidsetMinimumItemToSearch(int minimumItemToSearch) static booleansetRearrangeMode(BankMode mode) static voidsetRetainBankCache(boolean retainBankCache) static voidsetSearchItem(boolean searchItem) static voidsetUseBankHistoryCache(boolean useCache) static booleansetWithdrawMode(BankMode mode) static booleanstatic RectangleslotBounds(int slot) static RectangleslotBounds(Item item) static booleanslotContains(int slot, int[] ids) static booleanslotContains(int slot, Integer... ids) static booleanslotContains(int slot, String... names) static booleanslotContains(int slot, Filter<Item> filter) static booleanslotContains(int slot, Item t) static booleanslotNameContains(int slot, String sub) static intstatic booleantogglePlaceholders(boolean enabled) static voidupdate()static voidstatic voidupdateCache(Collection<Item> items) static intstatic intstatic booleanwithdraw(int id) static booleanwithdraw(int id, int amount) static booleanstatic booleanstatic booleanstatic booleanstatic booleanwithdrawAll(int id) static booleanwithdrawAll(String name) static booleanwithdrawAll(Filter<Item> filter)
-
Constructor Details
-
Bank
public Bank()
-
-
Method Details
-
widgetParentId
public static int widgetParentId() -
widgetChildId
public static int widgetChildId() -
tabContainerWidgetId
public static int tabContainerWidgetId() -
capacity
public static int capacity() -
get
-
setUseBankHistoryCache
public static void setUseBankHistoryCache(boolean useCache) -
update
public static void update() -
all
-
isLoaded
public static boolean isLoaded() -
calculateSlotPosition
-
resetCache
public static void resetCache() -
getLastUpdatedTick
public static int getLastUpdatedTick() -
isOpen
public static boolean isOpen() -
getClosestBank
-
open
public static boolean open() -
open
-
getClosestBankLocation
-
getClosestBankLocation
-
withdraw
public static boolean withdraw(int id) -
withdrawAll
public static boolean withdrawAll(int id) -
withdraw
public static boolean withdraw(int id, int amount) -
withdraw
-
withdraw
-
withdrawAll
-
withdraw
-
withdrawAll
-
withdraw
-
emptyContainers
public static boolean emptyContainers() -
depositAllItems
public static boolean depositAllItems() -
depositAllEquipment
public static boolean depositAllEquipment() -
deposit
-
depositAllExcept
-
close
public static boolean close() -
getCurrentTab
public static int getCurrentTab() -
slotBounds
-
slotBounds
-
openTab
public static boolean openTab(int tab) -
openTab
-
getBankHistoryCache
-
addToBankHistoryCache
-
getLastBankHistoryCacheTime
public static long getLastBankHistoryCacheTime() -
getLastBankHistoryCacheTick
public static long getLastBankHistoryCacheTick() -
isCached
public static boolean isCached() -
getChild
-
getChild
-
getChild
-
getChild
-
getChildForSlot
-
getRearrangeMode
-
isSlotVisible
-
getWithdrawMode
-
setWithdrawMode
-
setRearrangeMode
-
getDefaultQuantity
-
setDefaultQuantity
-
placeHoldersEnabled
public static boolean placeHoldersEnabled() -
togglePlaceholders
public static boolean togglePlaceholders(boolean enabled) -
needToScrollUp
-
needToScrollDown
-
needToScroll
-
getRow
-
getTab
-
getTab
public static int getTab(int slot) -
availableTabs
public static int availableTabs() -
count
-
getCurrentBankTab
-
getScrollHeight
public static int getScrollHeight() -
scroll
-
scroll
public static boolean scroll(int id) -
scroll
-
scroll
-
scroll
-
scroll
-
updateCache
-
updateCache
public static void updateCache() -
depositAll
-
deposit
public static boolean deposit(int id, int amount) -
deposit
-
deposit
-
depositAllExcept
-
depositAllExcept
-
depositAllExcept
public static boolean depositAllExcept(int[] ids) -
deposit
public static boolean deposit(int id) -
deposit
-
deposit
-
deposit
-
depositAll
public static boolean depositAll(int id) -
depositAll
-
depositAll
-
fullSlotCount
public static int fullSlotCount() -
emptySlotCount
public static int emptySlotCount() -
isSlotEmpty
public static boolean isSlotEmpty(int slot) -
isSlotFull
public static boolean isSlotFull(int slot) -
onlyContains
-
onlyContains
-
onlyContains
public static boolean onlyContains(int[] ids) -
onlyContains
-
slotContains
-
slotNameContains
-
slotContains
-
slotContains
public static boolean slotContains(int slot, int[] ids) -
slotContains
-
slotContains
-
getFirstEmptySlot
public static int getFirstEmptySlot() -
getFirstFullSlot
public static int getFirstFullSlot() -
getIdForSlot
public static int getIdForSlot(int slot) -
getNameForSlot
-
getSlot
public static int getSlot(int id) -
getSlot
-
getSlot
-
all
-
getItemInSlot
-
get
-
get
-
get
-
get
-
get
-
except
-
isEmpty
public static boolean isEmpty() -
contains
public static boolean contains(int id) -
contains
-
containsAll
-
containsAll
public static boolean containsAll(int[] ids) -
containsAll
-
containsAll
-
contains
-
contains
public static boolean contains(int[] ids) -
contains
-
contains
-
contains
-
isFull
public static boolean isFull() -
count
-
count
public static int count(int id) -
count
-
count
-
count
public static int count(int[] ids) -
count
-
set
-
reset
public static void reset() -
reset
public static void reset(boolean full) -
drag
public static boolean drag(int fromSlot, int toSlot) -
getCustomWithdrawAmount
public static int getCustomWithdrawAmount() -
shouldRetainBankCache
public static boolean shouldRetainBankCache() -
setRetainBankCache
public static void setRetainBankCache(boolean retainBankCache) -
searchItem
-
isAlwaysOpenTab
public static boolean isAlwaysOpenTab() -
setAlwaysOpenTab
public static void setAlwaysOpenTab(boolean alwaysOpenTab) -
isSearchItem
public static boolean isSearchItem() -
setSearchItem
public static void setSearchItem(boolean searchItem) -
getMinimumItemToSearch
public static int getMinimumItemToSearch() -
setMinimumItemToSearch
public static void setMinimumItemToSearch(int minimumItemToSearch)
-