Uses of Class
net.neoforged.neoforge.common.damagesource.DamageContainer
Packages that use DamageContainer
Package
Description
-
Uses of DamageContainer in net.minecraft.world.entity
Fields in net.minecraft.world.entity with type parameters of type DamageContainerModifier and TypeFieldDescriptionprotected Stack<DamageContainer> LivingEntity.damageContainersThis field stores information about damage dealt to this entity. -
Uses of DamageContainer in net.neoforged.neoforge.common
Methods in net.neoforged.neoforge.common with parameters of type DamageContainerModifier and TypeMethodDescriptionstatic LivingShieldBlockEventCommonHooks.onDamageBlock(LivingEntity blocker, DamageContainer container, boolean originalBlocked) Creates, posts, and returns aLivingShieldBlockEvent.static booleanCommonHooks.onEntityIncomingDamage(LivingEntity entity, DamageContainer container) Called after invulnerability checks inLivingEntity.hurt(DamageSource, float), this method creates and posts the first event in the LivingEntity damage sequence,LivingIncomingDamageEvent.static voidCommonHooks.onLivingDamagePost(LivingEntity entity, DamageContainer container) Creates and posts aLivingDamageEvent.Post.static floatCommonHooks.onLivingDamagePre(LivingEntity entity, DamageContainer container) Creates and posts anLivingDamageEvent.Pre. -
Uses of DamageContainer in net.neoforged.neoforge.common.damagesource
Methods in net.neoforged.neoforge.common.damagesource with parameters of type DamageContainerModifier and TypeMethodDescriptionfloatIReductionFunction.modify(DamageContainer container, float reductionIn) Consumes an existing reduction value and produces a modified value. -
Uses of DamageContainer in net.neoforged.neoforge.common.extensions
Methods in net.neoforged.neoforge.common.extensions with parameters of type DamageContainerModifier and TypeMethodDescriptiondefault voidILivingEntityExtension.onDamageTaken(DamageContainer damageContainer) Executes inLivingEntity.hurt(DamageSource, float)after all damage and effects have applied. -
Uses of DamageContainer in net.neoforged.neoforge.event.entity.living
Fields in net.neoforged.neoforge.event.entity.living declared as DamageContainerModifier and TypeFieldDescriptionprivate final DamageContainerLivingDamageEvent.Pre.containerprivate final DamageContainerLivingIncomingDamageEvent.containerprivate final DamageContainerLivingShieldBlockEvent.containerMethods in net.neoforged.neoforge.event.entity.living that return DamageContainerModifier and TypeMethodDescriptionLivingDamageEvent.Pre.getContainer()Returns theDamageContainerinstance for this damage sequence.LivingIncomingDamageEvent.getContainer()Returns the container for this damage sequence.LivingShieldBlockEvent.getDamageContainer()Constructors in net.neoforged.neoforge.event.entity.living with parameters of type DamageContainerModifierConstructorDescriptionLivingIncomingDamageEvent(LivingEntity entity, DamageContainer container) LivingShieldBlockEvent(LivingEntity blocker, DamageContainer container, boolean originalBlockedState) Post(LivingEntity entity, DamageContainer container) Pre(LivingEntity entity, DamageContainer container)