Package noppes.npcs.api.ability.type
Interface IAbilityDash
-
- All Superinterfaces:
IAbility,IAbilityAction
public interface IAbilityDash extends IAbility
API interface for Dash abilities. Quick evasive sidestep movement.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description floatgetDashAngle()intgetDashDirection()floatgetDashDistance()intgetDashMode()floatgetDashSpeed()voidsetDashAngle(float dashAngle)voidsetDashDirection(int mode)voidsetDashDistance(float distance)voidsetDashMode(int mode)voidsetDashSpeed(float speed)-
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
-
getDashMode
int getDashMode()
- Returns:
- Dash mode ordinal (0=AGGRESSIVE, 1=DEFENSIVE, 2=DIRECTIONAL).
-
setDashMode
void setDashMode(int mode)
- Parameters:
mode- Dash mode ordinal (0=AGGRESSIVE, 1=DEFENSIVE, 2=DIRECTIONAL).
-
getDashDistance
float getDashDistance()
- Returns:
- Distance covered by the dash in blocks.
-
setDashDistance
void setDashDistance(float distance)
- Parameters:
distance- Dash distance in blocks.
-
getDashSpeed
float getDashSpeed()
- Returns:
- Speed of the dash movement.
-
setDashSpeed
void setDashSpeed(float speed)
- Parameters:
speed- Dash movement speed.
-
getDashAngle
float getDashAngle()
- Returns:
- Angle offset of the dash direction in degrees.
-
setDashAngle
void setDashAngle(float dashAngle)
- Parameters:
dashAngle- Direction angle offset in degrees.
-
getDashDirection
int getDashDirection()
- Returns:
- Dash direction ordinal (determines lateral movement direction).
-
setDashDirection
void setDashDirection(int mode)
- Parameters:
mode- Dash direction ordinal.
-
-