Uses of Enum Class
net.neoforged.neoforge.common.damagesource.DamageContainer.Reduction
Packages that use DamageContainer.Reduction
Package
Description
-
Uses of DamageContainer.Reduction in net.neoforged.neoforge.common.damagesource
Fields in net.neoforged.neoforge.common.damagesource with type parameters of type DamageContainer.ReductionModifier and TypeFieldDescriptionprivate final EnumMap
<DamageContainer.Reduction, List<IReductionFunction>> DamageContainer.reductionFunctions
private final EnumMap
<DamageContainer.Reduction, Float> DamageContainer.reductions
Methods in net.neoforged.neoforge.common.damagesource that return DamageContainer.ReductionModifier and TypeMethodDescriptionstatic DamageContainer.Reduction
Returns the enum constant of this class with the specified name.static DamageContainer.Reduction[]
DamageContainer.Reduction.values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods in net.neoforged.neoforge.common.damagesource with parameters of type DamageContainer.ReductionModifier and TypeMethodDescriptionvoid
DamageContainer.addModifier
(DamageContainer.Reduction type, IReductionFunction reductionFunction) Adds a callback modifier to the vanilla damage reductions.float
DamageContainer.getReduction
(DamageContainer.Reduction type) This provides a post-reduction value for the reduction and modifiers.private float
DamageContainer.modifyReduction
(DamageContainer.Reduction type, float reduction) void
DamageContainer.setReduction
(DamageContainer.Reduction reduction, float amount) -
Uses of DamageContainer.Reduction in net.neoforged.neoforge.event.entity.living
Fields in net.neoforged.neoforge.event.entity.living with type parameters of type DamageContainer.ReductionModifier and TypeFieldDescriptionprivate final EnumMap
<DamageContainer.Reduction, Float> LivingDamageEvent.Post.reductions
Methods in net.neoforged.neoforge.event.entity.living with parameters of type DamageContainer.ReductionModifier and TypeMethodDescriptionvoid
LivingIncomingDamageEvent.addReductionModifier
(DamageContainer.Reduction type, IReductionFunction reductionFunc) Reduction modifiers alter the vanilla damage reduction before it modifies the damage value.float
LivingDamageEvent.Post.getReduction
(DamageContainer.Reduction reduction)