Class NpcService


  • @Singleton
    public class NpcService
    extends java.lang.Object
    Discovery and menu-first interaction for loaded NPCs.
    • Constructor Detail

      • NpcService

        @Inject
        public NpcService​(net.runelite.api.Client client,
                          MenuDispatcher dispatcher)
    • Method Detail

      • all

        public java.util.List<NpcRef> all()
      • 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)