Interface IAbilityCharge

  • All Superinterfaces:
    IAbility, IAbilityAction

    public interface IAbilityCharge
    extends IAbility
    API interface for Charge abilities. Rush forward attack.
    • Method Detail

      • getChargeSpeed

        float getChargeSpeed()
        Returns:
        Movement speed during the charge in blocks per tick.
      • setChargeSpeed

        void setChargeSpeed​(float speed)
        Parameters:
        speed - Movement speed in blocks per tick.
      • getDamage

        float getDamage()
        Returns:
        Damage dealt to entities hit during the charge.
      • setDamage

        void setDamage​(float damage)
        Parameters:
        damage - Damage on charge impact.
      • getKnockback

        float getKnockback()
        Returns:
        Knockback strength applied to entities hit during the charge.
      • setKnockback

        void setKnockback​(float knockback)
        Parameters:
        knockback - Knockback strength on impact.
      • getHitWidth

        float getHitWidth()
        Returns:
        Width of the charge hit area in blocks.
      • setHitWidth

        void setHitWidth​(float width)
        Parameters:
        width - Hit area width in blocks.