From d081f1a06fe74e2a0bf022e1dce56b72d446c50b Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sat, 18 Jun 2011 22:29:07 -0400 Subject: [PATCH] Added Target Reasons for Wolf events. Thanks Deaygo! By: EvilSeph --- .../org/bukkit/event/entity/EntityTargetEvent.java | 12 ++++++++++++ 1 file changed, 12 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 4cbc49d6a1..7d5af02ce1 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 @@ -91,6 +91,18 @@ public class EntityTargetEvent extends EntityEvent implements Cancellable { * Currently only occurs in with spiders when there is a high brightness */ FORGOT_TARGET, + /** + * When the target attacks the owner of the entity, so the entity targets it. + */ + TARGET_ATTACKED_OWNER, + /** + * When the owner of the entity attacks the target attacks, so the entity targets it. + */ + OWNER_ATTACKED_TARGET, + /** + * When the entity has no target, so the entity randomly chooses one. + */ + RANDOM_TARGET, /** * For custom calls to the event */