LivingPostDamageEvent
Link to livingpostdamageevent
The event is not cancelable.
The event does not have a result.
Importing the class
Link to importing-the-class
Importing the class is recommended for events, simply add this line to the top of your script file.
ZenScript Copyimport crafttweaker.neoforge.api.event.entity.living.LivingPostDamageEvent;
Listening to the event
Link to listening-to-the-event
ZenScript Copyevents.register<crafttweaker.neoforge.api.event.entity.living.LivingPostDamageEvent>(event => {
println("LivingPostDamageEvent ran!");
});
Supertype
Link to supertype
LivingPostDamageEvent extends LivingDamageEvent. That means all methods available in LivingDamageEvent are also available in LivingPostDamageEvent
Methods
Link to methods
Name: getReduction
Return Type: float
ZenScript CopyLivingPostDamageEvent.getReduction(reduction as DamageContainerReduction) as float
Parameter | Type |
---|---|
Parameter reduction | Type DamageContainerReduction |
Properties
Link to properties
Name | Type | Has Getter | Has Setter |
---|---|---|---|
Name blockedDamage | Type float | Has Getter true | Has Setter false |
Name newDamage | Type float | Has Getter true | Has Setter false |
Name originalDamage | Type float | Has Getter true | Has Setter false |
Name postAttackInvulnerabilityTicks | Type int | Has Getter true | Has Setter false |
Name shieldDamage | Type float | Has Getter true | Has Setter false |
Name source | Type DamageSource | Has Getter true | Has Setter false |