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 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