Class LinkFSPath
java.lang.Object
net.minecraft.server.packs.linkfs.LinkFSPath
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate 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
-
Constructor Summary
ConstructorsConstructorDescriptionLinkFSPath
(LinkFileSystem pFileSystem, String pName, LinkFSPath pParent, PathContents pPathContents) -
Method Summary
Modifier and TypeMethodDescriptionint
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
(package private) LinkFSPath
resolveName
(String pName) boolean
startsWith
(Path pPath) subpath
(int pStart, int pEnd) toFile()
private LinkFSPath
toLinkPath
(Path pPath) toRealPath
(LinkOption... pOptions) toString()
toUri()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods 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:
getFileSystem
in interfacePath
-
isAbsolute
public boolean isAbsolute()- Specified by:
isAbsolute
in interfacePath
-
toFile
-
getRoot
-
getFileName
- Specified by:
getFileName
in interfacePath
-
getParent
-
getNameCount
public int getNameCount()- Specified by:
getNameCount
in interfacePath
-
pathToRoot
-
getName
-
subpath
-
startsWith
- Specified by:
startsWith
in interfacePath
-
endsWith
-
normalize
-
resolve
-
resolve
-
resolveName
-
isRelativeOrMissing
-
relativize
- Specified by:
relativize
in interfacePath
-
toUri
-
toAbsolutePath
- Specified by:
toAbsolutePath
in interfacePath
-
toRealPath
- Specified by:
toRealPath
in interfacePath
-
register
public WatchKey register(WatchService pWatcher, WatchEvent.Kind<?>[] pEvents, WatchEvent.Modifier... pModifiers) -
compareTo
- Specified by:
compareTo
in interfaceComparable<Path>
- Specified by:
compareTo
in interfacePath
-
equals
-
hasRealContents
private boolean hasRealContents() -
hashCode
public int hashCode() -
toString
-
pathToString
-
toLinkPath
-
exists
public boolean exists() -
getTargetPath
-
getDirectoryContents
-
getBasicAttributeView
-
getBasicAttributes
- Throws:
IOException
-