接口 FishHook

所有超级接口:
CommandSender, Entity, Metadatable, Nameable, Permissible, Projectile, ServerOperator
所有已知子接口:
Fish

public interface FishHook extends Projectile
Represents a fishing hook.
  • 方法详细资料

    • getBiteChance

      @Deprecated double getBiteChance()
      已过时。
      has no effect in newer Minecraft versions
      Gets the chance of a fish biting.

      0.0 = No Chance.
      1.0 = Instant catch.

      返回:
      chance the bite chance
    • setBiteChance

      @Deprecated void setBiteChance(double chance) throws IllegalArgumentException
      已过时。
      has no effect in newer Minecraft versions
      Sets 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