Package net.runelite.client.game
Class NpcUtil
- java.lang.Object
-
- net.runelite.client.game.NpcUtil
-
@Singleton public class NpcUtil extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.void
onAnimationChanged(AnimationChanged animationChanged)
-
-
-
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
-
onAnimationChanged
@Subscribe public void onAnimationChanged(AnimationChanged animationChanged)
-
-