Enum Class BattleStatsType

java.lang.Object
java.lang.Enum<BattleStatsType>
com.pixelmonmod.pixelmon.api.pokemon.stats.BattleStatsType
All Implemented Interfaces:
ITranslatable, Serializable, Comparable<BattleStatsType>, Constable

public enum BattleStatsType extends Enum<BattleStatsType> implements ITranslatable
Types of battle stats.
  • Enum Constant Details

  • Field Details

  • Method Details

    • values

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

      public static boolean isStatsEffect(String effectTypeString)
      Checks if there is a stat with a certain name.
      Parameters:
      effectTypeString - The name to check for stat existence.
      Returns:
      Whether there is a stat with the given name.
    • getStatsEffect

      public static BattleStatsType getStatsEffect(String effectTypeString)
      Gets a stat from its name.
      Parameters:
      effectTypeString - The name of the stat to get.
      Returns:
      The stat with the given name, or null if there is no stat with the name.
    • getStatIndex

      public int getStatIndex()
      Gets the array index for the stat array of the equivalent stat.
      Returns:
      The index to the stat array based on the given stat.
    • getBattleStatIndex

      public int getBattleStatIndex()
      Gets the array index for the battle stat array of the equivalent stat.
      Returns:
      The index to the battle stat array based on the given stat.
    • getTranslationKey

      public String getTranslationKey()
      Specified by:
      getTranslationKey in interface ITranslatable
    • getEVIVStatValues

      public static BattleStatsType[] getEVIVStatValues()
    • getUniqueBattleStatValues

      public static BattleStatsType[] getUniqueBattleStatValues()
    • getAllBattleStatValues

      public static BattleStatsType[] getAllBattleStatValues()
    • getBattleOnlyStatValues

      public static BattleStatsType[] getBattleOnlyStatValues()
    • getRandomBattleMutableStat

      public static BattleStatsType getRandomBattleMutableStat()
    • fromBattleIndex

      public static BattleStatsType fromBattleIndex(int battleIndex)
    • fromIndex

      public static BattleStatsType fromIndex(int index)