Enum Class CorporationAchievement

java.lang.Object
java.lang.Enum<CorporationAchievement>
us.teaminceptus.novaconomy.api.corporation.CorporationAchievement
All Implemented Interfaces:
Serializable, Comparable<CorporationAchievement>, Constable

public enum CorporationAchievement extends Enum<CorporationAchievement>
Represents an achievement that a Corporation can earn.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    The achievement for reaching a collective 10K, 50K, 150K, 500K, 1M, and 5M Business and Corporation Views.
    The achievement for reaching a collective 100K, 450K, 1M, 2.5M, 7.5M, 15M, 40M, 75M, and 125M in total Business Profit.
    The achievement for reaching 5, 15, 35, and 50 corporation children.
    The achievement for reaching a collective 5K, 15K, 100K, 350K, 750K, 1.5M, 5M, 10M, 25M, 50M, and 100M Business sales.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull String
    Fetches teh localized description for this Corporation Achievement.
    @NotNull String
    Fetches the display name for this Corporation Achievement.
    double
    Fetches the base experience reward for achieving this Corporation Achievement.
    @NotNull Material
    Fetches this CorporationAchievement's Material Icon.
    int
    Fetches the maximum level of this Corporation Achievement.
    double
    Fetches the current progress percentage of the Corporation towards the next level of this achievement.
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • MONOPOLY

      public static final CorporationAchievement MONOPOLY
      The achievement for reaching 5, 15, 35, and 50 corporation children.
    • ADVERTISER

      public static final CorporationAchievement ADVERTISER
      The achievement for reaching a collective 10K, 50K, 150K, 500K, 1M, and 5M Business and Corporation Views.
    • SELLER

      public static final CorporationAchievement SELLER
      The achievement for reaching a collective 5K, 15K, 100K, 350K, 750K, 1.5M, 5M, 10M, 25M, 50M, and 100M Business sales.
    • BUSINESSMAN

      public static final CorporationAchievement BUSINESSMAN
      The achievement for reaching a collective 100K, 450K, 1M, 2.5M, 7.5M, 15M, 40M, 75M, and 125M in total Business Profit.
  • Method Details

    • values

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

      @NotNull public @NotNull Material getIcon()
      Fetches this CorporationAchievement's Material Icon.
      Returns:
      Material Icon
    • getMaxLevel

      public int getMaxLevel()
      Fetches the maximum level of this Corporation Achievement.
      Returns:
      Maximum Level
    • getDisplayName

      @NotNull public @NotNull String getDisplayName()
      Fetches the display name for this Corporation Achievement.
      Returns:
      Localized Display Name
    • getDescription

      @NotNull public @NotNull String getDescription()
      Fetches teh localized description for this Corporation Achievement.
      Returns:
      Localized Description
    • getExperienceReward

      public double getExperienceReward()

      Fetches the base experience reward for achieving this Corporation Achievement.

      This will be multiplied by the level unlocked, when applicable.

      Returns:
      Experience Reward
    • getProgress

      public double getProgress(@NotNull @NotNull Corporation c) throws IllegalArgumentException
      Fetches the current progress percentage of the Corporation towards the next level of this achievement.
      Parameters:
      c - Corporation to check
      Returns:
      Percentage Progress towards Achievement out of 100%
      Throws:
      IllegalArgumentException - if Corporation is null