Class NPCs
java.lang.Object
privbot.hooks.NPCs
-
Method Summary
Modifier and TypeMethodDescriptionbooleanAttacks the closest NPC matching any supplied name.booleanattackClosest(String... names) Attacks the closest NPC matching any supplied name.Closest NPC matching any of the supplied names, ornull.Closest NPC matching the predicate.booleanWhether an NPC matching any of the supplied names is currently loaded.Start a query filtered to only the hint arrow NPC.booleanInteracts with the closest NPC matchingnameusingaction.Alias ofclosest(String...).static PrivNPCStatic lookup that needs noctx.query()withAction(String... actions) Start a query filtered to NPCs with at least one of the given actions.withId(int... ids) Start a query filtered to NPCs matching the given ID(s).Start a query filtered to NPCs matching the given name(s).
-
Method Details
-
query
- Returns:
- a query over the loaded NPCs, read once on the client thread
-
closest
-
closest
-
nearest
Alias ofclosest(String...). -
exists
Whether an NPC matching any of the supplied names is currently loaded. -
attackClosest
Attacks the closest NPC matching any supplied name. -
attack
Attacks the closest NPC matching any supplied name. -
interact
-
withAction
-
withName
-
withId
Start a query filtered to NPCs matching the given ID(s). -
hintArrowOnly
Start a query filtered to only the hint arrow NPC. -
nearest
-