add Escape Reason Drown for EndermanEscapeEvent

to detect rain specifically from every other armor ignoring hit
This commit is contained in:
Aikar
2018-05-31 18:16:26 -04:00
parent 9c32d79355
commit cb9b5bfa82
2 changed files with 8 additions and 4 deletions

View File

@@ -9,7 +9,7 @@ You may cancel this, enabling ranged attacks to damage the enderman for example.
diff --git a/src/main/java/com/destroystokyo/paper/event/entity/EndermanEscapeEvent.java b/src/main/java/com/destroystokyo/paper/event/entity/EndermanEscapeEvent.java
new file mode 100644
index 00000000..b8de1037
index 00000000..0d15a8ab
--- /dev/null
+++ b/src/main/java/com/destroystokyo/paper/event/entity/EndermanEscapeEvent.java
@@ -0,0 +0,0 @@
@@ -88,7 +88,11 @@ index 00000000..b8de1037
+ /**
+ * The enderman has teleported away due to the player staring at it during combat
+ */
+ STARE
+ STARE,
+ /**
+ * Specific case for CRITICAL_HIT where the enderman is taking rain damage
+ */
+ DROWN
+ }
+}
--