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.reductionFunctionsprivate final EnumMap<DamageContainer.Reduction, Float> DamageContainer.reductionsMethods in net.neoforged.neoforge.common.damagesource that return DamageContainer.ReductionModifier and TypeMethodDescriptionstatic DamageContainer.ReductionReturns 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 TypeMethodDescriptionvoidDamageContainer.addModifier(DamageContainer.Reduction type, IReductionFunction reductionFunction) Adds a callback modifier to the vanilla damage reductions.floatDamageContainer.getReduction(DamageContainer.Reduction type) This provides a post-reduction value for the reduction and modifiers.private floatDamageContainer.modifyReduction(DamageContainer.Reduction type, float reduction) voidDamageContainer.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.reductionsMethods in net.neoforged.neoforge.event.entity.living with parameters of type DamageContainer.ReductionModifier and TypeMethodDescriptionvoidLivingIncomingDamageEvent.addReductionModifier(DamageContainer.Reduction type, IReductionFunction reductionFunc) Reduction modifiers alter the vanilla damage reduction before it modifies the damage value.floatLivingDamageEvent.Post.getReduction(DamageContainer.Reduction reduction)