mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-18 00:47:42 +01:00
31 lines
1.3 KiB
Diff
31 lines
1.3 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: TreyRuffy <TreyRuffy@users.noreply.github.com>
|
|
Date: Wed, 9 Jun 2021 16:31:15 -0600
|
|
Subject: [PATCH] Flying Fall Damage API
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java
|
|
index a45e8af464c143cfae5c300aac8ce0093176e73a..3c9ac7aeac5abb424fffb1f39008c5b16f1ed207 100644
|
|
--- a/src/main/java/org/bukkit/entity/Player.java
|
|
+++ b/src/main/java/org/bukkit/entity/Player.java
|
|
@@ -2720,5 +2720,19 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
|
|
* @param invulnerableTicks Invulnerable ticks remaining
|
|
*/
|
|
void setSpawnInvulnerableTicks(int invulnerableTicks);
|
|
+
|
|
+ /**
|
|
+ * Allows you to enable fall damage while {@link #getAllowFlight()} is {@code true}
|
|
+ *
|
|
+ * @param flyingFallDamage Enables fall damage when {@link #getAllowFlight()} is true
|
|
+ */
|
|
+ public void setFlyingFallDamage(boolean flyingFallDamage);
|
|
+
|
|
+ /**
|
|
+ * Allows you get if fall damage is enabled while {@link #getAllowFlight()} is {@code true}
|
|
+ *
|
|
+ * @return True if fall damage is enabled when {@link #getAllowFlight()} is true
|
|
+ */
|
|
+ public boolean hasFlyingFallDamage();
|
|
// Purpur end
|
|
}
|