Package org.rspeer.game.effect
Enum Hitsplat.Type
- java.lang.Object
-
- java.lang.Enum<Hitsplat.Type>
-
- org.rspeer.game.effect.Hitsplat.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<Hitsplat.Type>
- Enclosing class:
- Hitsplat
public static enum Hitsplat.Type extends Enum<Hitsplat.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLOCK_LOCAL
BLOCK_OTHER
DAMAGE_LOCAL
DAMAGE_OTHER
DISEASE
HEAL
MAX_HIT_LOCAL
POISON
UNKNOWN
VENOM
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int[]
getIds()
boolean
isLocal()
static Hitsplat.Type
valueOf(int id)
Returns the enum constant of this type with the specified name.static Hitsplat.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static Hitsplat.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final Hitsplat.Type UNKNOWN
-
BLOCK_LOCAL
public static final Hitsplat.Type BLOCK_LOCAL
-
BLOCK_OTHER
public static final Hitsplat.Type BLOCK_OTHER
-
DAMAGE_LOCAL
public static final Hitsplat.Type DAMAGE_LOCAL
-
DAMAGE_OTHER
public static final Hitsplat.Type DAMAGE_OTHER
-
MAX_HIT_LOCAL
public static final Hitsplat.Type MAX_HIT_LOCAL
-
POISON
public static final Hitsplat.Type POISON
-
DISEASE
public static final Hitsplat.Type DISEASE
-
VENOM
public static final Hitsplat.Type VENOM
-
HEAL
public static final Hitsplat.Type HEAL
-
-
Method Detail
-
values
public static Hitsplat.Type[] 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 (Hitsplat.Type c : Hitsplat.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Hitsplat.Type 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
-
valueOf
public static Hitsplat.Type valueOf(int id)
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:
id
- 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
-
isLocal
public boolean isLocal()
-
getIds
public int[] getIds()
-
-