public interface FishHook extends Projectile
Entity.Spigot| 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, setShootereject, getCustomName, getEntityId, getFallDistance, getFireTicks, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWorld, isCustomNameVisible, isDead, isEmpty, isInsideVehicle, isOnGround, isValid, leaveVehicle, playEffect, remove, setCustomName, setCustomNameVisible, setFallDistance, setFireTicks, setLastDamageCause, setPassenger, setTicksLived, setVelocity, spigot, teleport, teleport, teleport, teleportgetMetadata, hasMetadata, removeMetadata, setMetadatagetName, sendMessage, sendMessageaddAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentisOp, setOpdouble 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 © 2016. All rights reserved.