summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorLordRalex <lordralex@gmail.com>2014-04-11 16:22:37 -0600
committerturt2live <travpc@gmail.com>2014-04-30 22:56:09 -0600
commit2bc71ced8a48ee7ba3663d1a3e7e43768b0e67d9 (patch)
tree5661011352b8d358f31a83977b51cc268fd696f9 /src/main
parenta3114c486e1e42c2d161391e81bf20ea8c8dfa26 (diff)
downloadbukkit-2bc71ced8a48ee7ba3663d1a3e7e43768b0e67d9.tar
bukkit-2bc71ced8a48ee7ba3663d1a3e7e43768b0e67d9.tar.gz
bukkit-2bc71ced8a48ee7ba3663d1a3e7e43768b0e67d9.tar.lz
bukkit-2bc71ced8a48ee7ba3663d1a3e7e43768b0e67d9.tar.xz
bukkit-2bc71ced8a48ee7ba3663d1a3e7e43768b0e67d9.zip
Add missing entity effects. Adds BUKKIT-3311
There are many effects that were not present in the API prior to this commit. These effects are being used by the implementation, but cannot be accessed via plugins. This commit exposes these effects using the EntityEffects enum, allowing for plugin authors to make use of these effects. However, many of the effects require certain conditions to be met before they will be visible to the client, much like some of the existing effects.
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/bukkit/EntityEffect.java51
1 files changed, 50 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/EntityEffect.java b/src/main/java/org/bukkit/EntityEffect.java
index f2481bad..ec7d1e39 100644
--- a/src/main/java/org/bukkit/EntityEffect.java
+++ b/src/main/java/org/bukkit/EntityEffect.java
@@ -45,7 +45,56 @@ public enum EntityEffect {
/**
* When a sheep eats a LONG_GRASS block.
*/
- SHEEP_EAT(10);
+ SHEEP_EAT(10),
+
+ /**
+ * When an Iron Golem gives a rose.
+ * <p>
+ * This will not play an effect if the entity is not an iron golem.
+ */
+ IRON_GOLEM_ROSE(11),
+
+ /**
+ * Hearts from a villager.
+ * <p>
+ * This will not play an effect if the entity is not a villager.
+ */
+ VILLAGER_HEART(12),
+
+ /**
+ * When a villager is angry.
+ * <p>
+ * This will not play an effect if the entity is not a villager.
+ */
+ VILLAGER_ANGRY(13),
+
+ /**
+ * Happy particles from a villager.
+ * <p>
+ * This will not play an effect if the entity is not a villager.
+ */
+ VILLAGER_HAPPY(14),
+
+ /**
+ * Magic particles from a witch.
+ * <p>
+ * This will not play an effect if the entity is not a witch.
+ */
+ WITCH_MAGIC(15),
+
+ /**
+ * When a zombie transforms into a villager by shaking violently.
+ * <p>
+ * This will not play an effect if the entity is not a zombie.
+ */
+ ZOMBIE_TRANSFORM(16),
+
+ /**
+ * When a firework explodes.
+ * <p>
+ * This will not play an effect if the entity is not a firework.
+ */
+ FIREWORK_EXPLODE(17);
private final byte data;
private final static Map<Byte, EntityEffect> BY_DATA = Maps.newHashMap();