Added SlimeSplit event. Thanks garbagemule!

The SlimeSplit event is fired when a Slime attempts to split upon death. The event may be cancelled, and the amount of smaller slimes may be customized.
This commit is contained in:
EvilSeph
2011-09-30 19:34:06 -04:00
parent 47a035440c
commit ebb8fdd6bc
4 changed files with 65 additions and 1 deletions

View File

@@ -90,7 +90,7 @@ public abstract class Event implements Serializable {
/**
* Represents Player-based events
*
*
* @see #LIVING_ENTITY
*/
PLAYER,
@@ -689,6 +689,12 @@ public abstract class Event implements Serializable {
* @see org.bukkit.event.entity.ProjectileHitEvent
*/
PROJECTILE_HIT (Category.ENTITY),
/**
* Called when a Slime splits into smaller Slimes upon death
*
* @see org.bukkit.event.entity.SlimeSplitEvent
*/
SLIME_SPLIT (Category.LIVING_ENTITY),
/**
* Called when a LivingEntity is regains health
*