Enum Class BattleStatsType
- All Implemented Interfaces:
ITranslatable
,Serializable
,Comparable<BattleStatsType>
,Constable
Types of battle stats.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Field Summary
Modifier and TypeFieldDescriptionstatic final BattleStatsType[]
static final BattleStatsType[]
static final BattleStatsType[]
static final BattleStatsType[]
-
Method Summary
Modifier and TypeMethodDescriptionstatic BattleStatsType
fromBattleIndex
(int battleIndex) static BattleStatsType
fromIndex
(int index) static BattleStatsType[]
static BattleStatsType[]
int
Gets the array index for the battle stat array of the equivalent stat.static BattleStatsType[]
static BattleStatsType
int
Gets the array index for the stat array of the equivalent stat.static BattleStatsType
getStatsEffect
(String effectTypeString) Gets a stat from its name.static BattleStatsType[]
static boolean
isStatsEffect
(String effectTypeString) Checks if there is a stat with a certain name.static BattleStatsType
Returns the enum constant of this class with the specified name.static BattleStatsType[]
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, valueOf
Methods inherited from interface com.pixelmonmod.pixelmon.api.util.ITranslatable
getLocalizedName, getTranslatedName
-
Enum Constant Details
-
NONE
-
HP
-
ATTACK
-
DEFENSE
-
SPECIAL_ATTACK
-
SPECIAL_DEFENSE
-
SPEED
-
ACCURACY
-
EVASION
-
-
Field Details
-
EV_IV_STATS
-
UNIQUE_BATTLE_STATS
-
ALL_BATTLE_STATS
-
BATTLE_ONLY_STATS
-
-
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
-
isStatsEffect
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
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
- Specified by:
getTranslationKey
in interfaceITranslatable
-
getEVIVStatValues
-
getUniqueBattleStatValues
-
getAllBattleStatValues
-
getBattleOnlyStatValues
-
getRandomBattleMutableStat
-
fromBattleIndex
-
fromIndex
-