diff --git a/paper-api/src/main/java/org/bukkit/entity/FishHook.java b/paper-api/src/main/java/org/bukkit/entity/FishHook.java index fdd48d0f14..7069de3081 100644 --- a/paper-api/src/main/java/org/bukkit/entity/FishHook.java +++ b/paper-api/src/main/java/org/bukkit/entity/FishHook.java @@ -4,6 +4,75 @@ package org.bukkit.entity; * Represents a fishing hook. */ public interface FishHook extends Projectile { + + /** + * Get the minimum number of ticks one has to wait for a fish biting. + *
+ * The default is 100 ticks (5 seconds).
+ * Note that this is before applying lure.
+ *
+ * @return Minimum number of ticks one has to wait for a fish biting
+ */
+ public int getMinWaitTime();
+
+ /**
+ * Set the minimum number of ticks one has to wait for a fish biting.
+ *
+ * The default is 100 ticks (5 seconds).
+ * Note that this is before applying lure.
+ *
+ * @param minWaitTime Minimum number of ticks one has to wait for a fish
+ * biting
+ */
+ public void setMinWaitTime(int minWaitTime);
+
+ /**
+ * Get the maximum number of ticks one has to wait for a fish biting.
+ *
+ * The default is 600 ticks (30 seconds).
+ * Note that this is before applying lure.
+ *
+ * @return Maximum number of ticks one has to wait for a fish biting
+ */
+ public int getMaxWaitTime();
+
+ /**
+ * Set the maximum number of ticks one has to wait for a fish biting.
+ *
+ * The default is 600 ticks (30 seconds).
+ * Note that this is before applying lure.
+ *
+ * @param maxWaitTime Maximum number of ticks one has to wait for a fish
+ * biting
+ */
+ public void setMaxWaitTime(int maxWaitTime);
+
+ /**
+ * Get whether the lure enchantment should be applied to reduce the wait
+ * time.
+ *
+ * The default is true.
+ * Lure reduces the wait time by 100 ticks (5 seconds) for each level of the
+ * enchantment.
+ *
+ * @return Whether the lure enchantment should be applied to reduce the wait
+ * time
+ */
+ public boolean getApplyLure();
+
+ /**
+ * Set whether the lure enchantment should be applied to reduce the wait
+ * time.
+ *
+ * The default is true.
+ * Lure reduces the wait time by 100 ticks (5 seconds) for each level of the
+ * enchantment.
+ *
+ * @param applyLure Whether the lure enchantment should be applied to reduce
+ * the wait time
+ */
+ public void setApplyLure(boolean applyLure);
+
/**
* Gets the chance of a fish biting.
*