Allow fishing success rate to be adjustable. Adds BUKKIT-3837
This commit is contained in:
parent
1e7bb5a6ea
commit
2bb16b29ab
@ -3,4 +3,26 @@ package org.bukkit.entity;
|
|||||||
/**
|
/**
|
||||||
* Represents a fishing hook.
|
* 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;
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user