Commits

riking authored and turt2live committed f0ab5b0aec4
Rename Fish to FishHook. Fixes BUKKIT-3856

"Fish" is a badly named class to represent a fishing hook due to the possibility (or lack of) that Minecraft may be getting fish entities. This commit provides potential future compatibility by deprecating the existing Fish class and moving the methods to a new class: FishHook.
No tags

src/main/java/org/bukkit/entity/Fish.java

Modified
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 }

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut