Package net.runelite.api
Enum Hitsplat.HitsplatType
- java.lang.Object
-
- java.lang.Enum<Hitsplat.HitsplatType>
-
- net.runelite.api.Hitsplat.HitsplatType
-
- All Implemented Interfaces:
Serializable
,Comparable<Hitsplat.HitsplatType>
- Enclosing class:
- Hitsplat
public static enum Hitsplat.HitsplatType extends Enum<Hitsplat.HitsplatType>
An enumeration of hitsplat types.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLOCK_ME
Blocking damage by me (blue).BLOCK_OTHER
Blocking damage by others (blue).DAMAGE_ME
Taking damage by me (red).DAMAGE_ME_CYAN
Taking damage by me (cyan).DAMAGE_ME_ORANGE
Taking damage by me (orange).DAMAGE_ME_WHITE
Taking damage by me (white).DAMAGE_ME_YELLOW
Taking damage by me (yellow).DAMAGE_OTHER
Taking damage by others (red).DAMAGE_OTHER_CYAN
Taking damage by others (cyan).DAMAGE_OTHER_ORANGE
Taking damage by others (orange).DAMAGE_OTHER_WHITE
Taking damage by others (white/black).DAMAGE_OTHER_YELLOW
Taking damage by others (yellow).DISEASE
Damage from disease (orange).HEAL
Healing (purple).POISON
Damage from poison (green).VENOM
Damage from venom (teal).
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Hitsplat.HitsplatType
fromInteger(int type)
Utility method that maps the type value to its respectiveHitsplat
value.static Hitsplat.HitsplatType
valueOf(String name)
Returns the enum constant of this type with the specified name.static Hitsplat.HitsplatType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BLOCK_ME
public static final Hitsplat.HitsplatType BLOCK_ME
Blocking damage by me (blue).
-
BLOCK_OTHER
public static final Hitsplat.HitsplatType BLOCK_OTHER
Blocking damage by others (blue).
-
DAMAGE_ME
public static final Hitsplat.HitsplatType DAMAGE_ME
Taking damage by me (red).
-
DAMAGE_OTHER
public static final Hitsplat.HitsplatType DAMAGE_OTHER
Taking damage by others (red).
-
DAMAGE_ME_CYAN
public static final Hitsplat.HitsplatType DAMAGE_ME_CYAN
Taking damage by me (cyan).
-
DAMAGE_OTHER_CYAN
public static final Hitsplat.HitsplatType DAMAGE_OTHER_CYAN
Taking damage by others (cyan).
-
DAMAGE_ME_ORANGE
public static final Hitsplat.HitsplatType DAMAGE_ME_ORANGE
Taking damage by me (orange).
-
DAMAGE_OTHER_ORANGE
public static final Hitsplat.HitsplatType DAMAGE_OTHER_ORANGE
Taking damage by others (orange).
-
DAMAGE_ME_YELLOW
public static final Hitsplat.HitsplatType DAMAGE_ME_YELLOW
Taking damage by me (yellow).
-
DAMAGE_OTHER_YELLOW
public static final Hitsplat.HitsplatType DAMAGE_OTHER_YELLOW
Taking damage by others (yellow).
-
DAMAGE_ME_WHITE
public static final Hitsplat.HitsplatType DAMAGE_ME_WHITE
Taking damage by me (white).
-
DAMAGE_OTHER_WHITE
public static final Hitsplat.HitsplatType DAMAGE_OTHER_WHITE
Taking damage by others (white/black).
-
POISON
public static final Hitsplat.HitsplatType POISON
Damage from poison (green).
-
VENOM
public static final Hitsplat.HitsplatType VENOM
Damage from venom (teal).
-
DISEASE
public static final Hitsplat.HitsplatType DISEASE
Damage from disease (orange).
-
HEAL
public static final Hitsplat.HitsplatType HEAL
Healing (purple).
-
-
Method Detail
-
values
public static Hitsplat.HitsplatType[] 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.HitsplatType c : Hitsplat.HitsplatType.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.HitsplatType 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
-
fromInteger
public static Hitsplat.HitsplatType fromInteger(int type)
Utility method that maps the type value to its respectiveHitsplat
value.- Parameters:
type
- the type value- Returns:
- hitsplat type
-
-