Interface FishHook

All Superinterfaces:
CommandSender, Entity, Metadatable, Permissible, Projectile, ServerOperator
All Known Subinterfaces:
Fish

public interface FishHook
extends Projectile
Represents a fishing hook.
  • 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.IllegalArgumentException
      Sets 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