Package net.neoforged.neoforge.common.damagesource


@ParametersAreNonnullByDefault package net.neoforged.neoforge.common.damagesource
  • Class
    Description
    DamageContainer encapsulates aspects of the entity damage sequence so that relevant context related to damage dealt is accessible throughout the entire sequence.
     
    An
    invalid reference
    IDeathMessageProvider
    is used by custom
    invalid reference
    DeathMessageType
    instances.
    This allows providing custom death messages based on the available parameters, instead of the hard-coded vanilla defaults.
    An IDeathMessageProvider is used by custom DeathMessageType instances.
    This allows providing custom death messages based on the available parameters, instead of the hard-coded vanilla defaults.
    An
    invalid reference
    IReductionFunction
    is used by
    invalid reference
    DamageContainer
    instances.
    This allows sequential modification of damage reduction values to be stored and later invoked before actual reductions are applied to the damage sequence.
    An IReductionFunction is used by DamageContainer instances.
    This allows sequential modification of damage reduction values to be stored and later invoked before actual reductions are applied to the damage sequence.
    An
    invalid reference
    IScalingFunction
    is used by custom
    invalid reference
    DamageScaling
    instances.
    This allows finer control over the actual scaling value, instead of the hard-coded vanilla defaults.
    An IScalingFunction is used by custom DamageScaling instances.
    This allows finer control over the actual scaling value, instead of the hard-coded vanilla defaults.