Enum Class CosmeticOwnershipChangeEvent.Cause
java.lang.Object
java.lang.Enum<CosmeticOwnershipChangeEvent.Cause>
dev.itsharshxd.zentrix.api.events.cosmetics.CosmeticOwnershipChangeEvent.Cause
- All Implemented Interfaces:
Serializable,Comparable<CosmeticOwnershipChangeEvent.Cause>,Constable
- Enclosing class:
CosmeticOwnershipChangeEvent
public static enum CosmeticOwnershipChangeEvent.Cause
extends Enum<CosmeticOwnershipChangeEvent.Cause>
What made the change.
- Since:
- 1.9.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTimed cosmetics ran out.Cosmetics were granted, permanently or for a limited time, or a timed grant extended.Ownership was imported from another plugin.Cosmetics were taken away by an administrator or addon.The player's choice changed, in the cosmetics menu or through the API. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static CosmeticOwnershipChangeEvent.Cause[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GRANTED
Cosmetics were granted, permanently or for a limited time, or a timed grant extended. -
REVOKED
Cosmetics were taken away by an administrator or addon. -
SELECTED
The player's choice changed, in the cosmetics menu or through the API. -
EXPIRED
Timed cosmetics ran out. A shop may offer to renew them. -
IMPORTED
Ownership was imported from another plugin.
-
-
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
-