multiverse.mars.core
Enum MarsAbility.TargetType
java.lang.Object
java.lang.Enum<MarsAbility.TargetType>
multiverse.mars.core.MarsAbility.TargetType
- All Implemented Interfaces:
- Serializable, Comparable<MarsAbility.TargetType>
- Enclosing class:
- MarsAbility
public static enum MarsAbility.TargetType
- extends Enum<MarsAbility.TargetType>
UNINIT
public static final MarsAbility.TargetType UNINIT
NONE
public static final MarsAbility.TargetType NONE
ENEMY
public static final MarsAbility.TargetType ENEMY
FRIEND
public static final MarsAbility.TargetType FRIEND
GROUP
public static final MarsAbility.TargetType GROUP
SELF
public static final MarsAbility.TargetType SELF
AREA
public static final MarsAbility.TargetType AREA
values
public static MarsAbility.TargetType[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (MarsAbility.TargetType c : MarsAbility.TargetType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static MarsAbility.TargetType valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (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 type has no constant
with the specified name
NullPointerException - if the argument is null