Uses of Class
privbot.hooks.container.ItemContainerSnapshot
Packages that use ItemContainerSnapshot
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.
Restock and loot helpers shared by plugins:
RestockRunner with its
RestockRoute, RestockCycle and RestockHost,
plus GroundLoot and LootNames.-
Uses of ItemContainerSnapshot in privbot.hooks
Methods in privbot.hooks that return ItemContainerSnapshotModifier and TypeMethodDescriptionEquipment.snapshot()Immutable worn-slot facts; seeInventory.snapshot()for source and read-scope rules.Inventory.snapshot()Detached facts captured in one client callback. -
Uses of ItemContainerSnapshot in privbot.hooks.container
Methods in privbot.hooks.container that return ItemContainerSnapshotModifier and TypeMethodDescriptionstatic ItemContainerSnapshotItemContainerSnapshot.unavailable() -
Uses of ItemContainerSnapshot in privbot.mechanics
Fields in privbot.mechanics declared as ItemContainerSnapshotMethods in privbot.mechanics that return ItemContainerSnapshotMethods in privbot.mechanics with parameters of type ItemContainerSnapshotModifier and TypeMethodDescriptionstatic DrinkProofDrinkProof.begin(int tick, String potionName, ItemContainerSnapshot inventory) Returns null unless the selected potion and its complete readable dose baseline can be established.static FoodProofFoodProof.begin(int sentTick, int itemId, ItemContainerSnapshot before) A readable pre-send inventory containing this item is required; null means no baseline can be established.static GearSetupGearSetup.captureCarried(ItemContainerSnapshot inventory) Captures what is carried: a stack split over several slots is merged into one entry per item id (it keeps the first slot it was seen in).static GearSetupGearSetup.captureWorn(ItemContainerSnapshot equipment) Captures what is worn, by slot, at the quantity worn now.static SetupDiffSetupDiff.carried(GearSetup wanted, ItemContainerSnapshot inventory) Compares the inventory with a carried setup.static SustainChoiceSustainPolicy.comboAfterEat(SustainPlan plan, Integer hp, Integer maxHp, ItemContainerSnapshot inv) Call with the readings taken before the first Eat: the combo click goes out straight after it in the same tick, so HP has not changed yet.static SustainChoiceSustainPolicy.decide(SustainPlan plan, Integer hp, Integer maxHp, Integer prayer, ItemContainerSnapshot inv, Map<net.runelite.api.Skill, Integer> boostBySkill, long now) DrinkProof.observe(int tick, ItemContainerSnapshot inventory) A later lower dose total is proof of a change; timeout never means the click was refused.FoodProof.observe(int tick, ItemContainerSnapshot inventory) A later observed drop proves the count changed.voidHealthHistory.observe(int tick, Integer hp, ItemContainerSnapshot inventory) Record one detached sample; a missing inventory does not mean an empty one.static SetupDiffSetupDiff.worn(GearSetup wanted, ItemContainerSnapshot equipment) Compares worn equipment with a worn setup.Constructors in privbot.mechanics with parameters of type ItemContainerSnapshotModifierConstructorDescriptionFightFrame(int tick, PvpSnapshot players, ThreatSnapshot threats, ItemContainerSnapshot equipment, ItemContainerSnapshot inventory, Boolean specArmed) The snapshots must correspond totick; unavailable or structurally invalid containers are represented as null.FightFrame(int tick, PvpSnapshot players, ThreatSnapshot threats, ItemContainerSnapshot equipment, ItemContainerSnapshot inventory, Boolean specArmed, CombatLevels levels) As above, with combat levels collected for this decision; individual levels may be null.State(int tick, Integer hp, Integer maxHp, Integer prayer, Integer worstHit, Integer lastFood, Integer lastCombo, Integer lastPotion, Integer idleTick, Integer deferredSince, ItemContainerSnapshot inventory, KnockoutRisk.Assessment risk, Integer attack, Integer attackReal, Integer strength, Integer strengthReal, Integer magic, Integer magicReal) -
Uses of ItemContainerSnapshot in privbot.restock
Methods in privbot.restock with parameters of type ItemContainerSnapshotModifier and TypeMethodDescriptionstatic StringRestockRunner.fingerprint(ItemContainerSnapshot equipment, ItemContainerSnapshot inventory) static intRestockSupplies.food(ItemContainerSnapshot inventory) Items carried with an Eat action (stack quantities summed).static intRestockSupplies.named(ItemContainerSnapshot inventory, List<String> fragments) Items carried whose name contains any of the names (case-insensitive).static StringRestockSupplies.reason(ItemContainerSnapshot inventory, int minFood, List<String> potionNames, int minPotions) Why a trip is due, or null when it is not (or the inventory is unreadable).