2021-06-11 14:02:28 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: BillyGalbreath <Blake.Galbreath@GMail.com>
|
|
|
|
Date: Sat, 16 Jun 2018 01:17:39 -0500
|
|
|
|
Subject: [PATCH] Make shield blocking delay configurable
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/entity/LivingEntity.java b/src/main/java/org/bukkit/entity/LivingEntity.java
|
2024-04-06 21:53:39 +02:00
|
|
|
index 40634f46fa238a68f70f19b664bad7400ef07709..4a4a749449bc561a73e6747386c8ad51e623fc1e 100644
|
2021-06-11 14:02:28 +02:00
|
|
|
--- a/src/main/java/org/bukkit/entity/LivingEntity.java
|
|
|
|
+++ b/src/main/java/org/bukkit/entity/LivingEntity.java
|
2024-04-06 21:53:39 +02:00
|
|
|
@@ -835,5 +835,19 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource
|
2021-06-11 14:02:28 +02:00
|
|
|
*/
|
2023-02-07 16:43:20 +01:00
|
|
|
@Deprecated
|
2021-06-11 14:02:28 +02:00
|
|
|
void setArrowsStuck(int arrows);
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * Get the delay (in ticks) before blocking is effective for this entity
|
|
|
|
+ *
|
|
|
|
+ * @return Delay in ticks
|
|
|
|
+ */
|
|
|
|
+ int getShieldBlockingDelay();
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * Set the delay (in ticks) before blocking is effective for this entity
|
|
|
|
+ *
|
|
|
|
+ * @param delay Delay in ticks
|
|
|
|
+ */
|
|
|
|
+ void setShieldBlockingDelay(int delay);
|
|
|
|
// Paper end
|
|
|
|
}
|