Class WorldUtil


  • public final class WorldUtil
    extends Object
    World utility methods
    • Method Detail

      • validateName

        public static boolean validateName​(@NotNull
                                           @NotNull String worldName)
        Check whether or not a world name is valid
        Parameters:
        worldName - World name
        Returns:
        True if the world name is valid, false if not
      • isSuitableImportCandidate

        public static boolean isSuitableImportCandidate​(String worldName,
                                                        WorldManager manager)
        Check whether or not a world is suitable to be imported.
        Parameters:
        worldName - World name.
        Returns:
        True of directory containing a level.dat file with the same name is found.