diff options
Diffstat (limited to 'Spigot-API-Patches-Unmapped/0243-Expose-LivingEntity-hurt-direction.patch')
-rw-r--r-- | Spigot-API-Patches-Unmapped/0243-Expose-LivingEntity-hurt-direction.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Spigot-API-Patches-Unmapped/0243-Expose-LivingEntity-hurt-direction.patch b/Spigot-API-Patches-Unmapped/0243-Expose-LivingEntity-hurt-direction.patch new file mode 100644 index 0000000000..3ca885228d --- /dev/null +++ b/Spigot-API-Patches-Unmapped/0243-Expose-LivingEntity-hurt-direction.patch @@ -0,0 +1,30 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Mark Vainomaa <[email protected]> +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 e535750d01a6c1bf4b1fe94df518166213da9b08..9f0645dc5f76ee9ef73d88f768025429e5a9edf7 100644 +--- a/src/main/java/org/bukkit/entity/LivingEntity.java ++++ b/src/main/java/org/bukkit/entity/LivingEntity.java +@@ -835,5 +835,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 + } |