Enum Class PlayerCompletion

java.lang.Object
java.lang.Enum<PlayerCompletion>
me.gamercoder215.starcosmetics.api.player.PlayerCompletion
All Implemented Interfaces:
Serializable, Comparable<PlayerCompletion>, Constable, Completion

public enum PlayerCompletion extends Enum<PlayerCompletion> implements Completion
Represents a custom completion a player has to achieve to unlock GENERAL cosmetics, through any toggled event.
  • Enum Constant Details

    • LIGHTNING

      public static final PlayerCompletion LIGHTNING
      Completion for being struck by lightning.
    • NETHER_ROOF

      public static final PlayerCompletion NETHER_ROOF
      Completion for reaching the roof of the Nether.
    • SONIC_BOOM_DEATH

      public static final PlayerCompletion SONIC_BOOM_DEATH
      Completion for dying to a warden with its sonic boom attack.
  • Method Details

    • values

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