2021-06-11 12:02:28 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Mark Vainomaa <mikroskeem@mikroskeem.eu>
|
|
|
|
Date: Sun, 13 Dec 2020 05:32:12 +0200
|
|
|
|
Subject: [PATCH] Expose LivingEntity hurt direction
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/entity/LivingEntity.java b/src/main/java/org/bukkit/entity/LivingEntity.java
|
2022-09-09 18:54:00 +00:00
|
|
|
index aa1b76a0633e223fbae0897cb0690fdd7e9f4c40..a8ccf7f0a74a8295bbb921e24eed626c15104b8c 100644
|
2021-06-11 12:02:28 +00:00
|
|
|
--- a/src/main/java/org/bukkit/entity/LivingEntity.java
|
|
|
|
+++ b/src/main/java/org/bukkit/entity/LivingEntity.java
|
2022-09-09 18:54:00 +00:00
|
|
|
@@ -859,5 +859,19 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource
|
2021-06-11 12:02:28 +00:00
|
|
|
* @param quantity quantity of item
|
|
|
|
*/
|
|
|
|
void playPickupItemAnimation(@NotNull Item item, int quantity);
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * Gets player hurt direction
|
|
|
|
+ *
|
|
|
|
+ * @return hurt direction
|
|
|
|
+ */
|
|
|
|
+ float getHurtDirection();
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * Sets player hurt direction
|
|
|
|
+ *
|
|
|
|
+ * @param hurtDirection hurt direction
|
|
|
|
+ */
|
|
|
|
+ void setHurtDirection(float hurtDirection);
|
|
|
|
// Paper end
|
|
|
|
}
|