Package noppes.npcs.api.ability.type
Interface IAbilityShockwave
-
- All Superinterfaces:
IAbility,IAbilityAction
public interface IAbilityShockwave extends IAbility
API interface for Shockwave abilities. Pushes targets away from the caster.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description floatgetDamage()floatgetPushRadius()floatgetPushStrength()booleanisAoe()voidsetAoe(boolean aoe)voidsetDamage(float damage)voidsetPushRadius(float radius)voidsetPushStrength(float strength)-
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
-
getPushRadius
float getPushRadius()
- Returns:
- Radius of the push effect in blocks.
-
setPushRadius
void setPushRadius(float radius)
- Parameters:
radius- Push radius in blocks.
-
getPushStrength
float getPushStrength()
- Returns:
- Strength of the outward push force.
-
setPushStrength
void setPushStrength(float strength)
- Parameters:
strength- Push force strength.
-
getDamage
float getDamage()
- Returns:
- Damage dealt to entities caught in the shockwave.
-
setDamage
void setDamage(float damage)
- Parameters:
damage- Shockwave damage.
-
isAoe
boolean isAoe()
- Returns:
- Whether the shockwave hits all entities in radius (true) or only the target (false).
-
setAoe
void setAoe(boolean aoe)
- Parameters:
aoe- Whether the shockwave is area-of-effect.
-
-