Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
Fish.java
1 package org.bukkit.entity;
2 
3 /**
4  * Represents a fishing hook.
5  */
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;
29 }
void setBiteChance(double chance)