Enum Class ReceiveCause
- All Implemented Interfaces:
Serializable
,Comparable<ReceiveCause>
,Constable
Enum representing various causes for a player receiving Gems or Tokens.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPlayer received currency by the give command.Player received currency by breaking lucky blocks.Player received currency by mining (their own mining).Player received currency by mining from other players.Player received currency by using the pay command.Player received currency by redeeming items.Player received currency by disenchanting items (refund). -
Method Summary
Modifier and TypeMethodDescriptionstatic ReceiveCause
Returns the enum constant of this class with the specified name.static ReceiveCause[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MINING
Player received currency by mining (their own mining). -
PAY
Player received currency by using the pay command. -
GIVE
Player received currency by the give command. -
REDEEM
Player received currency by redeeming items. -
LUCKY_BLOCK
Player received currency by breaking lucky blocks. -
REFUND
Player received currency by disenchanting items (refund). -
MINING_OTHERS
Player received currency by mining from other players.
-
-
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
-