Class LinkFSPath
java.lang.Object
net.minecraft.server.packs.linkfs.LinkFSPath
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LinkFileSystemprivate final Stringprivate final @Nullable LinkFSPathprivate static final Comparator<LinkFSPath> private final PathContentsprivate @Nullable String -
Constructor Summary
ConstructorsConstructorDescriptionLinkFSPath(LinkFileSystem fileSystem, String name, @Nullable LinkFSPath parent, PathContents pathContents) -
Method Summary
Modifier and TypeMethodDescriptionintprivate LinkFSPathcreateRelativePath(@Nullable LinkFSPath parent, String name) booleanbooleanbooleanexists()@Nullable PathContents.DirectoryContentsgetName(int index) int@Nullable LinkFSPath@Nullable LinkFSPathgetRoot()@Nullable PathinthashCode()private booleanbooleanprivate static booleanisRelativeOrMissing(PathContents contents) private Stringregister(WatchService watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier... modifiers) relativize(Path other) private LinkFSPath(package private) LinkFSPathresolveName(String name) booleanstartsWith(Path other) subpath(int beginIndex, int endIndex) toFile()private LinkFSPathtoLinkPath(@Nullable Path path) toRealPath(LinkOption... options) toString()toUri()Methods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface Path
endsWith, iterator, register, resolve, resolve, resolve, resolveSibling, resolveSibling, startsWith
-
Field Details
-
PATH_COMPARATOR
-
name
-
fileSystem
-
parent
-
pathToRoot
-
pathString
-
pathContents
-
-
Constructor Details
-
LinkFSPath
public LinkFSPath(LinkFileSystem fileSystem, String name, @Nullable LinkFSPath parent, PathContents pathContents)
-
-
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 watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier... modifiers) -
compareTo
-
equals
-
hasRealContents
private boolean hasRealContents() -
hashCode
-
toString
-
pathToString
-
toLinkPath
-
exists
public boolean exists() -
getTargetPath
-
getDirectoryContents
-
getBasicAttributeView
-
getBasicAttributes
- Throws:
IOException
-