Enum Class CurrencyChangeEvent.ChangeReason
java.lang.Object
java.lang.Enum<CurrencyChangeEvent.ChangeReason>
dev.itsharshxd.zentrix.api.events.currency.CurrencyChangeEvent.ChangeReason
- All Implemented Interfaces:
Serializable,Comparable<CurrencyChangeEvent.ChangeReason>,Constable
- Enclosing class:
CurrencyChangeEvent
Represents the reason for a currency balance change.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBalance was changed by a third-party addon.Balance was changed by an administrator command.Balance was changed due to a game event reward.Balance was changed for an unknown or unspecified reason.Balance was changed due to a penalty (e.g., death penalty).Balance was changed due to a purchase or transaction.Balance was reset to default/starting balance.Balance was loaded from storage.Balance was changed due to a transfer between players. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static CurrencyChangeEvent.ChangeReason[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ADMIN
Balance was changed by an administrator command.Examples: /currency set, /currency add, /currency take
-
EVENT_REWARD
Balance was changed due to a game event reward.Examples: kill reward, win bonus, first blood, placement rewards
-
ADDON
Balance was changed by a third-party addon.Addons should use this reason when modifying balances.
-
PURCHASE
Balance was changed due to a purchase or transaction. -
PENALTY
Balance was changed due to a penalty (e.g., death penalty). -
TRANSFER
Balance was changed due to a transfer between players. -
RESET
Balance was reset to default/starting balance. -
STORAGE_LOAD
Balance was loaded from storage. -
OTHER
Balance was changed for an unknown or unspecified reason.
-
-
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
-