From cdd73612bf8275290fa3795ac7a0d6a2dc8406f5 Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Sat, 18 Jun 2011 22:29:07 -0400 Subject: [PATCH] Added Target Reasons for Wolf events. Thanks Deaygo! --- .../org/bukkit/event/entity/EntityTargetEvent.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/main/java/org/bukkit/event/entity/EntityTargetEvent.java b/src/main/java/org/bukkit/event/entity/EntityTargetEvent.java index 4cbc49d6..7d5af02c 100644 --- a/src/main/java/org/bukkit/event/entity/EntityTargetEvent.java +++ b/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 */