Newer
Older
ultramine_bukkit / src / main / java / org / bukkit / entity / FishHook.java
@vlad20012 vlad20012 on 24 Feb 2017 627 bytes initial
package org.bukkit.entity;

/**
 * Represents a fishing hook.
 */
public interface FishHook 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;
}