attack
Performs an attack on the specified living entity target. This method delegates the attack logic to the `damageableComponent` associated with the current entity. Use this method to simulate attacks against other living entities in the game.
Parameters
target
the LivingEntity that the current entity is attacking
Attacks the specified target entity with a specified amount of damage. This method delegates to the damageable component of the entity to apply the damage to the target.
Parameters
target
The target entity to be attacked.
damage
The amount of damage to deal to the target.