LivingPostDamageEvent
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
import crafttweaker.neoforge.api.event.entity.living.LivingPostDamageEvent;
Extends
LivingPostDamageEvent extends LivingDamageEvent
.
Listening to the event
This event can be listened to like so:
events.register<crafttweaker.neoforge.api.event.entity.living.LivingPostDamageEvent>(event => { println("LivingPostDamageEvent ran!");});
Members
Getter
// Post.blockedDamage as floatevent.blockedDamage
Return Type:
float
Getter
// Post.entity as LivingEntityevent.entity
Return Type:
LivingEntity
Getter
getReduction(reduction as Reduction) as float
event.getReduction(myReduction);
Parameters:
reduction: DamageContainerReduction
Type: DamageContainerReduction
Return Type:
float
Getter
// Post.newDamage as floatevent.newDamage
Return Type:
float
Getter
// Post.originalDamage as floatevent.originalDamage
Return Type:
float
Getter
// Post.postAttackInvulnerabilityTicks as intevent.postAttackInvulnerabilityTicks
Return Type:
int
Getter
// Post.shieldDamage as floatevent.shieldDamage
Return Type:
float
Getter
// Post.source as DamageSourceevent.source
Return Type:
DamageSource