Package noppes.npcs.api.ability.type
Interface IAbilityDefend
-
- All Superinterfaces:
IAbility,IAbilityAction
- All Known Subinterfaces:
IAbilityCounter,IAbilityDodge,IAbilityGuard
public interface IAbilityDefend extends IAbility
API interface for defensive abilities (Guard, Counter, Dodge).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetDurationTicks()intgetMaxHitAmount()booleanisDefending()voidsetDurationTicks(int ticks)voidsetMaxHitAmount(int amount)-
Methods inherited from interface noppes.npcs.api.ability.IAbility
getAllowedByType, getBurstAmount, getBurstDelay, getCooldownTicks, getCurrentTick, getDazedTicks, getDisplayName, getId, getLockMovementType, getMagicData, getMaxRange, getMinRange, getName, getNbt, getPhaseInt, getRotationModeType, getRotationPhaseType, getToggleStateLabel, getToggleStates, getTrackSpeedValue, getTypeId, getWeight, getWindUpTicks, isBurstEnabled, isBurstOverlap, isBurstReplayAnimations, isEnabled, isExecuting, isIgnoreCooldown, isIgnoreIFrames, isInterruptible, isMovementLockedDuringActive, isMovementLockedDuringWindup, isPerAbilityCooldown, isRotationLockedDuringActive, isRotationLockedDuringWindup, isToggleable, setAllowedByType, setBurstAmount, setBurstDelay, setBurstEnabled, setBurstOverlap, setBurstReplayAnimations, setCooldownTicks, setDazedTicks, setDisplayName, setEnabled, setId, setIgnoreCooldown, setIgnoreIFrames, setInterruptible, setLockMovementType, setMaxRange, setMinRange, setName, setNbt, setPerAbilityCooldown, setRotationModeType, setRotationPhaseType, setToggleStates, setTrackSpeedValue, setWeight, setWindUpTicks
-
Methods inherited from interface noppes.npcs.api.ability.IAbilityAction
isChain
-
-
-
-
Method Detail
-
getDurationTicks
int getDurationTicks()
- Returns:
- Maximum duration of the defensive stance in ticks.
-
setDurationTicks
void setDurationTicks(int ticks)
- Parameters:
ticks- Maximum duration in ticks.
-
getMaxHitAmount
int getMaxHitAmount()
- Returns:
- Maximum number of hits that can be absorbed before the defense breaks.
-
setMaxHitAmount
void setMaxHitAmount(int amount)
- Parameters:
amount- Maximum hit count before breaking.
-
isDefending
boolean isDefending()
- Returns:
- Whether the entity is currently in a defensive stance.
-
-