public static enum FishingRewardManager.RewardCategory extends Enum<FishingRewardManager.RewardCategory>
Modifier and Type | Method and Description |
---|---|
double |
getChance()
Percent chance to get an item in this category, with an unenchanted fishing pole.
|
double |
getModifier()
Additional chance in % points per level of "Luck of the Sea" enchantment.
|
static FishingRewardManager.RewardCategory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FishingRewardManager.RewardCategory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FishingRewardManager.RewardCategory FISH
public static final FishingRewardManager.RewardCategory TREASURE
public static final FishingRewardManager.RewardCategory JUNK
public static FishingRewardManager.RewardCategory[] values()
for (FishingRewardManager.RewardCategory c : FishingRewardManager.RewardCategory.values()) System.out.println(c);
public static FishingRewardManager.RewardCategory valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic double getChance()
public double getModifier()
Copyright © 2021. All rights reserved.