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 NPCQuery
aboveDistance(int distance)
Filters NPCs that are farther than a certain distance from the player.NPCQuery
alive()
Filters only alive (not dead) NPCs.NPCQuery
atLocation(net.runelite.api.coords.WorldPoint wp)
Filters NPCs that are located at a specific world point.KSNPC
closest()
Retrieves the closest NPC to the local player based on path distance.KSNPC
furthest()
Retrieves the furthest NPC from the local player based on path distance.NPCQuery
hasHintArrow()
Filters NPCs that currently have a hint arrow pointing to them.NPCQuery
interacting()
Filters NPCs that are currently interacting with any actor.NPCQuery
interactingWith(net.runelite.api.Actor actor)
Filters NPCs that are interacting with a specific actor (player or NPC).NPCQuery
interactingWithLocal()
Filters NPCs that are interacting with the local player.NPCQuery
meleeable()
Filters NPCs that are melee-reachable from adjacent tiles to the player.NPCQuery
noOneInteractingWith()
Filters NPCs that no players are currently interacting with.NPCQuery
notInteracting()
Filters NPCs that are not interacting with any actor.NPCQuery
withAnimation(int id)
Filters NPCs currently playing a specific animation.NPCQuery
withGraphic(int graphic)
Filters NPCs that are currently displaying a specific graphic.NPCQuery
withIndex(int index)
Filters NPCs by their index value.NPCQuery
withinDistance(int distance)
Filters NPCs that are within a certain tile distance of the local player.NPCQuery
withinLevel(int low, int high)
Filters NPCs whose combat level is within the specified inclusive range.NPCQuery
withLoS()
Filters NPCs that have line of sight to or from the player.NPCQuery
withoutAnimation(int id)
Filters NPCs that are not playing a specific animation.NPCQuery
withoutGraphic(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, 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.
-
-