public enum Nature extends java.lang.Enum<Nature> implements ITranslatable, net.minecraft.util.IStringSerializable
Enum Constant and Description |
---|
ADAMANT |
BASHFUL |
BOLD |
BRAVE |
CALM |
CAREFUL |
DOCILE |
GENTLE |
HARDY |
HASTY |
IMPISH |
JOLLY |
LAX |
LONELY |
MILD |
MODEST |
NAIVE |
NAUGHTY |
QUIET |
QUIRKY |
RASH |
RELAXED |
SASSY |
SERIOUS |
TIMID |
Modifier and Type | Method and Description |
---|---|
BattleStatsType |
getDecreasedStat() |
BattleStatsType |
getIncreasedStat()
Gets the
BattleStatsType increased by this nature |
static Nature |
getNatureFromIndex(int index)
Gets a Nature from its index.
|
static Nature |
getRandomNature()
Randomly chooses a Nature.
|
java.lang.String |
getSerializedName() |
java.lang.String |
getTranslationKey() |
static boolean |
hasNature(java.lang.String name)
Checks if a Nature with a certain name exists.
|
static Nature |
natureFromString(java.lang.String name)
Gets a Nature from its name.
|
static Nature |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Nature[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
getLocalizedName, getTranslatedName
public static final Nature HARDY
public static final Nature SERIOUS
public static final Nature DOCILE
public static final Nature BASHFUL
public static final Nature QUIRKY
public static final Nature LONELY
public static final Nature BRAVE
public static final Nature ADAMANT
public static final Nature NAUGHTY
public static final Nature BOLD
public static final Nature RELAXED
public static final Nature IMPISH
public static final Nature LAX
public static final Nature TIMID
public static final Nature HASTY
public static final Nature JOLLY
public static final Nature NAIVE
public static final Nature MODEST
public static final Nature MILD
public static final Nature QUIET
public static final Nature RASH
public static final Nature CALM
public static final Nature GENTLE
public static final Nature SASSY
public static final Nature CAREFUL
public static Nature[] values()
for (Nature c : Nature.values()) System.out.println(c);
public static Nature valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic BattleStatsType getIncreasedStat()
BattleStatsType
increased by this naturepublic BattleStatsType getDecreasedStat()
public static Nature getNatureFromIndex(int index)
index
- The index of the Nature.public static Nature getRandomNature()
public static boolean hasNature(java.lang.String name)
name
- The name of the Nature.public static Nature natureFromString(java.lang.String name)
name
- The name of the Nature.public java.lang.String getTranslationKey()
getTranslationKey
in interface ITranslatable
public java.lang.String getSerializedName()
getSerializedName
in interface net.minecraft.util.IStringSerializable