checkInvulnerability

Called when a regular invulnerability check is being performed. This event allows listeners to modify the result of that check.

Note: entity specific invulnerability rules (e.g. a digging warden) cannot be changed using this event

Note: this event might be called multiple times for the same damage event, since Minecraft performs its checks more than one time