Package org.rspeer.game.parameter
Enum NpcParameter
- java.lang.Object
-
- java.lang.Enum<NpcParameter>
-
- org.rspeer.game.parameter.NpcParameter
-
- All Implemented Interfaces:
Serializable,Comparable<NpcParameter>
public enum NpcParameter extends Enum<NpcParameter>
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetId()booleanisString()static NpcParametervalueOf(String name)Returns the enum constant of this type with the specified name.static NpcParameter[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STAB_ATTACK
public static final NpcParameter STAB_ATTACK
-
SLASH_ATTACK
public static final NpcParameter SLASH_ATTACK
-
CRUSH_ATTACK
public static final NpcParameter CRUSH_ATTACK
-
MAGIC_ATTACK
public static final NpcParameter MAGIC_ATTACK
-
RANGED_ATTACK
public static final NpcParameter RANGED_ATTACK
-
STAB_DEFENCE
public static final NpcParameter STAB_DEFENCE
-
SLASH_DEFENCE
public static final NpcParameter SLASH_DEFENCE
-
CRUSH_DEFENCE
public static final NpcParameter CRUSH_DEFENCE
-
MAGIC_DEFENCE
public static final NpcParameter MAGIC_DEFENCE
-
RANGED_DEFENCE
public static final NpcParameter RANGED_DEFENCE
-
MELEE_STRENGTH
public static final NpcParameter MELEE_STRENGTH
-
PRAYER_BONUS
public static final NpcParameter PRAYER_BONUS
-
RANGED_STRENGTH
public static final NpcParameter RANGED_STRENGTH
-
MAGIC_STRENGTH
public static final NpcParameter MAGIC_STRENGTH
-
ATTACK_RANGE
public static final NpcParameter ATTACK_RANGE
-
ATTACK_SPEED
public static final NpcParameter ATTACK_SPEED
-
ALWAYS_DROP_ID
public static final NpcParameter ALWAYS_DROP_ID
-
DRAGONBANE
public static final NpcParameter DRAGONBANE
-
GOLEMBANE
public static final NpcParameter GOLEMBANE
-
KALPHITE
public static final NpcParameter KALPHITE
-
-
Method Detail
-
values
public static NpcParameter[] 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 (NpcParameter c : NpcParameter.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NpcParameter 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 nameNullPointerException- if the argument is null
-
getId
public int getId()
-
isString
public boolean isString()
-
-