Enum Constant and Description |
---|
ONTARGET |
ONUSER |
ONUSERORTARGET |
Modifier and Type | Method and Description |
---|---|
static BuffType |
fromString(java.lang.String id) |
boolean |
useTarget()
Checks if type allows to use buff on target
|
boolean |
useUser()
Checks if type allows to use buff on user
|
static BuffType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BuffType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BuffType ONUSER
public static final BuffType ONTARGET
public static final BuffType ONUSERORTARGET
public static BuffType[] values()
for (BuffType c : BuffType.values()) System.out.println(c);
public static BuffType 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 static BuffType fromString(java.lang.String id)
public boolean useTarget()
public boolean useUser()