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.

By: EvilSeph <evilseph@gmail.com>
This commit is contained in:
Bukkit/Spigot
2011-09-30 19:34:06 -04:00
parent d0f0db958d
commit 5db08677a3
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
*