Package noppes.npcs.api.ability.type
Interface IAbilityHeavyHit
-
- All Superinterfaces:
IAbility,IAbilityAction
public interface IAbilityHeavyHit extends IAbility
API interface for Heavy Hit abilities. AOE rectangle melee attack in front of the caster.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description floatgetDamage()floatgetHitLength()floatgetHitWidth()floatgetKnockback()voidsetDamage(float damage)voidsetHitLength(float hitLength)voidsetHitWidth(float hitWidth)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
-
getDamage
float getDamage()
- Returns:
- Damage dealt to entities in the hit area.
-
setDamage
void setDamage(float damage)
- Parameters:
damage- Damage amount.
-
getKnockback
float getKnockback()
- Returns:
- Knockback strength applied to entities hit.
-
setKnockback
void setKnockback(float knockback)
- Parameters:
knockback- Knockback strength.
-
getHitLength
float getHitLength()
- Returns:
- Length of the rectangular hit area in blocks (forward from caster).
-
setHitLength
void setHitLength(float hitLength)
- Parameters:
hitLength- Hit area length in blocks.
-
getHitWidth
float getHitWidth()
- Returns:
- Width of the rectangular hit area in blocks.
-
setHitWidth
void setHitWidth(float hitWidth)
- Parameters:
hitWidth- Hit area width in blocks.
-
-