|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Fish
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 |
---|
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 |
---|
double getBiteChance()
0.0 = No Chance.
1.0 = Instant catch.
void setBiteChance(double chance) throws IllegalArgumentException
0.0 = No Chance.
1.0 = Instant catch.
chance
- the bite chance
IllegalArgumentException
- if the bite chance is not between 0 and 1
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |