diff options
author | md_5 <git@md-5.net> | 2016-07-01 11:40:27 +1000 |
---|---|---|
committer | md_5 <git@md-5.net> | 2016-07-01 11:40:27 +1000 |
commit | 5dd09354607456788b5f30994b691cdb5dcd4856 (patch) | |
tree | 2984c30adadaf4ee56b957465ae867ad0a5f6543 /src/main/java/org | |
parent | f0973327a93ed495f86e96a3e32bc5678b66a15d (diff) | |
download | bukkit-5dd09354607456788b5f30994b691cdb5dcd4856.tar bukkit-5dd09354607456788b5f30994b691cdb5dcd4856.tar.gz bukkit-5dd09354607456788b5f30994b691cdb5dcd4856.tar.lz bukkit-5dd09354607456788b5f30994b691cdb5dcd4856.tar.xz bukkit-5dd09354607456788b5f30994b691cdb5dcd4856.zip |
SPIGOT-1373: Implement EntityTargetEvent for TEMPT.
This can be a high frequency event call. Use with care.
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/bukkit/event/entity/EntityTargetEvent.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/event/entity/EntityTargetEvent.java b/src/main/java/org/bukkit/event/entity/EntityTargetEvent.java index cf672513..dd26e746 100644 --- a/src/main/java/org/bukkit/event/entity/EntityTargetEvent.java +++ b/src/main/java/org/bukkit/event/entity/EntityTargetEvent.java @@ -143,6 +143,11 @@ public class EntityTargetEvent extends EntityEvent implements Cancellable { */ 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. */ UNKNOWN; |