public enum EffectType extends java.lang.Enum<EffectType>
Enum Constant and Description |
---|
BENEFICIAL |
HARMFUL |
NEUTRAL |
Modifier and Type | Field and Description |
---|---|
private TextFormatting |
color |
Modifier and Type | Method and Description |
---|---|
TextFormatting |
getColor() |
static EffectType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EffectType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EffectType BENEFICIAL
public static final EffectType HARMFUL
public static final EffectType NEUTRAL
private final TextFormatting color
public static EffectType[] values()
for (EffectType c : EffectType.values()) System.out.println(c);
public static EffectType 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 TextFormatting getColor()