diff options
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/bukkit/entity/Fish.java | 25 | ||||
-rw-r--r-- | src/main/java/org/bukkit/entity/FishHook.java | 28 |
2 files changed, 30 insertions, 23 deletions
diff --git a/src/main/java/org/bukkit/entity/Fish.java b/src/main/java/org/bukkit/entity/Fish.java index 9ecc4a33..12ed1ed7 100644 --- a/src/main/java/org/bukkit/entity/Fish.java +++ b/src/main/java/org/bukkit/entity/Fish.java @@ -2,28 +2,7 @@ package org.bukkit.entity; /** * Represents a fishing hook. + * @deprecated in favor of {@link FishHook} */ -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; +public interface Fish extends FishHook { } diff --git a/src/main/java/org/bukkit/entity/FishHook.java b/src/main/java/org/bukkit/entity/FishHook.java new file mode 100644 index 00000000..45b7f03d --- /dev/null +++ b/src/main/java/org/bukkit/entity/FishHook.java @@ -0,0 +1,28 @@ +package org.bukkit.entity; + +/** + * Represents a fishing hook. + */ +public interface FishHook 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; +} |