Package noppes.npcs.api.ability.type
Interface IAbilityCharge
-
- All Superinterfaces:
IAbility,IAbilityAction
public interface IAbilityCharge extends IAbility
API interface for Charge abilities. Rush forward attack.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description floatgetChargeSpeed()floatgetDamage()floatgetHitWidth()floatgetKnockback()voidsetChargeSpeed(float speed)voidsetDamage(float damage)voidsetHitWidth(float width)voidsetKnockback(float knockback)-
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
-
getChargeSpeed
float getChargeSpeed()
- Returns:
- Movement speed during the charge in blocks per tick.
-
setChargeSpeed
void setChargeSpeed(float speed)
- Parameters:
speed- Movement speed in blocks per tick.
-
getDamage
float getDamage()
- Returns:
- Damage dealt to entities hit during the charge.
-
setDamage
void setDamage(float damage)
- Parameters:
damage- Damage on charge impact.
-
getKnockback
float getKnockback()
- Returns:
- Knockback strength applied to entities hit during the charge.
-
setKnockback
void setKnockback(float knockback)
- Parameters:
knockback- Knockback strength on impact.
-
getHitWidth
float getHitWidth()
- Returns:
- Width of the charge hit area in blocks.
-
setHitWidth
void setHitWidth(float width)
- Parameters:
width- Hit area width in blocks.
-
-