Enum Class DamageOrigin
- All Implemented Interfaces:
Serializable, Comparable<DamageOrigin>, java.lang.constant.Constable
What kind of thing is dealing the damage described by a
DamageRequest.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA follow-up effect of an earlier hit: bleeding, burning, thorns, area damage and the like.The world: falling, fire, drowning and so on.Anything else, such as a command or a plugin that does not fit the other origins.A skill or spell.A swing with the weapon in hand.A projectile launched from a weapon, such as an arrow or a thrown trident. -
Method Summary
Modifier and TypeMethodDescriptionstatic DamageOriginReturns the enum constant of this class with the specified name.static DamageOrigin[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WEAPON_MELEE
A swing with the weapon in hand. -
WEAPON_PROJECTILE
A projectile launched from a weapon, such as an arrow or a thrown trident. -
SKILL
A skill or spell. -
EFFECT
A follow-up effect of an earlier hit: bleeding, burning, thorns, area damage and the like. -
ENVIRONMENT
The world: falling, fire, drowning and so on. -
EXTERNAL
Anything else, such as a command or a plugin that does not fit the other origins.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-