Package noppes.npcs.api.ability.type
Interface IAbilityCounter
-
- All Superinterfaces:
IAbility,IAbilityAction,IAbilityDefend
public interface IAbilityCounter extends IAbilityDefend
API interface for Counter abilities. Absorbs incoming damage and counter-attacks the attacker.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetCounterAnimationId()intgetCounterType()floatgetCounterValue()voidsetCounterAnimationId(int animationId)voidsetCounterType(int type)voidsetCounterValue(float value)-
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
-
Methods inherited from interface noppes.npcs.api.ability.type.IAbilityDefend
getDurationTicks, getMaxHitAmount, isDefending, setDurationTicks, setMaxHitAmount
-
-
-
-
Method Detail
-
getCounterType
int getCounterType()
- Returns:
- Counter-attack type ordinal (determines how counter damage is calculated).
-
setCounterType
void setCounterType(int type)
- Parameters:
type- Counter-attack type ordinal.
-
getCounterValue
float getCounterValue()
- Returns:
- Counter-attack value (meaning depends on counter type, e.g. flat damage or multiplier).
-
setCounterValue
void setCounterValue(float value)
- Parameters:
value- Counter-attack value (flat damage or multiplier).
-
getCounterAnimationId
int getCounterAnimationId()
- Returns:
- Animation ID played when the counter-attack triggers, or -1 for none.
-
setCounterAnimationId
void setCounterAnimationId(int animationId)
- Parameters:
animationId- Animation ID for the counter-attack, or -1 for none.
-
-