Enum Class PlayerCompletion
- All Implemented Interfaces:
Serializable,Comparable<PlayerCompletion>,Constable,Completion
Represents a custom completion a player has to achieve to unlock GENERAL cosmetics, through any toggled event.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCompletion for being struck by lightning.Completion for reaching the roof of the Nether.Completion for dying to a warden with its sonic boom attack. -
Method Summary
Modifier and TypeMethodDescription@NotNull StringgetKey()Fetches the key used in the config to fetch whether this Completion is done.@NotNull StringFetches the namespace of this Completion.@NotNull RarityFetches the Rarity of this Completion.static PlayerCompletionReturns the enum constant of this class with the specified name.static PlayerCompletion[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface me.gamercoder215.starcosmetics.api.Completion
getCriteria, getFullKey
-
Enum Constant Details
-
LIGHTNING
Completion for being struck by lightning. -
NETHER_ROOF
Completion for reaching the roof of the Nether. -
SONIC_BOOM_DEATH
Completion for dying to a warden with its sonic boom attack.
-
-
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
-
getKey
Description copied from interface:CompletionFetches the key used in the config to fetch whether this Completion is done.- Specified by:
getKeyin interfaceCompletion- Returns:
- Completion Configuration Key
-
getNamespace
Description copied from interface:CompletionFetches the namespace of this Completion.- Specified by:
getNamespacein interfaceCompletion- Returns:
- Completion Namespace
-
getRarity
Description copied from interface:CompletionFetches the Rarity of this Completion.- Specified by:
getRarityin interfaceCompletion- Returns:
- Completion Rarity
-