Package valorless.rarespawns.enums
Enum Class PowerItemType
- All Implemented Interfaces:
Serializable,Comparable<PowerItemType>,Constable
Defines the available Power Item types used by the RareSpawns API.
This enum is used for categorizing item behavior by a simple, named type.
-
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 PowerItemTypeReturns the PowerItemType matching the given name (case-insensitive).static PowerItemTypeReturns the enum constant of this class with the specified name.static PowerItemType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NULL
Unspecified or no-op type. -
BREAKER
Breaker-type power item. -
REDSTONE
Redstone-related power item. -
TROWEL
Trowel-type power item.
-
-
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
-
get
Returns the PowerItemType matching the given name (case-insensitive).- Parameters:
type- the name of the power item type to resolve- Returns:
- the matching PowerItemType constant
- Throws:
IllegalArgumentException- if the provided name does not match any constant
-