Uses of Class
rs.kreme.ksbot.api.wrappers.KSNPC
-
Packages that use KSNPC Package Description rs.kreme.ksbot.api.game rs.kreme.ksbot.api.hooks rs.kreme.ksbot.api.queries -
-
Uses of KSNPC in rs.kreme.ksbot.api.game
Methods in rs.kreme.ksbot.api.game with parameters of type KSNPC Modifier and Type Method Description int
Pathing. distanceTo(KSNPC npc)
boolean
Combat. isAttacking(KSNPC npc)
Check if player is attacking specific NPCvoid
Paint. renderNpcs(java.awt.Graphics2D graphics, KSNPC npc, java.awt.Color color)
-
Uses of KSNPC in rs.kreme.ksbot.api.hooks
Methods in rs.kreme.ksbot.api.hooks with parameters of type KSNPC Modifier and Type Method Description void
Magic. cast(Spell spell, KSNPC target)
Casts a spell on an NPC target.boolean
Inventory. itemOnNpc(KSItem item, KSNPC npc)
void
NPCs. itemOnNpc(KSNPC npc, KSItem item)
Performs a "Use item on NPC" interaction. -
Uses of KSNPC in rs.kreme.ksbot.api.queries
Methods in rs.kreme.ksbot.api.queries that return KSNPC Modifier and Type Method Description KSNPC
NPCQuery. closest()
Retrieves the closest NPC to the local player based on path distance.KSNPC
NPCQuery. furthest()
Retrieves the furthest NPC from the local player based on path distance.Constructor parameters in rs.kreme.ksbot.api.queries with type arguments of type KSNPC Constructor Description NPCQuery(java.util.Collection<KSNPC> npcs)
Constructs a new NPCQuery instance from a collection ofKSNPC
objects.
-