[Bleeding] Added Sheep, Shear and EntityChangeBlock API. Thanks tips48! Closes BUKKIT-512

By: Aidan Matzko <amatzko48@gmail.com>
This commit is contained in:
Bukkit/Spigot
2012-01-21 21:20:49 -05:00
parent 05b6ad92d1
commit 7e5c1baee9
6 changed files with 232 additions and 2 deletions

View File

@@ -375,6 +375,12 @@ public abstract class Event implements Serializable {
* @see org.bukkit.event.player.PlayerExpChangeEvent
*/
PLAYER_EXP_CHANGE(Category.PLAYER, PlayerExpChangeEvent.class),
/**
* Called when a player shears an entity
*
* @see org.bukkit.event.player.PlayerShearEntityEvent
*/
PLAYER_SHEAR_ENTITY(Category.LIVING_ENTITY, PlayerShearEntityEvent.class),
/**
* BLOCK EVENTS
@@ -738,6 +744,18 @@ public abstract class Event implements Serializable {
* @see org.bukkit.event.entity.EntityTargetEvent
*/
ENTITY_TARGET(Category.LIVING_ENTITY, EntityTargetEvent.class),
/**
* Called when a sheep regrows its wool
*
* @see org.bukkit.event.entity.SheepRegrowWoolEvent
*/
SHEEP_REGROW_WOOL(Category.LIVING_ENTITY, SheepRegrowWoolEvent.class),
/**
* Called when a sheep's wool is dyed
*
* @see org.bukkit.event.entity.SheepDyeWoolEvent
*/
SHEEP_DYE_WOOL(Category.LIVING_ENTITY, SheepDyeWoolEvent.class),
/**
* Called when an entity interacts with a block
* This event specifically excludes player entities
@@ -763,6 +781,14 @@ public abstract class Event implements Serializable {
* @see org.bukkit.event.entity.EntityTameEvent
*/
ENTITY_TAME(Category.LIVING_ENTITY, EntityTameEvent.class),
/**
* Called when a LivingEntity changes a block
*
* This event specifically excludes player entities
*
* @see org.bukkit.event.entity.EntityChangeBlockEvent
*/
ENTITY_CHANGE_BLOCK(Category.LIVING_ENTITY, EntityChangeBlockEvent.class),
/**
* Called when a {@link Projectile} hits something
*