public enum Gender extends java.lang.Enum<Gender> implements ITranslatable
Modifier and Type | Method and Description |
---|---|
static Gender |
getGender(short ord)
Gets a gender from its enum ordinal.
|
static Gender |
getGender(java.lang.String name)
Gets the gender associated with the given name, case insensitively, if it exists
|
static Gender |
getRandomGender(Stats baseStats)
Gets a random gender for a Pokémon.
|
java.lang.String |
getTranslationKey() |
boolean |
hasPalette(Stats stats,
java.lang.String palette)
Checks if the gender of a given form has the palette
|
boolean |
isCompatible(Gender otherGender)
Checks if the gender is compatible with another gender for relationship purposes.
|
static Gender |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Gender[] |
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 Gender MALE
public static final Gender FEMALE
public static final Gender NONE
public static Gender[] values()
for (Gender c : Gender.values()) System.out.println(c);
public static Gender 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 boolean hasPalette(Stats stats, java.lang.String palette)
stats
- The formpalette
- The palettepublic java.lang.String getTranslationKey()
getTranslationKey
in interface ITranslatable
public boolean isCompatible(Gender otherGender)
otherGender
- The gender to check against this gender.public static Gender getGender(short ord)
ord
- The ordinal of the enum.public static Gender getGender(java.lang.String name)
name
- - The case insensitive name of the gender