Package noppes.npcs.api.ability.type
Interface IAbilityVortex
-
- All Superinterfaces:
IAbility,IAbilityAction
public interface IAbilityVortex extends IAbility
API interface for Vortex abilities. Pulls targets toward the caster.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description floatgetDamage()floatgetKnockback()floatgetPullDamage()floatgetPullRadius()floatgetPullStrength()booleanisAoe()booleanisDamageOnPull()voidsetAoe(boolean aoe)voidsetDamage(float damage)voidsetDamageOnPull(boolean damage)voidsetKnockback(float knockback)voidsetPullDamage(float damage)voidsetPullRadius(float radius)voidsetPullStrength(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
-
getPullRadius
float getPullRadius()
- Returns:
- Radius of the pull effect in blocks.
-
setPullRadius
void setPullRadius(float radius)
- Parameters:
radius- Pull effect radius in blocks.
-
getPullStrength
float getPullStrength()
- Returns:
- Strength of the inward pull force.
-
setPullStrength
void setPullStrength(float strength)
- Parameters:
strength- Pull force strength.
-
getDamage
float getDamage()
- Returns:
- Damage dealt on initial vortex hit.
-
setDamage
void setDamage(float damage)
- Parameters:
damage- Initial hit damage.
-
getKnockback
float getKnockback()
- Returns:
- Knockback strength applied on initial hit.
-
setKnockback
void setKnockback(float knockback)
- Parameters:
knockback- Knockback strength.
-
isAoe
boolean isAoe()
- Returns:
- Whether the vortex hits all entities in radius (true) or only the target (false).
-
setAoe
void setAoe(boolean aoe)
- Parameters:
aoe- Whether the vortex is area-of-effect.
-
isDamageOnPull
boolean isDamageOnPull()
- Returns:
- Whether continuous damage is dealt while pulling entities.
-
setDamageOnPull
void setDamageOnPull(boolean damage)
- Parameters:
damage- Whether to deal damage during pull.
-
getPullDamage
float getPullDamage()
- Returns:
- Damage dealt per tick while pulling entities.
-
setPullDamage
void setPullDamage(float damage)
- Parameters:
damage- Per-tick pull damage.
-
-