listAllWorldNames

public static Set<String> listAllWorldNames()

Lists every world-folder name visible at the legacy server root OR under the modern dimensions/minecraft directory. Insertion order is legacy first, then modern, deduplicated.