From 219cc0b3f40af5724cd69013ca972b3f61c4b8f5 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Fri, 1 Jul 2016 11:40:27 +1000 Subject: [PATCH] SPIGOT-1373: Implement EntityTargetEvent for TEMPT. This can be a high frequency event call. Use with care. By: md_5 --- .../main/java/org/bukkit/event/entity/EntityTargetEvent.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/event/entity/EntityTargetEvent.java b/paper-api/src/main/java/org/bukkit/event/entity/EntityTargetEvent.java index cf67251367..dd26e7467c 100644 --- a/paper-api/src/main/java/org/bukkit/event/entity/EntityTargetEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/entity/EntityTargetEvent.java @@ -142,6 +142,11 @@ public class EntityTargetEvent extends EntityEvent implements Cancellable { * entity */ CLOSEST_ENTITY, + /** + * When another entity tempts this entity by having a desired item such + * as wheat in it's hand. + */ + TEMPT, /** * A currently unknown reason for the entity changing target. */