Package noppes.npcs.api.ability.type
Interface IAbilityGuard
-
- All Superinterfaces:
IAbility,IAbilityAction,IAbilityDefend
public interface IAbilityGuard extends IAbilityDefend
API interface for Guard abilities. Defensive stance that reduces incoming damage.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description floatgetDamageReduction()voidsetDamageReduction(float reduction)-
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
-
getDamageReduction
float getDamageReduction()
- Returns:
- Damage reduction multiplier while guarding (0.0 = full block, 1.0 = no reduction).
-
setDamageReduction
void setDamageReduction(float reduction)
- Parameters:
reduction- Damage reduction multiplier (0.0 = full block, 1.0 = no reduction).
-
-