Package net.openosrs.api.service.npc
Class NpcService
- java.lang.Object
-
- net.openosrs.api.service.npc.NpcService
-
@Singleton public class NpcService extends java.lang.ObjectDiscovery and menu-first interaction for loaded NPCs.
-
-
Constructor Summary
Constructors Constructor Description NpcService(net.runelite.api.Client client, MenuDispatcher dispatcher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<NpcRef>all()voidattack(NpcRef npc)voidinteract(NpcRef npc, java.lang.String action)NpcRefnearest(int id)NpcRefnearest(java.lang.String name)NpcRefnearest(net.runelite.api.coords.WorldPoint point)NpcQuerysearch()
-
-
-
Constructor Detail
-
NpcService
@Inject public NpcService(net.runelite.api.Client client, MenuDispatcher dispatcher)
-
-
Method Detail
-
all
public java.util.List<NpcRef> all()
-
search
public NpcQuery search()
-
nearest
public NpcRef nearest(java.lang.String name)
-
nearest
public NpcRef nearest(int id)
-
nearest
public NpcRef nearest(net.runelite.api.coords.WorldPoint point)
-
interact
public void interact(NpcRef npc, java.lang.String action)
-
attack
public void attack(NpcRef npc)
-
-