Allow fishing success rate to be adjustable. Adds BUKKIT-3837

This commit is contained in:
Andre LeBlanc 2013-03-20 11:48:17 -04:00 committed by GJ
parent 1e7bb5a6ea
commit 2bb16b29ab

View File

@ -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;
}