public interface Fish extends Projectile
Modifier and Type | Method and Description |
---|---|
double |
getBiteChance()
Gets the chance of a fish biting.
|
void |
setBiteChance(double chance)
Sets the chance of a fish biting.
|
_INVALID_getShooter, _INVALID_setShooter, doesBounce, getShooter, setBounce, setShooter
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
getMetadata, hasMetadata, removeMetadata, setMetadata
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 chanceIllegalArgumentException
- if the bite chance is not between 0
and 1Copyright © 2014. All rights reserved.