mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-15 20:44:44 +00:00
AbilityDefend event
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user