aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/api/0194-added-2-new-TargetReasons-for-1.16-mob-behavior.patch
blob: f5b6d2a49c74e63e646d887c330cbf6e3e466249 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Jake Potrebic <jake.m.potrebic@gmail.com>
Date: Fri, 3 Jul 2020 15:05:54 -0700
Subject: [PATCH] added 2 new TargetReasons for 1.16 mob behavior


diff --git a/src/main/java/org/bukkit/event/entity/EntityTargetEvent.java b/src/main/java/org/bukkit/event/entity/EntityTargetEvent.java
index 808142232a722cb6466bac78d00dc55c18ebe109..ef2d1fe4f2fa7f35ef76f2b4e179050d07b7021a 100644
--- a/src/main/java/org/bukkit/event/entity/EntityTargetEvent.java
+++ b/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.
          */