Package net.storm.api.interact.builder
Interface ItemMenuBuilder
- All Superinterfaces:
MenuBuilder<ItemMenuBuilder>
Specialized menu builder for item interactions.
This builder extends MenuBuilder to provide a fluent API for
constructing menu actions that target items in various containers such
as inventory, bank, and equipment slots.
Common item interactions include:
- Use - Selecting an item for use on another target
- Drop - Dropping an item on the ground
- Eat/Drink - Consuming food or potions
- Equip/Wear - Equipping weapons and armor
- Examine - Viewing item descriptions
- Deposit/Withdraw - Banking actions
Example usage:
// Use an item from inventory
AutomatedMenu menu = menuFactory.inventoryItem(ItemID.LOBSTER, slot)
.option("Eat")
.build(clickPoint);
// Use item on another item
AutomatedMenu useMenu = menuFactory.inventoryItem(ItemID.KNIFE, knifeSlot)
.option("Use")
.useItem(ItemID.LOGS, logsSlot)
.build(clickPoint);
- See Also:
-
Method Summary
Methods inherited from interface net.storm.api.interact.builder.MenuBuilder
actionIndex, build, build, castSpell, identifier, interactMethod, itemId, opcode, option, param0, param1, target, useItem, worldViewId