Uses of Class
privbot.hooks.container.ItemContainerSnapshot.Item
Packages that use ItemContainerSnapshot.Item
Package
Description
ctx.* facades: inventory, bank, NPCs, widgets, and the other one-liners.Inventory and bank container slot reads.
Pure game-mechanic rules shared by plugins on every server: the same name and meaning on Impact, Elorin, Orion,
SpawnPK and Roat Pkz.
-
Uses of ItemContainerSnapshot.Item in privbot.hooks
Methods in privbot.hooks with parameters of type ItemContainerSnapshot.ItemModifier and TypeMethodDescriptionbooleanInventory.interact(ItemContainerSnapshot.Item selected, String action) Interact with a detached selection after confirming the slot still holds that item and action. -
Uses of ItemContainerSnapshot.Item in privbot.hooks.container
Fields in privbot.hooks.container with type parameters of type ItemContainerSnapshot.ItemModifier and TypeFieldDescriptionfinal List<ItemContainerSnapshot.Item> ItemContainerSnapshot.itemsThe occupied slots, in slot order (unmodifiable).Methods in privbot.hooks.container that return ItemContainerSnapshot.ItemModifier and TypeMethodDescriptionExact name first, then a case-insensitive substring match.ItemContainerSnapshot.first(Predicate<ItemContainerSnapshot.Item> match) ItemContainerSnapshot.firstWithAction(String action) ItemContainerSnapshot.id(int id) ItemContainerSnapshot.slot(int slot) Method parameters in privbot.hooks.container with type arguments of type ItemContainerSnapshot.ItemModifier and TypeMethodDescriptionintItemContainerSnapshot.count(Predicate<ItemContainerSnapshot.Item> match) ItemContainerSnapshot.first(Predicate<ItemContainerSnapshot.Item> match) Constructor parameters in privbot.hooks.container with type arguments of type ItemContainerSnapshot.ItemModifierConstructorDescriptionItemContainerSnapshot(List<ItemContainerSnapshot.Item> items, boolean available) -
Uses of ItemContainerSnapshot.Item in privbot.mechanics
Methods in privbot.mechanics that return ItemContainerSnapshot.ItemModifier and TypeMethodDescriptionConsumePlanner.Action.item()EmergencyConsume.Action.item()PvpArbiter.Action.item()Exact detached inventory item for a planned consume or equip, or null for other actions.StylePlanner.GearPick.item()Methods in privbot.mechanics that return types with arguments of type ItemContainerSnapshot.ItemMethods in privbot.mechanics with parameters of type ItemContainerSnapshot.ItemModifier and TypeMethodDescriptionstatic PvpArbiter.ActionPvpArbiter.Action.consume(ConsumeTiming.Kind kind, ItemContainerSnapshot.Item item) Construct a consume action retaining its item ID, slot and distinct food, combo or potion category.static EmergencyConsume.DecisionEmergencyConsume.decide(ConsumeTiming.Mode mode, int tick, Integer hpPercent, Integer worstHitPercent, int eatAtPercent, int emergencyPercent, Integer lastFood, Integer lastCombo, Integer lastPotion, ItemContainerSnapshot.Item food, ItemContainerSnapshot.Item combo, ItemContainerSnapshot.Item brew, ItemContainerSnapshot.Item restore, Boolean restoreDue) Applies the flagship emergency rule to one inventory snapshot.static PvpArbiter.ActionPvpArbiter.Action.gear(PvpArbiter.Kind kind, ItemContainerSnapshot.Item item, int equipmentSlot, CombatStyle style, String set) A fixed-set or bait gear proposal; the planner validates it against the current inventory.