org.bukkit.entity
Interface FishHook

All Superinterfaces:
Entity, Metadatable, Projectile
All Known Subinterfaces:
Fish

public interface FishHook
extends Projectile

Represents a fishing hook.


Method Summary
 double getBiteChance()
          Gets the chance of a fish biting.
 void setBiteChance(double chance)
          Sets the chance of a fish biting.
 
Methods inherited from interface org.bukkit.entity.Projectile
_INVALID_getShooter, _INVALID_setShooter, doesBounce, getShooter, setBounce, setShooter
 
Methods inherited from interface org.bukkit.entity.Entity
eject, getEntityId, getFallDistance, getFireTicks, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWorld, isDead, isEmpty, isInsideVehicle, isOnGround, isValid, leaveVehicle, playEffect, remove, setFallDistance, setFireTicks, setLastDamageCause, setPassenger, setTicksLived, setVelocity, teleport, teleport, teleport, teleport
 
Methods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
 

Method Detail

getBiteChance

double getBiteChance()
Gets the chance of a fish biting.

0.0 = No Chance.
1.0 = Instant catch.

Returns:
chance the bite chance

setBiteChance

void setBiteChance(double chance)
                   throws IllegalArgumentException
Sets the chance of a fish biting.

0.0 = No Chance.
1.0 = Instant catch.

Parameters:
chance - the bite chance
Throws:
IllegalArgumentException - if the bite chance is not between 0 and 1


Copyright © 2014. All rights reserved.