Enum Constant and Description |
---|
BURST_OF_STRENGTH |
CLARITY_OF_THOUGHT |
IMPROVED_REFLEXES |
INCREDIBLE_REFLEXES |
NOTHING |
PARALYZE_MONSTER |
PROTECT_FROM_MISSILES |
PROTECT_ITEMS |
RAPID_HEAL |
RAPID_RESTORE |
ROCK_SKIN |
STEEL_SKIN |
SUPERHUMAN_STRENGTH |
THICK_SKIN |
ULTIMATE_STRENGTH |
Modifier and Type | Method and Description |
---|---|
static PrayerId |
getById(java.lang.Integer id)
Retrieves the prayer NAME associated with the given id, or NOTHING if no mapping * exists for
the id.
|
static PrayerId |
getByName(java.lang.String name)
Retrieves a `PrayerId` int by its NAME.
|
int |
getId()
Retrieves the 'PrayerId' int by the prayer NAME.
For Example: 'int thickSkin = PrayerId.THICK_SKIN.getId()' |
static PrayerId |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PrayerId[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PrayerId NOTHING
public static final PrayerId THICK_SKIN
public static final PrayerId BURST_OF_STRENGTH
public static final PrayerId CLARITY_OF_THOUGHT
public static final PrayerId ROCK_SKIN
public static final PrayerId SUPERHUMAN_STRENGTH
public static final PrayerId IMPROVED_REFLEXES
public static final PrayerId RAPID_RESTORE
public static final PrayerId RAPID_HEAL
public static final PrayerId PROTECT_ITEMS
public static final PrayerId STEEL_SKIN
public static final PrayerId ULTIMATE_STRENGTH
public static final PrayerId INCREDIBLE_REFLEXES
public static final PrayerId PARALYZE_MONSTER
public static final PrayerId PROTECT_FROM_MISSILES
public static PrayerId[] values()
for (PrayerId c : PrayerId.values()) System.out.println(c);
public static PrayerId 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 PrayerId getById(java.lang.Integer id)
id
- the id of the PrayerId to retrievepublic static PrayerId getByName(java.lang.String name)
name
- the name of the prayer