Package rs.kreme.ksbot.api.queries
Class NPCQuery
- java.lang.Object
-
- rs.kreme.ksbot.api.queries.Query<KSNPC,NPCQuery>
-
- rs.kreme.ksbot.api.queries.NPCQuery
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NPCQueryaboveDistance(int distance)Filters NPCs that are farther than a certain distance from the player.NPCQueryalive()Filters only alive (not dead) NPCs.NPCQueryatLocation(net.runelite.api.coords.WorldPoint wp)Filters NPCs that are located at a specific world point.KSNPCclosest()Retrieves the closest NPC to the local player based on path distance.KSNPCfurthest()Retrieves the furthest NPC from the local player based on path distance.NPCQueryhasHintArrow()Filters NPCs that currently have a hint arrow pointing to them.NPCQueryinteracting()Filters NPCs that are currently interacting with any actor.NPCQueryinteractingWith(net.runelite.api.Actor actor)Filters NPCs that are interacting with a specific actor (player or NPC).NPCQueryinteractingWithLocal()Filters NPCs that are interacting with the local player.NPCQuerymeleeable()Filters NPCs that are melee-reachable from adjacent tiles to the player.NPCQuerynoOneInteractingWith()Filters NPCs that no players are currently interacting with.NPCQuerynotInteracting()Filters NPCs that are not interacting with any actor.NPCQuerywithAnimation(int id)Filters NPCs currently playing a specific animation.NPCQuerywithGraphic(int graphic)Filters NPCs that are currently displaying a specific graphic.NPCQuerywithIndex(int index)Filters NPCs by their index value.NPCQuerywithinDistance(int distance)Filters NPCs that are within a certain tile distance of the local player.NPCQuerywithinLevel(int low, int high)Filters NPCs whose combat level is within the specified inclusive range.NPCQuerywithLoS()Filters NPCs that have line of sight to or from the player.NPCQuerywithoutAnimation(int id)Filters NPCs that are not playing a specific animation.NPCQuerywithoutGraphic(int graphic)Filters out NPCs that are currently displaying a specific graphic.-
Methods inherited from class rs.kreme.ksbot.api.queries.Query
count, empty, exists, filter, first, first, last, list, list, max, min, omit, omit, omit, random, reverse, shuffledList, shuffledList, sorted, stream, unique, withId, withName, withNameOrId, withOption, withoutId, withoutName, withoutNameOrId, withoutOption
-
-
-
-
Method Detail
-
atLocation
public NPCQuery atLocation(net.runelite.api.coords.WorldPoint wp)
Filters NPCs that are located at a specific world point.
-
withIndex
public NPCQuery withIndex(int index)
Filters NPCs by their index value.
-
interactingWithLocal
public NPCQuery interactingWithLocal()
Filters NPCs that are interacting with the local player.
-
interactingWith
public NPCQuery interactingWith(net.runelite.api.Actor actor)
Filters NPCs that are interacting with a specific actor (player or NPC).
-
interacting
public NPCQuery interacting()
Filters NPCs that are currently interacting with any actor.
-
notInteracting
public NPCQuery notInteracting()
Filters NPCs that are not interacting with any actor.
-
noOneInteractingWith
public NPCQuery noOneInteractingWith()
Filters NPCs that no players are currently interacting with.
-
hasHintArrow
public NPCQuery hasHintArrow()
Filters NPCs that currently have a hint arrow pointing to them.
-
meleeable
public NPCQuery meleeable()
Filters NPCs that are melee-reachable from adjacent tiles to the player.
-
alive
public NPCQuery alive()
Filters only alive (not dead) NPCs.
-
withLoS
public NPCQuery withLoS()
Filters NPCs that have line of sight to or from the player.
-
withinLevel
public NPCQuery withinLevel(int low, int high)
Filters NPCs whose combat level is within the specified inclusive range.
-
withinDistance
public NPCQuery withinDistance(int distance)
Filters NPCs that are within a certain tile distance of the local player.
-
aboveDistance
public NPCQuery aboveDistance(int distance)
Filters NPCs that are farther than a certain distance from the player.
-
withoutGraphic
public NPCQuery withoutGraphic(int graphic)
Filters out NPCs that are currently displaying a specific graphic.
-
withGraphic
public NPCQuery withGraphic(int graphic)
Filters NPCs that are currently displaying a specific graphic.
-
withAnimation
public NPCQuery withAnimation(int id)
Filters NPCs currently playing a specific animation.
-
withoutAnimation
public NPCQuery withoutAnimation(int id)
Filters NPCs that are not playing a specific animation.
-
closest
public KSNPC closest()
Retrieves the closest NPC to the local player based on path distance.
-
furthest
public KSNPC furthest()
Retrieves the furthest NPC from the local player based on path distance.
-
-