summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2017-11-11 07:17:41 +1100
committermd_5 <git@md-5.net>2017-11-11 07:17:41 +1100
commitebed1f62a85a6fcd643de6cbb1a26489f9ed67aa (patch)
tree8e05d99002d0dcc2f7ba2fc0ea618283705955e8
parent4b9a4e2c98fc834340dd49c29b25a503a131c7ca (diff)
downloadbukkit-ebed1f62a85a6fcd643de6cbb1a26489f9ed67aa.tar
bukkit-ebed1f62a85a6fcd643de6cbb1a26489f9ed67aa.tar.gz
bukkit-ebed1f62a85a6fcd643de6cbb1a26489f9ed67aa.tar.lz
bukkit-ebed1f62a85a6fcd643de6cbb1a26489f9ed67aa.tar.xz
bukkit-ebed1f62a85a6fcd643de6cbb1a26489f9ed67aa.zip
Add back mistakenly removed SHEEP_EAT effect with deprecation warning
-rw-r--r--src/main/java/org/bukkit/EntityEffect.java14
1 files changed, 12 insertions, 2 deletions
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.
* <p>
* <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),
// 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.
*/