public enum DamageTypeEnum extends java.lang.Enum<DamageTypeEnum>
Enum Constant and Description |
---|
ABILITY |
ATTACK |
ATTACKFIXED |
CRASH |
ITEM |
RECOIL |
SELF |
STATUS |
STRUGGLE |
SUBSTITUTE |
WEATHER |
Modifier and Type | Method and Description |
---|---|
boolean |
isDirect()
Checks if the damage type is direct damage.
|
static DamageTypeEnum |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DamageTypeEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DamageTypeEnum ATTACK
public static final DamageTypeEnum ATTACKFIXED
public static final DamageTypeEnum STATUS
public static final DamageTypeEnum ABILITY
public static final DamageTypeEnum SUBSTITUTE
public static final DamageTypeEnum RECOIL
public static final DamageTypeEnum SELF
public static final DamageTypeEnum CRASH
public static final DamageTypeEnum STRUGGLE
public static final DamageTypeEnum WEATHER
public static final DamageTypeEnum ITEM
public static DamageTypeEnum[] values()
for (DamageTypeEnum c : DamageTypeEnum.values()) System.out.println(c);
public static DamageTypeEnum 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 isDirect()