Enum Class DamageContainer.Reduction
java.lang.Object
java.lang.Enum<DamageContainer.Reduction>
net.neoforged.neoforge.common.damagesource.DamageContainer.Reduction
- All Implemented Interfaces:
Serializable
,Comparable<DamageContainer.Reduction>
,Constable
- Enclosing class:
DamageContainer
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDamage absorbed by absorption.Damage reduced from the effects of armor.Damage reduced from enchantments on armor.Damage reduced from post attack invulnerability.Damage reduced from active mob effects. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DamageContainer.Reduction
Returns the enum constant of this class with the specified name.static DamageContainer.Reduction[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INVULNERABILITY
Damage reduced from post attack invulnerability. -
ARMOR
Damage reduced from the effects of armor. -
ENCHANTMENTS
Damage reduced from enchantments on armor. -
MOB_EFFECTS
Damage reduced from active mob effects. -
ABSORPTION
Damage absorbed by absorption.
-
-
Constructor Details
-
Reduction
private Reduction()
-
-
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
-