Enum ClanBalanceUpdateEvent.Cause
java.lang.Object
java.lang.Enum<ClanBalanceUpdateEvent.Cause>
net.sacredlabyrinth.phaed.simpleclans.events.ClanBalanceUpdateEvent.Cause
- All Implemented Interfaces:
Serializable,Comparable<ClanBalanceUpdateEvent.Cause>
- Enclosing class:
ClanBalanceUpdateEvent
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionWhen the balance is updated via API methodsWhen a command such as /clan bank deposit causes the updateWHen the balance is updated via Internal methodsWhen the clan data is being loaded and the balance is set, usually on server start up or plugin reloadWhen a failed deposit is being refunded, cannot be cancelled -
Method Summary
Modifier and TypeMethodDescriptionstatic ClanBalanceUpdateEvent.CauseReturns the enum constant of this type with the specified name.static ClanBalanceUpdateEvent.Cause[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UPKEEP
-
MEMBER_FEE
-
COMMAND
When a command such as /clan bank deposit causes the update -
API
When the balance is updated via API methods -
INTERNAL
WHen the balance is updated via Internal methods -
LOADING
When the clan data is being loaded and the balance is set, usually on server start up or plugin reload -
REVERT
When a failed deposit is being refunded, cannot be cancelled
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-