mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-02 17:01:38 +01:00
31 lines
1.0 KiB
Diff
31 lines
1.0 KiB
Diff
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
|
|
index b96b5f4f2fc754298e2223b2f449a0755469278c..b6de41e3e718fa5d1b82c6f68b153e60a81265e7 100644
|
|
--- a/src/main/java/org/bukkit/entity/LivingEntity.java
|
|
+++ b/src/main/java/org/bukkit/entity/LivingEntity.java
|
|
@@ -845,5 +845,19 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource
|
|
* @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
|
|
}
|