Package net.storm.api.widgets
Interface IBankWornItems
public interface IBankWornItems
Interface for interacting with worn items displayed in the bank interface.
This interface provides methods to access and manage equipped items while the bank interface is open. It allows viewing, depositing, and unequipping items from the worn equipment panel in the bank.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the worn items panel in the bank interface.fromSlot(EquipmentSlot slot) Gets the item worn in the specified equipment slot.getAmmo()Gets the item worn in the ammunition slot.Gets the item worn in the amulet/necklace slot.getBody()Gets the item worn in the body/chest slot.getBoots()Gets the item worn in the boots slot.getCape()Gets the item worn in the cape slot.Gets the item worn in the gloves slot.getHead()Gets the item worn in the head slot.getLegs()Gets the item worn in the legs slot.getRing()Gets the item worn in the ring slot.Gets the item worn in the shield/off-hand slot.Gets the item worn in the weapon slot.booleanisOpen()Checks if the worn items panel in the bank interface is currently open.voidopen()Opens the worn items panel in the bank interface.
-
Method Details
-
isOpen
boolean isOpen()Checks if the worn items panel in the bank interface is currently open.- Returns:
trueif the worn items panel is open,falseotherwise
-
open
void open()Opens the worn items panel in the bank interface. -
close
void close()Closes the worn items panel in the bank interface. -
getHead
Gets the item worn in the head slot.- Returns:
- the head item, or
nullif the slot is empty
-
getCape
Gets the item worn in the cape slot.- Returns:
- the cape item, or
nullif the slot is empty
-
getAmulet
Gets the item worn in the amulet/necklace slot.- Returns:
- the amulet item, or
nullif the slot is empty
-
getWeapon
Gets the item worn in the weapon slot.- Returns:
- the weapon item, or
nullif the slot is empty
-
getBody
Gets the item worn in the body/chest slot.- Returns:
- the body item, or
nullif the slot is empty
-
getShield
Gets the item worn in the shield/off-hand slot.- Returns:
- the shield item, or
nullif the slot is empty
-
getLegs
Gets the item worn in the legs slot.- Returns:
- the legs item, or
nullif the slot is empty
-
getGloves
Gets the item worn in the gloves slot.- Returns:
- the gloves item, or
nullif the slot is empty
-
getBoots
Gets the item worn in the boots slot.- Returns:
- the boots item, or
nullif the slot is empty
-
getRing
Gets the item worn in the ring slot.- Returns:
- the ring item, or
nullif the slot is empty
-
getAmmo
Gets the item worn in the ammunition slot.- Returns:
- the ammunition item, or
nullif the slot is empty
-
fromSlot
Gets the item worn in the specified equipment slot.- Parameters:
slot- the equipment slot to retrieve the item from- Returns:
- the item in the specified slot, or
nullif the slot is empty
-