接口 FishHook
- 所有超级接口:
CommandSender
,Entity
,Metadatable
,Nameable
,Permissible
,Projectile
,ServerOperator
- 所有已知子接口:
Fish
Represents a fishing hook.
-
方法概要
修饰符和类型方法说明double
已过时。has no effect in newer Minecraft versionsvoid
setBiteChance
(double chance) 已过时。has no effect in newer Minecraft versions从接口继承的方法 org.bukkit.command.CommandSender
getName, sendMessage, sendMessage
从接口继承的方法 org.bukkit.entity.Entity
addPassenger, addScoreboardTag, eject, getEntityId, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isOnGround, isSilent, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPortalCooldown, setSilent, setTicksLived, setVelocity, teleport, teleport, teleport, teleport
从接口继承的方法 org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
从接口继承的方法 org.bukkit.Nameable
getCustomName, setCustomName
从接口继承的方法 org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
从接口继承的方法 org.bukkit.entity.Projectile
doesBounce, getShooter, setBounce, setShooter
从接口继承的方法 org.bukkit.permissions.ServerOperator
isOp, setOp
-
方法详细资料
-
getBiteChance
已过时。has no effect in newer Minecraft versionsGets the chance of a fish biting.0.0 = No Chance.
1.0 = Instant catch.- 返回:
- chance the bite chance
-
setBiteChance
已过时。has no effect in newer Minecraft versionsSets the chance of a fish biting.0.0 = No Chance.
1.0 = Instant catch.- 参数:
chance
- the bite chance- 抛出:
IllegalArgumentException
- if the bite chance is not between 0 and 1
-