Uses of Class
privbot.mechanics.NpcView
Packages that use NpcView
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 NpcView in privbot.hooks
Methods in privbot.hooks with parameters of type NpcViewModifier and TypeMethodDescriptionFinds the live NPC for a view.Method parameters in privbot.hooks with type arguments of type NpcView -
Uses of NpcView in privbot.mechanics
Methods in privbot.mechanics that return NpcViewModifier and TypeMethodDescriptionTargetLock.choose(List<NpcView> npcs, int currentTargetIndex, net.runelite.api.coords.WorldPoint player, TargetSpec spec) Picks the target, in this order: the current target, if it matches and is alive and not busy; the locked NPC, if present with the same index and id, still matching the spec, alive and not busy; the first matching NPC that targets us and is alive; the nearest matching NPC that is alive and not busy, ties to the lower index. A locked NPC seen dead counts a kill if it had targeted us or been our current target.ThreatSnapshot.find(int index) TagAllTracker.nextTarget(List<NpcView> npcs, net.runelite.api.coords.WorldPoint player) The NPC to attack next: nearest untagged, else nearest overall, elsenull.Methods in privbot.mechanics that return types with arguments of type NpcViewMethods in privbot.mechanics with parameters of type NpcViewModifier and TypeMethodDescriptionbooleanbooleanMethod parameters in privbot.mechanics with type arguments of type NpcViewModifier and TypeMethodDescriptionTargetLock.choose(List<NpcView> npcs, int currentTargetIndex, net.runelite.api.coords.WorldPoint player, TargetSpec spec) Picks the target, in this order: the current target, if it matches and is alive and not busy; the locked NPC, if present with the same index and id, still matching the spec, alive and not busy; the first matching NPC that targets us and is alive; the nearest matching NPC that is alive and not busy, ties to the lower index. A locked NPC seen dead counts a kill if it had targeted us or been our current target.static net.runelite.api.coords.WorldPointSafeTiles.nearest(net.runelite.api.coords.WorldPoint from, int radius, Predicate<net.runelite.api.coords.WorldPoint> standable, Predicate<net.runelite.api.coords.WorldPoint> reachable, HazardMap hazards, int nowTick, List<NpcView> avoid, int minGap) Searches rings by Chebyshev radius 1..radiusaroundfrom, skippingfromitself.TagAllTracker.nextTarget(List<NpcView> npcs, net.runelite.api.coords.WorldPoint player) The NPC to attack next: nearest untagged, else nearest overall, elsenull.Constructor parameters in privbot.mechanics with type arguments of type NpcViewModifierConstructorDescriptionThreatSnapshot(int tick, int cycle, net.runelite.api.coords.WorldPoint player, Integer hp, Integer maxHp, Integer prayerPoints, int currentTargetIndex, List<NpcView> npcs, List<ShotView> shots, List<GraphicView> graphics, Set<String> activePrayers, Set<String> unreadablePrayers)