From e034549a33dd111b102843c81f8afed90282ca3d Mon Sep 17 00:00:00 2001 From: Jake Potrebic Date: Fri, 3 Jul 2020 15:05:54 -0700 Subject: [PATCH] added 2 new TargetReasons for 1.16 mob behavior --- .../java/org/bukkit/event/entity/EntityTargetEvent.java | 8 ++++++++ 1 file changed, 8 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 808142232a..ef2d1fe4f2 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 @@ -159,6 +159,14 @@ public class EntityTargetEvent extends EntityEvent implements Cancellable { * as wheat in its hand. */ TEMPT, + /** + * When the target is in a different dimension + */ + TARGET_OTHER_LEVEL, // Paper + /** + * When the target is in creative or spectator gamemode, or the difficulty is peaceful, or other reasons + */ + TARGET_INVALID, // Paper /** * A currently unknown reason for the entity changing target. */