mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-17 16:37:43 +01:00
Upstream has released updates that appear to apply and compile correctly Paper Changes: PaperMC/Paper@7569191 Send disguised chat for vanished players PaperMC/Paper@96fd31b Fix chunk sending when the computed time overflows (#8833) PaperMC/Paper@39aef52 Fix `Tick::addTo`/`::between` causing SOE (#8824) PaperMC/Paper@0c3311c Add Entity Body Yaw API (#8822) PaperMC/Paper@0c9ace8 Add AntiXray layered obfuscation mode (#8799) PaperMC/Paper@5eca964 [ci skip] Rebuild patches
32 lines
1.1 KiB
Diff
32 lines
1.1 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: William Blake Galbreath <blake.galbreath@gmail.com>
|
|
Date: Sun, 5 May 2019 12:58:19 -0500
|
|
Subject: [PATCH] LivingEntity safeFallDistance
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/entity/LivingEntity.java b/src/main/java/org/bukkit/entity/LivingEntity.java
|
|
index 1da1c293ac8a13d22743c26d35624155bfa73a16..df181fc97e56fcde382235cb1262d65b9bb9ff85 100644
|
|
--- a/src/main/java/org/bukkit/entity/LivingEntity.java
|
|
+++ b/src/main/java/org/bukkit/entity/LivingEntity.java
|
|
@@ -1142,4 +1142,20 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource
|
|
*/
|
|
void setBodyYaw(float bodyYaw);
|
|
// 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
|
|
}
|