AbilityDefend event

This commit is contained in:
Vidal committed 2026-03-13 20:48:24 -03:00
1 parent f91e17ab3e
commit e7f363727e
1 file changed
+22
@@ -171,4 +171,26 @@ public interface IAbilityEvent extends INpcEvent {
*/
int getTick();
}
interface DefendEvent extends IAbilityEvent {
/**
* Get the entity that attacked during defend.
* @return the entity that was hit
*/
IEntityLivingBase getAttacker();
IEntityLivingBase getLastAttacker();
/**
* Get the damage amount.
* @return the damage amount
*/
float getDamage();
/**
* Set the damage amount. Allows scripts to modify damage.
* @param damage the new damage amount
*/
void setDamage(float damage);
}
}