类 LinkFSPath
java.lang.Object
net.minecraft.server.packs.linkfs.LinkFSPath
-
字段概要
字段修饰符和类型字段说明private static final BasicFileAttributes
private static final BasicFileAttributes
private final LinkFileSystem
private final String
private final LinkFSPath
private static final Comparator<LinkFSPath>
private final PathContents
private String
-
构造器概要
构造器构造器说明LinkFSPath
(LinkFileSystem pFileSystem, String pName, LinkFSPath pParent, PathContents pPathContents) -
方法概要
修饰符和类型方法说明int
private LinkFSPath
createRelativePath
(LinkFSPath pParent, String pName) boolean
boolean
boolean
exists()
getName
(int pIndex) int
getRoot()
int
hashCode()
private boolean
boolean
private static boolean
isRelativeOrMissing
(PathContents pPathContents) private String
register
(WatchService pWatcher, WatchEvent.Kind<?>[] pEvents, WatchEvent.Modifier... pModifiers) relativize
(Path pPath) private LinkFSPath
(专用程序包) LinkFSPath
resolveName
(String pName) boolean
startsWith
(Path pPath) subpath
(int pStart, int pEnd) toFile()
private LinkFSPath
toLinkPath
(Path pPath) toRealPath
(LinkOption... pOptions) toString()
toUri()
从接口继承的方法 java.lang.Iterable
forEach, spliterator
从接口继承的方法 java.nio.file.Path
endsWith, iterator, register, resolve, resolveSibling, resolveSibling, startsWith
-
字段详细资料
-
DIRECTORY_ATTRIBUTES
-
FILE_ATTRIBUTES
-
PATH_COMPARATOR
-
name
-
fileSystem
-
parent
-
pathToRoot
-
pathString
-
pathContents
-
-
构造器详细资料
-
LinkFSPath
public LinkFSPath(LinkFileSystem pFileSystem, String pName, @Nullable LinkFSPath pParent, PathContents pPathContents)
-
-
方法详细资料
-
createRelativePath
-
getFileSystem
- 指定者:
getFileSystem
在接口中Path
-
isAbsolute
public boolean isAbsolute()- 指定者:
isAbsolute
在接口中Path
-
toFile
-
getRoot
-
getFileName
- 指定者:
getFileName
在接口中Path
-
getParent
-
getNameCount
public int getNameCount()- 指定者:
getNameCount
在接口中Path
-
pathToRoot
-
getName
-
subpath
-
startsWith
- 指定者:
startsWith
在接口中Path
-
endsWith
-
normalize
-
resolve
-
resolve
-
resolveName
-
isRelativeOrMissing
-
relativize
- 指定者:
relativize
在接口中Path
-
toUri
-
toAbsolutePath
- 指定者:
toAbsolutePath
在接口中Path
-
toRealPath
- 指定者:
toRealPath
在接口中Path
-
register
public WatchKey register(WatchService pWatcher, WatchEvent.Kind<?>[] pEvents, WatchEvent.Modifier... pModifiers) -
compareTo
- 指定者:
compareTo
在接口中Comparable<Path>
- 指定者:
compareTo
在接口中Path
-
equals
-
hasRealContents
private boolean hasRealContents() -
hashCode
public int hashCode() -
toString
-
pathToString
-
toLinkPath
-
exists
public boolean exists() -
getTargetPath
-
getDirectoryContents
-
getBasicAttributeView
-
getBasicAttributes
- 抛出:
IOException
-