Package net.storm.api.items
Interface IEquipment
- All Superinterfaces:
IItems<IItem>,ItemProvider<IItem>
Provides access to the player's equipped items.
Equipment items are worn in specific slots (head, body, legs, weapon, etc.).
This interface extends IItems to provide querying and interaction
with equipped items.
Example usage:
IEquipment equipment = Static.getEquipment();
IItem weapon = equipment.fromSlot(EquipmentSlot.WEAPON);
IItem helmet = equipment.fromSlot(EquipmentSlot.HEAD);
boolean hasAmulet = equipment.contains("Amulet of glory");
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionfromSlot(EquipmentSlot slot) Gets the item equipped in a specific slot.
-
Method Details
-
fromSlot
Gets the item equipped in a specific slot.- Parameters:
slot- the equipment slot- Returns:
- the item in the slot, or null if the slot is empty
-