Class NpcUtil


  • @Singleton
    public class NpcUtil
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isDying​(net.runelite.api.NPC npc)
      Returns whether an NPC is dying and can no longer be interacted with, or if it is still alive or in some special state where it can be 0hp without dying.
      void onAnimationChanged​(net.runelite.api.events.AnimationChanged animationChanged)  
      • Methods inherited from class java.lang.Object

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

      • isDying

        public boolean isDying​(net.runelite.api.NPC npc)
        Returns whether an NPC is dying and can no longer be interacted with, or if it is still alive or in some special state where it can be 0hp without dying. (For example, Gargoyles and other slayer monsters with item weaknesses are not killed by reaching 0hp, so would not be dead based on that alone.)
        Parameters:
        npc - NPC to check whether it is dying
        Returns:
        true if the NPC is dying
      • onAnimationChanged

        @Subscribe
        public void onAnimationChanged​(net.runelite.api.events.AnimationChanged animationChanged)