Package noppes.npcs.api.event
Interface IAbilityEvent.DefendEvent
-
- All Superinterfaces:
IAbilityEvent,ICustomNPCsEvent,INpcEvent
- Enclosing interface:
- IAbilityEvent
public static interface IAbilityEvent.DefendEvent extends IAbilityEvent
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface noppes.npcs.api.event.IAbilityEvent
IAbilityEvent.CompleteEvent, IAbilityEvent.DefendEvent, IAbilityEvent.ExecuteEvent, IAbilityEvent.HitEvent, IAbilityEvent.InterruptEvent, IAbilityEvent.StartEvent, IAbilityEvent.TickEvent, IAbilityEvent.ToggleEvent, IAbilityEvent.ToggleUpdateEvent
-
Nested classes/interfaces inherited from interface noppes.npcs.api.event.ICustomNPCsEvent
ICustomNPCsEvent.CNPCNaturalSpawnEvent, ICustomNPCsEvent.ScriptedCommandEvent
-
Nested classes/interfaces inherited from interface noppes.npcs.api.event.INpcEvent
INpcEvent.CollideEvent, INpcEvent.DamagedEvent, INpcEvent.DialogClosedEvent, INpcEvent.DialogEvent, INpcEvent.DiedEvent, INpcEvent.InitEvent, INpcEvent.InteractEvent, INpcEvent.KilledEntityEvent, INpcEvent.MeleeAttackEvent, INpcEvent.RangedLaunchedEvent, INpcEvent.SwingEvent, INpcEvent.TargetEvent, INpcEvent.TargetLostEvent, INpcEvent.TimerEvent, INpcEvent.UpdateEvent
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IEntityLivingBasegetAttacker()Get the entity that attacked during defend.floatgetDamage()Get the damage amount.IEntityLivingBasegetLastAttacker()voidsetDamage(float damage)Set the damage amount.-
Methods inherited from interface noppes.npcs.api.event.IAbilityEvent
getAbility, getEntity, getPlayer, getTarget, isNPC
-
Methods inherited from interface noppes.npcs.api.event.ICustomNPCsEvent
getHookName
-
-
-
-
Method Detail
-
getAttacker
IEntityLivingBase getAttacker()
Get the entity that attacked during defend.- Returns:
- the entity that was hit
-
getLastAttacker
IEntityLivingBase getLastAttacker()
-
getDamage
float getDamage()
Get the damage amount.- Returns:
- the damage amount
-
setDamage
void setDamage(float damage)
Set the damage amount. Allows scripts to modify damage.- Parameters:
damage- the new damage amount
-
-