Class FollowTargetGoal

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

public class FollowTargetGoal extends GoalSelector
  • Constructor Details

    • FollowTargetGoal

      public FollowTargetGoal(@NotNull @NotNull EntityCreature entityCreature, @NotNull @NotNull Duration pathDuration)
      Creates a follow target goal object.
      Parameters:
      entityCreature - the entity
      pathDuration - the time between each path update (to check if the target moved)
  • Method Details