Interface IAbilityCutter

  • All Superinterfaces:
    IAbility, IAbilityAction

    public interface IAbilityCutter
    extends IAbility
    API interface for Cutter abilities. Sweeping fan attack in an arc.
    • 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.