getDamageCooldownTicks

public int getDamageCooldownTicks(LivingEntity entity)

Returns the remaining native hit cooldown, independently of other invulnerability timers.