Package noppes.npcs.api.ability.type
Interface IAbilityEffect
-
- All Superinterfaces:
IAbility,IAbilityAction
public interface IAbilityEffect extends IAbility
API interface for Effect abilities. Applies healing, potion effects, custom effects, and mod-registered effect actions to self or nearby entities.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetCustomEffectCount()intgetDurationTicks()intgetEffectActionCount()floatgetHealAmount()floatgetHealPercent()floatgetRadius()intgetTargetFilterType()booleanisIncludeSelf()booleanisInstantHeal()voidsetDurationTicks(int ticks)voidsetHealAmount(float amount)voidsetHealPercent(float percent)voidsetIncludeSelf(boolean includeSelf)voidsetInstantHeal(boolean instant)voidsetRadius(float radius)voidsetTargetFilterType(int filter)-
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
-
getDurationTicks
int getDurationTicks()
- Returns:
- Duration of the effect in ticks.
-
setDurationTicks
void setDurationTicks(int ticks)
- Parameters:
ticks- Effect duration in ticks.
-
getHealAmount
float getHealAmount()
- Returns:
- Flat heal amount per tick (body HP).
-
setHealAmount
void setHealAmount(float amount)
- Parameters:
amount- Flat heal amount per tick.
-
getHealPercent
float getHealPercent()
- Returns:
- Heal amount as a percentage of max health per tick (0.0-100.0).
-
setHealPercent
void setHealPercent(float percent)
- Parameters:
percent- Heal percentage per tick (0.0-100.0).
-
isIncludeSelf
boolean isIncludeSelf()
- Returns:
- Whether the caster is also affected by the effect.
-
setIncludeSelf
void setIncludeSelf(boolean includeSelf)
- Parameters:
includeSelf- Whether to include the caster.
-
getRadius
float getRadius()
- Returns:
- Area-of-effect radius in blocks.
-
setRadius
void setRadius(float radius)
- Parameters:
radius- AoE radius in blocks.
-
isInstantHeal
boolean isInstantHeal()
- Returns:
- Whether healing is applied all at once instead of over time.
-
setInstantHeal
void setInstantHeal(boolean instant)
- Parameters:
instant- Whether healing is instant.
-
getTargetFilterType
int getTargetFilterType()
- Returns:
- Target filter type ordinal: 0=ALLIES, 1=ENEMIES, 2=ALL
-
setTargetFilterType
void setTargetFilterType(int filter)
- Parameters:
filter- Target filter type ordinal: 0=ALLIES, 1=ENEMIES, 2=ALL
-
getCustomEffectCount
int getCustomEffectCount()
- Returns:
- Number of configured custom effects (from CustomEffectController)
-
getEffectActionCount
int getEffectActionCount()
- Returns:
- Number of configured mod-registered effect actions
-
-