Class NpcUtil


  • @Singleton
    public class NpcUtil
    extends Object
    • Method Detail

      • isDying

        public boolean isDying​(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