Class NpcRef


  • public final class NpcRef
    extends java.lang.Object
    Immutable identity and menu snapshot for a loaded NPC.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> getActions()  
      int getCombatLevel()  
      int getId()  
      int getIndex()  
      net.runelite.api.coords.WorldPoint getLocation()  
      java.lang.String getName()  
      int getWorldViewId()  
      boolean hasAction​(java.lang.String action)  
      void requireCurrent​(net.runelite.api.Client client)
      Rejects despawn, index/object reuse, scene changes and detached snapshots.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getId

        public int getId()
      • getIndex

        public int getIndex()
      • getWorldViewId

        public int getWorldViewId()
      • getName

        public java.lang.String getName()
      • getCombatLevel

        public int getCombatLevel()
      • getLocation

        public net.runelite.api.coords.WorldPoint getLocation()
      • getActions

        public java.util.List<java.lang.String> getActions()
      • hasAction

        public boolean hasAction​(java.lang.String action)
      • requireCurrent

        public void requireCurrent​(net.runelite.api.Client client)
        Rejects despawn, index/object reuse, scene changes and detached snapshots.