Bukkit/CraftBukkit — pull request #535 by mooman219 (2011-11-17 23:37:41+00:00)
Title: Change LivingEntity.setHealth() to fire events & allow cancelling.

Added - Allows CraftLivingEntity.setHealth() to be cancelled.
Added - Will fire EntityDamageEvent (enum PLUGIN) if health is droped below the current amount.
Added - Will fire EntityRegainHealthEvent (enum PLUGIN) if health is raised above the current amount.

This is linked to the pull request I made on Bukkit.

Signed-off-by: Mooman219