From f80c0f4ed509057d43186932800f1ddbd1a06bdb Mon Sep 17 00:00:00 2001 From: Etil <81570777+etil2jz@users.noreply.github.com> Date: Fri, 31 Dec 2021 13:14:48 +0100 Subject: [PATCH] =?UTF-8?q?Forgot=20the=20api=20patch=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../0011-LivingEntity-safeFallDistance.patch | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 patches/api/0011-LivingEntity-safeFallDistance.patch diff --git a/patches/api/0011-LivingEntity-safeFallDistance.patch b/patches/api/0011-LivingEntity-safeFallDistance.patch new file mode 100644 index 0000000..41115f3 --- /dev/null +++ b/patches/api/0011-LivingEntity-safeFallDistance.patch @@ -0,0 +1,33 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: William Blake Galbreath +Date: Sun, 5 May 2019 12:58:19 -0500 +Subject: [PATCH] LivingEntity safeFallDistance + +Original code by PurpurMC, licensed under MIT +You can find the original code on https://github.com/PurpurMC/Purpur + +diff --git a/src/main/java/org/bukkit/entity/LivingEntity.java b/src/main/java/org/bukkit/entity/LivingEntity.java +index 31353bd20404a8c2acf6bf0df524dc3cae324272..e532430b7444cef4e383b3afb637cc6060d8686a 100644 +--- a/src/main/java/org/bukkit/entity/LivingEntity.java ++++ b/src/main/java/org/bukkit/entity/LivingEntity.java +@@ -910,4 +910,20 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource + */ + void setHurtDirection(float hurtDirection); + // Paper end ++ ++ // Purpur start ++ /** ++ * Gets the distance (in blocks) this entity can safely fall without taking damage ++ * ++ * @return Safe fall distance ++ */ ++ float getSafeFallDistance(); ++ ++ /** ++ * Set the distance (in blocks) this entity can safely fall without taking damage ++ * ++ * @param safeFallDistance Safe fall distance ++ */ ++ void setSafeFallDistance(float safeFallDistance); ++ // Purpur end + }