Interface IAbilitySweeper

  • All Superinterfaces:
    IAbility, IAbilityAction

    public interface IAbilitySweeper
    extends IAbility
    API interface for Sweeper abilities. Low sweeping beam that rotates around the NPC.
    • Method Detail

      • getBeamLength

        float getBeamLength()
        Returns:
        Length of the sweeping beam in blocks.
      • setBeamLength

        void setBeamLength​(float length)
        Parameters:
        length - Beam length in blocks.
      • getBeamWidth

        float getBeamWidth()
        Returns:
        Width of the sweeping beam in blocks.
      • setBeamWidth

        void setBeamWidth​(float width)
        Parameters:
        width - Beam width in blocks.
      • getBeamHeight

        float getBeamHeight()
        Returns:
        Height of the sweeping beam in blocks.
      • setBeamHeight

        void setBeamHeight​(float height)
        Parameters:
        height - Beam height in blocks.
      • getDamage

        float getDamage()
        Returns:
        Damage dealt per hit to entities caught in the beam.
      • setDamage

        void setDamage​(float damage)
        Parameters:
        damage - Damage per hit.
      • getDamageInterval

        int getDamageInterval()
        Returns:
        Interval in ticks between damage applications to the same target.
      • setDamageInterval

        void setDamageInterval​(int interval)
        Parameters:
        interval - Damage interval in ticks.
      • isPiercing

        boolean isPiercing()
        Returns:
        Whether the beam can hit through multiple targets.
      • setPiercing

        void setPiercing​(boolean piercing)
        Parameters:
        piercing - Whether the beam pierces through targets.
      • getSweepSpeed

        float getSweepSpeed()
        Returns:
        Rotation speed of the sweep in degrees per tick.
      • setSweepSpeed

        void setSweepSpeed​(float speed)
        Parameters:
        speed - Sweep rotation speed in degrees per tick.
      • getNumberOfRotations

        int getNumberOfRotations()
        Returns:
        Number of full rotations the beam completes before stopping.
      • setNumberOfRotations

        void setNumberOfRotations​(int rotations)
        Parameters:
        rotations - Number of full rotations.
      • isLockOnTarget

        boolean isLockOnTarget()
        Returns:
        Whether the beam pivot tracks the target instead of rotating freely.
      • setLockOnTarget

        void setLockOnTarget​(boolean lock)
        Parameters:
        lock - Whether the beam locks on to the target.
      • getInnerColor

        int getInnerColor()
        Returns:
        Inner (core) color of the beam as a packed RGB integer.
      • setInnerColor

        void setInnerColor​(int color)
        Parameters:
        color - Inner color as a packed RGB integer.
      • getOuterColor

        int getOuterColor()
        Returns:
        Outer (glow) color of the beam as a packed RGB integer.
      • setOuterColor

        void setOuterColor​(int color)
        Parameters:
        color - Outer color as a packed RGB integer.
      • getOuterColorWidth

        float getOuterColorWidth()
        Returns:
        Width of the outer color layer relative to the beam width.
      • setOuterColorWidth

        void setOuterColorWidth​(float width)
        Parameters:
        width - Outer color layer width.
      • isOuterColorEnabled

        boolean isOuterColorEnabled()
        Returns:
        Whether the outer color layer is rendered.
      • setOuterColorEnabled

        void setOuterColorEnabled​(boolean enabled)
        Parameters:
        enabled - Whether to render the outer color layer.