diff options
-rw-r--r-- | src/main/java/org/bukkit/entity/Fish.java | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/entity/Fish.java b/src/main/java/org/bukkit/entity/Fish.java index dca77fce..25e58b08 100644 --- a/src/main/java/org/bukkit/entity/Fish.java +++ b/src/main/java/org/bukkit/entity/Fish.java @@ -3,4 +3,26 @@ package org.bukkit.entity; /** * Represents a fishing hook. */ -public interface Fish extends Projectile {} +public interface Fish extends Projectile { + + /** + * Gets the chance of a fish biting. + * <p> + * 0.0 = No Chance.<br> + * 1.0 = Instant catch. + * + * @return chance the bite chance + */ + public double getBiteChance(); + + /** + * Sets the chance of a fish biting. + * <p> + * 0.0 = No Chance.<br> + * 1.0 = Instant catch. + * + * @param chance the bite chance + * @throws IllegalArgumentException if the bite chance is not between 0 and 1 + */ + public void setBiteChance(double chance) throws IllegalArgumentException; +} |