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 NpcView
    Modifier and Type
    Method
    Description
    Targets.resolve(NpcView view)
    Finds the live NPC for a view.
    Method parameters in privbot.hooks with type arguments of type NpcView
    Modifier and Type
    Method
    Description
    Observed<net.runelite.api.coords.WorldPoint>
    Hazards.safeTile(HazardMap map, int radius, List<NpcView> avoid, int minGap)
    Finds the nearest tile out of every hazard.
  • Uses of NpcView in privbot.mechanics

    Methods in privbot.mechanics that return NpcView
    Modifier and Type
    Method
    Description
    TargetLock.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, else null.
    Methods in privbot.mechanics that return types with arguments of type NpcView
    Modifier and Type
    Method
    Description
    ThreatSnapshot.npcs()
     
    Methods in privbot.mechanics with parameters of type NpcView
    Modifier and Type
    Method
    Description
    boolean
    ThreatQuery.keeps(NpcView npc)
     
    boolean
    TargetSpec.matches(NpcView npc)
     
    Method parameters in privbot.mechanics with type arguments of type NpcView
    Modifier and Type
    Method
    Description
    TargetLock.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.WorldPoint
    SafeTiles.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..radius around from, skipping from itself.
    TagAllTracker.nextTarget(List<NpcView> npcs, net.runelite.api.coords.WorldPoint player)
    The NPC to attack next: nearest untagged, else nearest overall, else null.
    Constructor parameters in privbot.mechanics with type arguments of type NpcView
    Modifier
    Constructor
    Description
     
    ThreatSnapshot(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)