Package org.bukkit.entity
Interface FishHook
- All Superinterfaces:
CommandSender,Entity,Metadatable,Permissible,Projectile,ServerOperator
- All Known Subinterfaces:
Fish
public interface FishHook extends Projectile
Represents a fishing hook.
-
Nested Class Summary
-
Method Summary
Modifier and Type Method Description doublegetBiteChance()Gets the chance of a fish biting.voidsetBiteChance(double chance)Sets the chance of a fish biting.Methods inherited from interface org.bukkit.entity.Entity
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, teleportMethods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentMethods inherited from interface org.bukkit.entity.Projectile
_INVALID_getShooter, _INVALID_setShooter, doesBounce, getShooter, setBounce, setShooter
-
Method Details
-
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 java.lang.IllegalArgumentExceptionSets the chance of a fish biting.0.0 = No Chance.
1.0 = Instant catch.- Parameters:
chance- the bite chance- Throws:
java.lang.IllegalArgumentException- if the bite chance is not between 0 and 1
-