Class LinkFSPath
java.lang.Object
net.minecraft.server.packs.linkfs.LinkFSPath
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final BasicFileAttributesprivate static final BasicFileAttributesprivate final LinkFileSystemprivate final Stringprivate final LinkFSPathprivate static final Comparator<LinkFSPath> private final PathContentsprivate String -
Constructor Summary
ConstructorsConstructorDescriptionLinkFSPath(LinkFileSystem pFileSystem, String pName, LinkFSPath pParent, PathContents pPathContents) -
Method Summary
Modifier and TypeMethodDescriptionintprivate LinkFSPathcreateRelativePath(LinkFSPath pParent, String pName) booleanbooleanbooleanexists()getName(int pIndex) intgetRoot()inthashCode()private booleanbooleanprivate static booleanisRelativeOrMissing(PathContents pPathContents) private Stringregister(WatchService pWatcher, WatchEvent.Kind<?>[] pEvents, WatchEvent.Modifier... pModifiers) relativize(Path pPath) private LinkFSPath(package private) LinkFSPathresolveName(String pName) booleanstartsWith(Path pPath) subpath(int pStart, int pEnd) toFile()private LinkFSPathtoLinkPath(Path pPath) toRealPath(LinkOption... pOptions) toString()toUri()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface java.nio.file.Path
endsWith, iterator, register, resolve, resolveSibling, resolveSibling, startsWith
-
Field Details
-
DIRECTORY_ATTRIBUTES
-
FILE_ATTRIBUTES
-
PATH_COMPARATOR
-
name
-
fileSystem
-
parent
-
pathToRoot
-
pathString
-
pathContents
-
-
Constructor Details
-
LinkFSPath
public LinkFSPath(LinkFileSystem pFileSystem, String pName, @Nullable LinkFSPath pParent, PathContents pPathContents)
-
-
Method Details
-
createRelativePath
-
getFileSystem
- Specified by:
getFileSystemin interfacePath
-
isAbsolute
public boolean isAbsolute()- Specified by:
isAbsolutein interfacePath
-
toFile
-
getRoot
-
getFileName
- Specified by:
getFileNamein interfacePath
-
getParent
-
getNameCount
public int getNameCount()- Specified by:
getNameCountin interfacePath
-
pathToRoot
-
getName
-
subpath
-
startsWith
- Specified by:
startsWithin interfacePath
-
endsWith
-
normalize
-
resolve
-
resolve
-
resolveName
-
isRelativeOrMissing
-
relativize
- Specified by:
relativizein interfacePath
-
toUri
-
toAbsolutePath
- Specified by:
toAbsolutePathin interfacePath
-
toRealPath
- Specified by:
toRealPathin interfacePath
-
register
public WatchKey register(WatchService pWatcher, WatchEvent.Kind<?>[] pEvents, WatchEvent.Modifier... pModifiers) -
compareTo
- Specified by:
compareToin interfaceComparable<Path>- Specified by:
compareToin interfacePath
-
equals
-
hasRealContents
private boolean hasRealContents() -
hashCode
public int hashCode() -
toString
-
pathToString
-
toLinkPath
-
exists
public boolean exists() -
getTargetPath
-
getDirectoryContents
-
getBasicAttributeView
-
getBasicAttributes
- Throws:
IOException
-