Add back mistakenly removed SHEEP_EAT effect with deprecation warning

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot 2017-11-11 07:17:41 +11:00
parent 2ec3448bdf
commit 9d616dcba5

View file

@ -40,7 +40,11 @@ public enum EntityEffect {
* When a mob dies. * When a mob dies.
* <p> * <p>
* <b>This will cause client-glitches!</b> * <b>This will cause client-glitches!</b>
*
* @deprecated although this effect may trigger other events on non-living
* entities, it's only supported usage is on living ones.
*/ */
@Deprecated
DEATH(3, Entity.class), DEATH(3, Entity.class),
// PAIL - SPIGOT-3641 duplicate // PAIL - SPIGOT-3641 duplicate
// GOLEM_ATTACK(4, IronGolem.class), // GOLEM_ATTACK(4, IronGolem.class),
@ -58,8 +62,14 @@ public enum EntityEffect {
*/ */
WOLF_SHAKE(8, Wolf.class), WOLF_SHAKE(8, Wolf.class),
// 9 - unused // 9 - unused
// PAIL - SPIGOT-3641 duplicate /**
// SHEEP_EAT(10, LivingEntity.class), * When an entity eats a LONG_GRASS block.
*
* @deprecated although this effect may trigger other events on non-living
* entities, it's only supported usage is on living ones.
*/
@Deprecated
SHEEP_EAT(10, Entity.class),
/** /**
* When an Iron Golem gives a rose. * When an Iron Golem gives a rose.
*/ */