Package valorless.rarespawns.enums
Enum Class SoulHarvesterGainType
- All Implemented Interfaces:
Serializable,Comparable<SoulHarvesterGainType>,Constable
Enumeration of different types of Soul Harvester gain methods.
Defines the various categories through which souls can be gained, such as killing, fishing, mining, defence, and building.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic SoulHarvesterGainTypefromString(String s) Converts a string representation to the corresponding SoulHarvesterGainType enum value.static SoulHarvesterGainTypeReturns the enum constant of this class with the specified name.static SoulHarvesterGainType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
KILL
-
FISHING
-
MINING
-
DEFENCE
-
BUILDING
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
fromString
Converts a string representation to the corresponding SoulHarvesterGainType enum value.The comparison is case-insensitive. If the input string does not match any enum value, the method returns null.
- Parameters:
s- the string representation of the gain type- Returns:
- the corresponding SoulHarvesterGainType enum value, or null if no match is found
-