Interface IAbilityEvent.HitEvent

    • Method Detail

      • getHitEntity

        IEntityLivingBase getHitEntity()
        Get the entity that was hit by the ability.
        Returns:
        the entity that was hit
      • getDamage

        float getDamage()
        Get the damage amount.
        Returns:
        the damage amount
      • setDamage

        void setDamage​(float damage)
        Set the damage amount. Allows scripts to modify damage.
        Parameters:
        damage - the new damage amount
      • getKnockback

        float getKnockback()
        Get the horizontal knockback amount.
        Returns:
        the knockback strength
      • setKnockback

        void setKnockback​(float knockback)
        Set the horizontal knockback amount.
        Parameters:
        knockback - the new knockback strength
      • getKnockbackUp

        float getKnockbackUp()
        Get the vertical knockback (upward force) amount.
        Returns:
        the upward knockback component
      • setKnockbackUp

        void setKnockbackUp​(float knockbackUp)
        Set the vertical knockback (upward force) amount.
        Parameters:
        knockbackUp - the new upward knockback component