Enum Class CosmeticResult.Status
- All Implemented Interfaces:
Serializable,Comparable<CosmeticResult.Status>,Constable
- Enclosing class:
CosmeticResult
What happened.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe player can already use the cosmetic, so there is nothing to buy.An event listener refused it.Something went wrong; seeCosmeticResult.message().The player's balance does not cover the price.The player may not use the cosmetic.The cosmetic is not for sale.It was done.Cosmetics, storage or the currency cannot be used now, or the type is not part of this edition.Nothing needed doing, such as equipping what is already equipped.The type or cosmetic does not exist. -
Method Summary
Modifier and TypeMethodDescriptionstatic CosmeticResult.StatusReturns the enum constant of this class with the specified name.static CosmeticResult.Status[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SUCCESS
It was done. -
UNCHANGED
Nothing needed doing, such as equipping what is already equipped. -
UNKNOWN
The type or cosmetic does not exist. -
LOCKED
The player may not use the cosmetic. -
ALREADY_UNLOCKED
The player can already use the cosmetic, so there is nothing to buy. -
NOT_FOR_SALE
The cosmetic is not for sale. -
INSUFFICIENT_FUNDS
The player's balance does not cover the price. -
CANCELLED
An event listener refused it. -
UNAVAILABLE
Cosmetics, storage or the currency cannot be used now, or the type is not part of this edition. -
FAILED
Something went wrong; seeCosmeticResult.message().
-
-
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
-