Refactor EntityDamageEvents. Adds BUKKIT-1944 & BUKKIT-3684

Remapped by Srg2Source from Bukkit/CraftBukkit@b87eac04dc8e308f1a02bd9e1c3c6ffd40b95439