Package cn.nukkit.event.entity
Enum Class EntityDamageEvent.DamageModifier
java.lang.Object
java.lang.Enum<EntityDamageEvent.DamageModifier>
cn.nukkit.event.entity.EntityDamageEvent.DamageModifier
- All Implemented Interfaces:
Serializable
,Comparable<EntityDamageEvent.DamageModifier>
,Constable
- Enclosing class:
- EntityDamageEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDamage reduction caused by the Damage absorption effectDamage reduction caused by wearing armorDamage reduction caused by the armor enchantments worn.Raw amount of damageDamage reduction caused by the Resistance potion effectAdditional damage caused by damager's Strength potion effectDamage reduction caused by damager's Weakness potion effect -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static EntityDamageEvent.DamageModifier[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BASE
Raw amount of damage -
ARMOR
Damage reduction caused by wearing armor -
STRENGTH
Additional damage caused by damager's Strength potion effect -
WEAKNESS
Damage reduction caused by damager's Weakness potion effect -
RESISTANCE
Damage reduction caused by the Resistance potion effect -
ABSORPTION
Damage reduction caused by the Damage absorption effect -
ARMOR_ENCHANTMENTS
Damage reduction caused by the armor enchantments worn.
-
-
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
-