mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-18 17:07:43 +01:00
Implement LivingEntity safeFallDistance
This commit is contained in:
36
patches/api/0006-Integrate-ridables.patch
Normal file
36
patches/api/0006-Integrate-ridables.patch
Normal file
@@ -0,0 +1,36 @@
|
||||
From e8f6e9aeba7fe0b9bca877c2df79fea8c3ca9472 Mon Sep 17 00:00:00 2001
|
||||
From: William Blake Galbreath <blake.galbreath@gmail.com>
|
||||
Date: Fri, 3 May 2019 06:08:35 -0500
|
||||
Subject: [PATCH] Integrate ridables
|
||||
|
||||
---
|
||||
src/main/java/org/bukkit/entity/LivingEntity.java | 14 ++++++++++++++
|
||||
1 file changed, 14 insertions(+)
|
||||
|
||||
diff --git a/src/main/java/org/bukkit/entity/LivingEntity.java b/src/main/java/org/bukkit/entity/LivingEntity.java
|
||||
index a3baaecb..097e82a0 100644
|
||||
--- a/src/main/java/org/bukkit/entity/LivingEntity.java
|
||||
+++ b/src/main/java/org/bukkit/entity/LivingEntity.java
|
||||
@@ -664,5 +664,19 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource
|
||||
* @param safeFallDistance Safe fall distance
|
||||
*/
|
||||
void setSafeFallDistance(float safeFallDistance);
|
||||
+
|
||||
+ /**
|
||||
+ * Whether or not this entity can be ridden in water
|
||||
+ *
|
||||
+ * @return Whether or not this entity can be ridden in water
|
||||
+ */
|
||||
+ boolean canBeRiddenInWater();
|
||||
+
|
||||
+ /**
|
||||
+ * Set whether or not this entity can be ridden in water
|
||||
+ *
|
||||
+ * @param canBeRiddenInWater Whether or not this entity can be ridden in water
|
||||
+ */
|
||||
+ void setCanBeRiddenInWater(boolean canBeRiddenInWater);
|
||||
// Purpur end
|
||||
}
|
||||
--
|
||||
2.20.1
|
||||
|
||||
Reference in New Issue
Block a user