findClosestByPathDistance

Optional<EntityTypefindClosestByPathDistance()

Executes this query and gets the closest matching entity to our player, based on path distance (the distance it would take to actually walk there based on the surrounding obstacles/collision)

Return

the closest matching entity, or an empty optional if none matched