Package net.storm.api.domain.items
Interface IBankItem
- All Superinterfaces:
Identifiable,IItem,Interactable,Nameable,RuneLiteWrapper<net.runelite.api.Item>
Represents an item stored in the player's bank with withdrawal capabilities.
This interface extends IItem with methods specific to bank items,
allowing items to be withdrawn from the bank to the player's inventory.
Usage notes:
- The bank interface must be open to interact with bank items
- Items are withdrawn to the player's inventory if space is available
- The withdrawal mode (noted/un-noted) is determined by bank settings
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidwithdraw(int amount) Withdraws a specific amount of this item from the bank.voidWithdraws all of this item from the bank.Methods inherited from interface net.storm.api.domain.Identifiable
getIdMethods inherited from interface net.storm.api.domain.items.IItem
getComposition, getNotedId, getQuantity, getSlot, getSubOptionIndex, getSubOptions, getWidget, hasSubOption, isMembers, isNoted, isPlaceholder, isStackable, isTradable, setWidgetMethods inherited from interface net.storm.api.domain.Interactable
generateMenu, generateMenu, generateMenu, generateMenu, generateMenu, generateMenu, generateMenu, generateMenu, generateMenu, generateMenu, getActionIndex, getActions, getClickPoint, hasAction, hasAction, hasAction, interact, interact, interact, interact, interact, interact, interact, interact, interact, interact, interact, interact, interact, interact, interact, interact, isInteractable, isInteractable, isInteractableMethods inherited from interface net.storm.api.domain.RuneLiteWrapper
getWrapped
-
Method Details
-
withdraw
void withdraw(int amount) Withdraws a specific amount of this item from the bank.The item will be placed in the player's inventory. If the specified amount exceeds the available quantity, only the available amount will be withdrawn.
- Parameters:
amount- the number of items to withdraw
-
withdrawAll
void withdrawAll()Withdraws all of this item from the bank.All items of this type will be transferred to the player's inventory, limited by available inventory space. For non-stackable items, this will withdraw up to the number of free inventory slots.
-