Package noppes.npcs.api.ability.type
Interface IAbilityCutter
-
- All Superinterfaces:
IAbility,IAbilityAction
public interface IAbilityCutter extends IAbility
API interface for Cutter abilities. Sweeping fan attack in an arc.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description floatgetArcAngle()floatgetDamage()floatgetInnerRadius()floatgetKnockback()floatgetRange()intgetSpinDurationTicks()intgetSweepMode()floatgetSweepSpeed()booleanisPiercing()voidsetArcAngle(float angle)voidsetDamage(float damage)voidsetInnerRadius(float radius)voidsetKnockback(float knockback)voidsetPiercing(boolean piercing)voidsetRange(float range)voidsetSpinDurationTicks(int ticks)voidsetSweepMode(int mode)voidsetSweepSpeed(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
-
getArcAngle
float getArcAngle()
- Returns:
- Arc angle of the sweep in degrees.
-
setArcAngle
void setArcAngle(float angle)
- Parameters:
angle- Arc angle in degrees.
-
getRange
float getRange()
- Returns:
- Range of the sweep attack in blocks.
-
setRange
void setRange(float range)
- Parameters:
range- Sweep range in blocks.
-
getDamage
float getDamage()
- Returns:
- Damage dealt to entities hit by the sweep.
-
setDamage
void setDamage(float damage)
- Parameters:
damage- Sweep damage amount.
-
getKnockback
float getKnockback()
- Returns:
- Knockback strength applied to entities hit.
-
setKnockback
void setKnockback(float knockback)
- Parameters:
knockback- Knockback strength.
-
getSweepMode
int getSweepMode()
- Returns:
- Sweep mode ordinal (0=SWIPE, 1=SPIN).
-
setSweepMode
void setSweepMode(int mode)
- Parameters:
mode- Sweep mode ordinal (0=SWIPE, 1=SPIN).
-
getSweepSpeed
float getSweepSpeed()
- Returns:
- Speed of the sweep animation.
-
setSweepSpeed
void setSweepSpeed(float speed)
- Parameters:
speed- Sweep animation speed.
-
getSpinDurationTicks
int getSpinDurationTicks()
- Returns:
- Duration of the spin in ticks (only used in SPIN mode).
-
setSpinDurationTicks
void setSpinDurationTicks(int ticks)
- Parameters:
ticks- Spin duration in ticks.
-
isPiercing
boolean isPiercing()
- Returns:
- Whether the sweep hits through multiple targets.
-
setPiercing
void setPiercing(boolean piercing)
- Parameters:
piercing- Whether the sweep pierces through targets.
-
getInnerRadius
float getInnerRadius()
- Returns:
- Inner radius of the sweep arc in blocks (creates a donut-shaped hitbox).
-
setInnerRadius
void setInnerRadius(float radius)
- Parameters:
radius- Inner radius in blocks.
-
-