Uses of Class
privbot.mechanics.GearSetup
Packages that use GearSetup
Package
Description
ctx.* facades: inventory, bank, NPCs, widgets, and the other one-liners.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 GearSetup in privbot.hooks
Methods in privbot.hooks that return types with arguments of type GearSetupModifier and TypeMethodDescriptionLoadouts.captureCarried()Reads what is carried, one entry per item id, with the role of each.Loadouts.captureWorn()Reads what is worn, by slot.Loads a saved setup.Methods in privbot.hooks with parameters of type GearSetupModifier and TypeMethodDescriptionStarts a job that puts on every missing worn piece ofworn, one proved piece per step (at most one click, then up to 1800 ms waiting for that piece's slot to hold its item).booleanSaves a setup under a name for the logged-in account on this server.Puts on every missing worn piece ofwornin this one call: a same-tick gear switch. -
Uses of GearSetup in privbot.mechanics
Methods in privbot.mechanics that return GearSetupModifier and TypeMethodDescriptionstatic 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.RestockTarget.carried()static GearSetupSwitchCheck.setup()SwitchResult.verificationSetup()The setup to verify: accepted name-matched clicks use the selected item's actual id in its intended slot.RestockTarget.worn()Methods in privbot.mechanics with parameters of type GearSetupModifier and TypeMethodDescriptionstatic StylePlanner.CandidateStylePlanner.candidate(CombatStyle style, GearSetup setup, FightFrame frame, Boolean blocked, Boolean outOfReach, boolean refused, boolean allowNameVariants) Derive one style candidate from a worn setup and a same-tick frame.static SetupDiffSetupDiff.carried(GearSetup wanted, ItemContainerSnapshot inventory) Compares the inventory with a carried setup.static KnockoutWeaponPlan.PlanKnockoutWeaponPlan.plan(PvpFightHistory.View fight, KnockoutWeaponDecision.Decision decision, Set<Integer> koIds, GearSetup mainSetup, Boolean mainSwitchAllowed, PvpArbiter.Context arbiter) Bind a same-tick KO decision to exact server-verified weapon IDs and frame containers.static PvpActionPlanner.PlanPvpActionPlanner.planWithSpecialSet(PvpFightHistory.View fight, ConsumePlanner.Settings settings, ConsumePlanner.State state, PvpArbiter.Context arbiter, SpecialAttackPolicy.Decision special, GearSetup specialSet, PvpMovement.Decision movement, StylePlanner.Decision style, List<PvpArbiter.Action> otherActions) Derive special-set readiness from the exact frame being planned, avoiding a stale caller-retained flag.voidRecords a switch that went out this tick; it replaces any outstanding one.static BooleanPvpActionPlanner.specialSetReady(FightFrame frame, GearSetup setup) Compares a nonempty special set with this frame's actual equipment.static SetupDiffSetupDiff.worn(GearSetup wanted, ItemContainerSnapshot equipment) Compares worn equipment with a worn setup.