Enum Class Nature
- All Implemented Interfaces:
ITranslatable
,Serializable
,Comparable<Nature>
,Constable
,net.minecraft.util.StringRepresentable
public enum Nature
extends Enum<Nature>
implements ITranslatable, net.minecraft.util.StringRepresentable
Pokémon Natures that affect certain stats.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface net.minecraft.util.StringRepresentable
net.minecraft.util.StringRepresentable.EnumCodec<E extends Enum<E> & net.minecraft.util.StringRepresentable>
-
Enum Constant Summary
-
Field Summary
Fields inherited from interface net.minecraft.util.StringRepresentable
PRE_BUILT_MAP_THRESHOLD
-
Method Summary
Modifier and TypeMethodDescriptionGets theBattleStatsType
increased by this naturestatic Nature
getNatureFromIndex
(int index) Gets a Nature from its index.static Nature
getRandomDecreasedNature
(BattleStatsType decreasedBy) Randomly chooses a nature based on it's decreased statstatic Nature
getRandomIncreasedNature
(BattleStatsType increasedBy) Randomly chooses a nature based on it's boosted statstatic Nature
Randomly chooses a Nature.static boolean
Checks if a Nature with a certain name exists.static Nature
natureFromString
(String name) Gets a Nature from its name.static Nature
Returns the enum constant of this class with the specified name.static Nature[]
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
-
HARDY
-
SERIOUS
-
DOCILE
-
BASHFUL
-
QUIRKY
-
LONELY
-
BRAVE
-
ADAMANT
-
NAUGHTY
-
BOLD
-
RELAXED
-
IMPISH
-
LAX
-
TIMID
-
HASTY
-
JOLLY
-
NAIVE
-
MODEST
-
MILD
-
QUIET
-
RASH
-
CALM
-
GENTLE
-
SASSY
-
CAREFUL
-
-
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
-
getIncreasedStat
Gets theBattleStatsType
increased by this nature- Returns:
- The increased stats type
-
getDecreasedStat
-
getNatureFromIndex
Gets a Nature from its index. Will return null if the index is out of bounds- Parameters:
index
- The index of the Nature.- Returns:
- The Nature corresponding to the index, or null if the index is out of bounds.
-
getRandomNature
Randomly chooses a Nature.- Returns:
- A random Nature.
-
getRandomIncreasedNature
Randomly chooses a nature based on it's boosted stat- Parameters:
increasedBy
- The boosted stat- Returns:
- A random nature with the specified boost.
-
getRandomDecreasedNature
Randomly chooses a nature based on it's decreased stat- Parameters:
decreasedBy
- The decreased stat- Returns:
- A random nature with the specified decrease.
-
hasNature
Checks if a Nature with a certain name exists.- Parameters:
name
- The name of the Nature.- Returns:
- Whether a Nature with the specified name exists.
-
natureFromString
Gets a Nature from its name.- Parameters:
name
- The name of the Nature.- Returns:
- The Nature corresponding to the name, or null if there isn't one.
-
getTranslationKey
- Specified by:
getTranslationKey
in interfaceITranslatable
-
getSerializedName
- Specified by:
getSerializedName
in interfacenet.minecraft.util.StringRepresentable
-