Package net.minecraft.util
Class FileNameUtil
java.lang.Object
net.minecraft.util.FileNameUtil
public class FileNameUtil extends Object
- Mappings:
Namespace Name official s
intermediary net/minecraft/class_4239
named net/minecraft/util/FileNameUtil
-
Field Summary
Fields Modifier and Type Field Description private static Pattern
FILE_NAME_WITH_COUNT
private static Pattern
RESERVED_WINDOWS_NAMES
-
Constructor Summary
Constructors Constructor Description FileNameUtil()
-
Method Summary
Modifier and Type Method Description static String
getNextUniqueName(Path path, String name, String extension)
static Path
getResourcePath(Path path, String resourceName, String extension)
static boolean
isAllowedName(Path path)
static boolean
isNormal(Path path)
-
Field Details
-
FILE_NAME_WITH_COUNT
- Mappings:
Namespace Name Mixin selector official a
Ls;a:Ljava/util/regex/Pattern;
intermediary field_18956
Lnet/minecraft/class_4239;field_18956:Ljava/util/regex/Pattern;
named FILE_NAME_WITH_COUNT
Lnet/minecraft/util/FileNameUtil;FILE_NAME_WITH_COUNT:Ljava/util/regex/Pattern;
-
RESERVED_WINDOWS_NAMES
- Mappings:
Namespace Name Mixin selector official b
Ls;b:Ljava/util/regex/Pattern;
intermediary field_18955
Lnet/minecraft/class_4239;field_18955:Ljava/util/regex/Pattern;
named RESERVED_WINDOWS_NAMES
Lnet/minecraft/util/FileNameUtil;RESERVED_WINDOWS_NAMES:Ljava/util/regex/Pattern;
-
-
Constructor Details
-
FileNameUtil
public FileNameUtil()
-
-
Method Details
-
getNextUniqueName
@Environment(CLIENT) public static String getNextUniqueName(Path path, String name, String extension) throws IOException- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Ls;a(Ljava/nio/file/Path;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
intermediary method_19773
Lnet/minecraft/class_4239;method_19773(Ljava/nio/file/Path;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
named getNextUniqueName
Lnet/minecraft/util/FileNameUtil;getNextUniqueName(Ljava/nio/file/Path;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
-
isNormal
- Mappings:
Namespace Name Mixin selector official a
Ls;a(Ljava/nio/file/Path;)Z
intermediary method_20200
Lnet/minecraft/class_4239;method_20200(Ljava/nio/file/Path;)Z
named isNormal
Lnet/minecraft/util/FileNameUtil;isNormal(Ljava/nio/file/Path;)Z
-
isAllowedName
- Mappings:
Namespace Name Mixin selector official b
Ls;b(Ljava/nio/file/Path;)Z
intermediary method_20201
Lnet/minecraft/class_4239;method_20201(Ljava/nio/file/Path;)Z
named isAllowedName
Lnet/minecraft/util/FileNameUtil;isAllowedName(Ljava/nio/file/Path;)Z
-
getResourcePath
- Mappings:
Namespace Name Mixin selector official b
Ls;b(Ljava/nio/file/Path;Ljava/lang/String;Ljava/lang/String;)Ljava/nio/file/Path;
intermediary method_20202
Lnet/minecraft/class_4239;method_20202(Ljava/nio/file/Path;Ljava/lang/String;Ljava/lang/String;)Ljava/nio/file/Path;
named getResourcePath
Lnet/minecraft/util/FileNameUtil;getResourcePath(Ljava/nio/file/Path;Ljava/lang/String;Ljava/lang/String;)Ljava/nio/file/Path;
-