Package org.bukkit.entity
Interface FishHook
- All Superinterfaces:
CommandSender
,Entity
,Metadatable
,Nameable
,Permissible
,PersistentDataHolder
,Projectile
,ServerOperator
public interface FishHook extends Projectile
Represents a fishing hook.
-
Nested Class Summary
-
Method Summary
Modifier and Type Method Description double
getBiteChance()
Deprecated.has no effect in newer Minecraft versionsvoid
setBiteChance(double chance)
Deprecated.has no effect in newer Minecraft versionsMethods inherited from interface org.bukkit.entity.Entity
addPassenger, addScoreboardTag, eject, getBoundingBox, getEntityId, getFacing, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isOnGround, isPersistent, isSilent, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, spigot, teleport, teleport, teleport, teleport
Methods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
Methods inherited from interface org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
Methods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainer
Methods inherited from interface org.bukkit.entity.Projectile
doesBounce, getShooter, setBounce, setShooter
-
Method Details
-
getBiteChance
Deprecated.has no effect in newer Minecraft versionsGets the chance of a fish biting.0.0 = No Chance.
1.0 = Instant catch.- Returns:
- chance the bite chance
-
setBiteChance
Deprecated.has no effect in newer Minecraft versionsSets the chance of a fish biting.0.0 = No Chance.
1.0 = Instant catch.- Parameters:
chance
- the bite chance- Throws:
IllegalArgumentException
- if the bite chance is not between 0 and 1
-