isDying

public boolean isDying()

Whether the entity is currently dying. This is set to true when the entity is in the process of getting removed with a death animation.