Enum Class PlayerShopService.TradeResult
java.lang.Object
java.lang.Enum<PlayerShopService.TradeResult>
fr.mathildeuh.youneedme.api.playershop.PlayerShopService.TradeResult
- All Implemented Interfaces:
Serializable, Comparable<PlayerShopService.TradeResult>, Constable
- Enclosing interface:
PlayerShopService
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe chest block is gone/changed without going through proper shop removal. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static PlayerShopService.TradeResult[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SUCCESS
-
SHOP_NOT_FOUND
-
NOT_BUYABLE
-
NOT_SELLABLE
-
CHEST_MISSING
The chest block is gone/changed without going through proper shop removal. -
OUT_OF_STOCK
-
CHEST_FULL
-
INSUFFICIENT_FUNDS
-
INVENTORY_FULL
-
CANNOT_TRADE_OWN_SHOP
-
-
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
-