Package net.minecraft.util
Class FileNameUtil
java.lang.Object
net.minecraft.util.FileNameUtil
public class FileNameUtil extends Object
-
Field Summary
Fields Modifier and Type Field Description private static PatternFILE_NAME_WITH_COUNTprivate static PatternRESERVED_WINDOWS_NAMES -
Constructor Summary
Constructors Constructor Description FileNameUtil() -
Method Summary
Modifier and Type Method Description static StringgetNextUniqueName(Path path, String name, String extension)static PathgetResourcePath(Path path, String resourceName, String extension)static booleanisAllowedName(Path path)static booleanisNormal(Path path)
-
Field Details
-
FILE_NAME_WITH_COUNT
-
RESERVED_WINDOWS_NAMES
-
-
Constructor Details
-
FileNameUtil
public FileNameUtil()
-
-
Method Details
-
getNextUniqueName
@Environment(CLIENT) public static String getNextUniqueName(Path path, String name, String extension) throws IOException- Throws:
IOException
-
isNormal
-
isAllowedName
-
getResourcePath
-