Class FishHelper

java.lang.Object
com.mrbysco.gonefishing.util.FishHelper

public class FishHelper extends Object
  • Constructor Details

    • FishHelper

      public FishHelper()
  • Method Details

    • createDefaultFishTable

      public static Map<String,Float> createDefaultFishTable()
      Create the default fish table with predefined weights.
      Returns:
      A map of fish identifiers to their weights.
    • setupFishes

      public static void setupFishes(FishingConfig config)
      Setup fishes from config.
      Parameters:
      config - The fishing configuration.
    • getRandomFish

      public static String getRandomFish()
      Get a random fish based on defined weights.
      Returns:
      The identifier of the randomly selected fish.
    • createRandomFish

      public static ItemStack createRandomFish()
      Create a random fish ItemStack.
      Returns:
      An ItemStack of a randomly selected fish.
    • getTimeUntilCatch

      public static int getTimeUntilCatch()
    • canReleaseFish

      public static boolean canReleaseFish()