Commits
riking authored and turt2live committed f0ab5b0aec4
1 1 | package org.bukkit.entity; |
2 2 | |
3 3 | /** |
4 4 | * Represents a fishing hook. |
5 + | * @deprecated in favor of {@link FishHook} |
5 6 | */ |
6 - | public interface Fish extends Projectile { |
7 - | |
8 - | /** |
9 - | * Gets the chance of a fish biting. |
10 - | * <p> |
11 - | * 0.0 = No Chance.<br> |
12 - | * 1.0 = Instant catch. |
13 - | * |
14 - | * @return chance the bite chance |
15 - | */ |
16 - | public double getBiteChance(); |
17 - | |
18 - | /** |
19 - | * Sets the chance of a fish biting. |
20 - | * <p> |
21 - | * 0.0 = No Chance.<br> |
22 - | * 1.0 = Instant catch. |
23 - | * |
24 - | * @param chance the bite chance |
25 - | * @throws IllegalArgumentException if the bite chance is not between 0 |
26 - | * and 1 |
27 - | */ |
28 - | public void setBiteChance(double chance) throws IllegalArgumentException; |
7 + | public interface Fish extends FishHook { |
29 8 | } |