Interface FishHook

    • Method Detail

      • getBiteChance

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

        0.0 = No Chance.
        1.0 = Instant catch.

        Returns:
        chance the bite chance
      • setBiteChance

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