Add get/set wait time for fish hooks. (#5595)
This commit is contained in:
@@ -70,6 +70,31 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ void setTicksToDetonate(int ticks);
|
||||
+ // Paper stop
|
||||
}
|
||||
diff --git a/src/main/java/org/bukkit/entity/FishHook.java b/src/main/java/org/bukkit/entity/FishHook.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/org/bukkit/entity/FishHook.java
|
||||
+++ b/src/main/java/org/bukkit/entity/FishHook.java
|
||||
@@ -0,0 +0,0 @@ public interface FishHook extends Projectile {
|
||||
*/
|
||||
BOBBING;
|
||||
}
|
||||
+
|
||||
+ // Paper start - More FishHook API
|
||||
+ /**
|
||||
+ * Get the number of ticks the hook needs to wait for a fish to bite.
|
||||
+ *
|
||||
+ * @return Number of ticks
|
||||
+ */
|
||||
+ int getWaitTime();
|
||||
+
|
||||
+ /**
|
||||
+ * Sets the number of ticks the hook needs to wait for a fish to bite.
|
||||
+ *
|
||||
+ * @param ticks Number of ticks
|
||||
+ */
|
||||
+ void setWaitTime(int ticks);
|
||||
+ // Paper end
|
||||
}
|
||||
diff --git a/src/main/java/org/bukkit/entity/ThrownPotion.java b/src/main/java/org/bukkit/entity/ThrownPotion.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/org/bukkit/entity/ThrownPotion.java
|
||||
|
||||
Reference in New Issue
Block a user