Class FishHelper
java.lang.Object
com.mrbysco.gonefishing.util.FishHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanCreate the default fish table with predefined weights.static ItemStackCreate a random fish ItemStack.static StringGet a random fish based on defined weights.static intstatic voidsetupFishes(FishingConfig config) Setup fishes from config.
-
Constructor Details
-
FishHelper
public FishHelper()
-
-
Method Details
-
createDefaultFishTable
-
setupFishes
Setup fishes from config.- Parameters:
config- The fishing configuration.
-
getRandomFish
Get a random fish based on defined weights.- Returns:
- The identifier of the randomly selected fish.
-
createRandomFish
Create a random fish ItemStack.- Returns:
- An ItemStack of a randomly selected fish.
-
getTimeUntilCatch
public static int getTimeUntilCatch() -
canReleaseFish
public static boolean canReleaseFish()
-