Class MeleeAttackGoal

java.lang.Object
net.minestom.server.entity.ai.GoalSelector
net.minestom.server.entity.ai.goal.MeleeAttackGoal

public class MeleeAttackGoal
extends GoalSelector
Attacks the entity's target (EntityCreature.getTarget()) OR the closest entity which can be targeted with the entity TargetSelector.