Enum Class StructureCompletion
java.lang.Object
java.lang.Enum<StructureCompletion>
me.gamercoder215.starcosmetics.api.cosmetics.structure.StructureCompletion
- All Implemented Interfaces:
Serializable,Comparable<StructureCompletion>,Constable,Completion
Represents a Completion for unlocking a
Structure.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRepresents the completion for unlockingRarity.COMMONstructures.Represents the completion for unlockingRarity.EPICstructures.Represents the completion for unlockingRarity.LEGENDARYstructures.Represents the completion for unlockingRarity.MYTHICALstructures.Represents the completion for unlockingRarity.OCCASIONALstructures.Represents the completion for unlockingRarity.RAREstructures.Represents the completion for unlockingRarity.SPECIALstructures.Represents the completion for unlockingRarity.ULTRAstructures.Represents the completion for unlockingRarity.UNCOMMONstructures. -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable StructureCompletionFetches the StructureCompletion for the specified Rarity.Fetches the criteria for this Completion.@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 StructureCompletionReturns the enum constant of this class with the specified name.static StructureCompletion[]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
getFullKey
-
Enum Constant Details
-
COMMON
Represents the completion for unlockingRarity.COMMONstructures. -
OCCASIONAL
Represents the completion for unlockingRarity.OCCASIONALstructures. -
UNCOMMON
Represents the completion for unlockingRarity.UNCOMMONstructures. -
RARE
Represents the completion for unlockingRarity.RAREstructures. -
EPIC
Represents the completion for unlockingRarity.EPICstructures. -
LEGENDARY
Represents the completion for unlockingRarity.LEGENDARYstructures. -
MYTHICAL
Represents the completion for unlockingRarity.MYTHICALstructures. -
ULTRA
Represents the completion for unlockingRarity.ULTRAstructures. -
SPECIAL
Represents the completion for unlockingRarity.SPECIALstructures.
-
-
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
-
byRarity
Fetches the StructureCompletion for the specified Rarity.- Parameters:
rarity- Rarity to fetch StructureCompletion for- Returns:
- StructureCompletion for specified Rarity, or null if not found
-
getRarity
Description copied from interface:CompletionFetches the Rarity of this Completion.- Specified by:
getRarityin interfaceCompletion- Returns:
- Completion Rarity
-
getCriteria
Description copied from interface:CompletionFetches the criteria for this Completion.- Specified by:
getCriteriain interfaceCompletion- Returns:
- Completion Criteria
-