From ebed1f62a85a6fcd643de6cbb1a26489f9ed67aa Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 11 Nov 2017 07:17:41 +1100 Subject: Add back mistakenly removed SHEEP_EAT effect with deprecation warning --- src/main/java/org/bukkit/EntityEffect.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src/main/java') diff --git a/src/main/java/org/bukkit/EntityEffect.java b/src/main/java/org/bukkit/EntityEffect.java index de419d56..5d234350 100644 --- a/src/main/java/org/bukkit/EntityEffect.java +++ b/src/main/java/org/bukkit/EntityEffect.java @@ -40,7 +40,11 @@ public enum EntityEffect { * When a mob dies. *

* This will cause client-glitches! + * + * @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), // PAIL - SPIGOT-3641 duplicate // GOLEM_ATTACK(4, IronGolem.class), @@ -58,8 +62,14 @@ public enum EntityEffect { */ WOLF_SHAKE(8, Wolf.class), // 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. */ -- cgit v1.2.3