Implementation of the EntityDamage*Events.

A new event EntityDamageByProjectileEvent was created. EntityDamageByProjectileEvent
adds the ability to get the projectile entity (such as an egg) and also set if
the projectile 'bounces'. New interfaces were created to facilitate all kinds
of projectile entities. Changes were made to facilitate the new event, and
enable other events, for plugins and event listeners.
This commit is contained in:
Andrew Ardill
2011-01-13 00:15:31 +11:00
committed by Erik Broes
parent 3b0385334e
commit 696880e64f
7 changed files with 75 additions and 1 deletions

View File

@@ -417,6 +417,13 @@ public abstract class Event {
* @see org.bukkit.event.entity.EntityDamageByEntityEvent
*/
ENTITY_DAMAGEDBY_ENTITY (Category.LIVING_ENTITY),
/**
* Called when a LivingEntity is damaged by a projectile Entity
*
* @see org.bukkit.event.entity.EntityDamageByProjectileEvent
*/
ENTITY_DAMAGEDBY_PROJECTILE (Category.LIVING_ENTITY),
/**
* Called when a LivingEntity is damaged with no source.