mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-03 23:07:40 +01:00
Allow fishing success rate to be adjustable. Adds BUKKIT-3837
By: Andre LeBlanc <andre@norcode.com>
This commit is contained in:
parent
189ecfe6da
commit
572159a4fa
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user