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

public enum StructureCompletion extends Enum<StructureCompletion> implements Completion
Represents a Completion for unlocking a Structure.
  • Enum Constant Details

  • Method Details

    • values

      public static StructureCompletion[] 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

      public static StructureCompletion valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getKey

      @NotNull public @NotNull String getKey()
      Description copied from interface: Completion
      Fetches the key used in the config to fetch whether this Completion is done.
      Specified by:
      getKey in interface Completion
      Returns:
      Completion Configuration Key
    • getNamespace

      @NotNull public @NotNull String getNamespace()
      Description copied from interface: Completion
      Fetches the namespace of this Completion.
      Specified by:
      getNamespace in interface Completion
      Returns:
      Completion Namespace
    • byRarity

      @Nullable public static @Nullable StructureCompletion byRarity(@NotNull @NotNull Rarity rarity)
      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

      @NotNull public @NotNull Rarity getRarity()
      Description copied from interface: Completion
      Fetches the Rarity of this Completion.
      Specified by:
      getRarity in interface Completion
      Returns:
      Completion Rarity
    • getCriteria

      public CompletionCriteria getCriteria()
      Description copied from interface: Completion
      Fetches the criteria for this Completion.
      Specified by:
      getCriteria in interface Completion
      Returns:
      Completion Criteria