Interface IAbilityProjectile

  • All Superinterfaces:
    IAbility, IAbilityAction

    public interface IAbilityProjectile
    extends IAbility
    API interface for Projectile abilities. Ranged projectile attacks.
    • Method Detail

      • getDamage

        float getDamage()
        Returns:
        Base damage dealt on hit.
      • setDamage

        void setDamage​(float damage)
        Parameters:
        damage - Base damage on hit.
      • getSpeed

        float getSpeed()
        Returns:
        Travel speed of the projectile in blocks per tick.
      • setSpeed

        void setSpeed​(float speed)
        Parameters:
        speed - Travel speed in blocks per tick.
      • getKnockback

        float getKnockback()
        Returns:
        Knockback strength applied on hit.
      • setKnockback

        void setKnockback​(float knockback)
        Parameters:
        knockback - Knockback strength.
      • getProjectileType

        String getProjectileType()
        Returns:
        The projectile type identifier (e.g. arrow, snowball).
      • setProjectileType

        void setProjectileType​(String type)
        Parameters:
        type - Projectile type identifier.
      • isExplosive

        boolean isExplosive()
        Returns:
        Whether the projectile explodes on impact.
      • setExplosive

        void setExplosive​(boolean explosive)
        Parameters:
        explosive - Whether to explode on impact.
      • getExplosionRadius

        float getExplosionRadius()
        Returns:
        Explosion radius in blocks.
      • setExplosionRadius

        void setExplosionRadius​(float radius)
        Parameters:
        radius - Explosion radius in blocks.
      • isHoming

        boolean isHoming()
        Returns:
        Whether the projectile tracks its target.
      • setHoming

        void setHoming​(boolean homing)
        Parameters:
        homing - Whether to track the target.
      • getHomingStrength

        float getHomingStrength()
        Returns:
        Homing turn strength (higher = tighter turns).
      • setHomingStrength

        void setHomingStrength​(float strength)
        Parameters:
        strength - Homing turn strength.