Commits

md_5 authored ebed1f62a85
Add back mistakenly removed SHEEP_EAT effect with deprecation warning
No tags

src/main/java/org/bukkit/EntityEffect.java

Modified
33 33 */
34 34 RABBIT_JUMP(1, Rabbit.class),
35 35 /**
36 36 * When mobs get hurt.
37 37 */
38 38 HURT(2, LivingEntity.class),
39 39 /**
40 40 * When a mob dies.
41 41 * <p>
42 42 * <b>This will cause client-glitches!</b>
43 + *
44 + * @deprecated although this effect may trigger other events on non-living
45 + * entities, it's only supported usage is on living ones.
43 46 */
47 + @Deprecated
44 48 DEATH(3, Entity.class),
45 49 // PAIL - SPIGOT-3641 duplicate
46 50 // GOLEM_ATTACK(4, IronGolem.class),
47 51 // 5 - unused
48 52 /**
49 53 * The smoke when taming a wolf fails.
50 54 */
51 55 WOLF_SMOKE(6, Tameable.class),
52 56 /**
53 57 * The hearts when taming a wolf succeeds.
54 58 */
55 59 WOLF_HEARTS(7, Wolf.class),
56 60 /**
57 61 * When a wolf shakes (after being wet).
58 62 */
59 63 WOLF_SHAKE(8, Wolf.class),
60 64 // 9 - unused
61 - // PAIL - SPIGOT-3641 duplicate
62 - // SHEEP_EAT(10, LivingEntity.class),
65 + /**
66 + * When an entity eats a LONG_GRASS block.
67 + *
68 + * @deprecated although this effect may trigger other events on non-living
69 + * entities, it's only supported usage is on living ones.
70 + */
71 + @Deprecated
72 + SHEEP_EAT(10, Entity.class),
63 73 /**
64 74 * When an Iron Golem gives a rose.
65 75 */
66 76 IRON_GOLEM_ROSE(11, IronGolem.class),
67 77 /**
68 78 * Hearts from a villager.
69 79 */
70 80 VILLAGER_HEART(12, Villager.class),
71 81 /**
72 82 * When a villager is angry.

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut