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, setShooter
eject, 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, teleport
getMetadata, hasMetadata, removeMetadata, setMetadata
getName, sendMessage, sendMessage
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
isOp, setOp
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 © 2022. All rights reserved.