Class LinkFileSystem
java.lang.Object
java.nio.file.FileSystem
net.minecraft.server.packs.linkfs.LinkFileSystem
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class(package private) static final record -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprivate static final Splitterprivate final FileSystemProviderprivate final LinkFSPathprivate final FileStore -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LinkFileSystem.Builderbuilder()private static LinkFSPathbuildPath(LinkFileSystem.DirectoryEntry pDirectory, LinkFileSystem pFileSystem, String pName, LinkFSPath pParent) voidclose()getPathMatcher(String pSyntaxAndPattern) booleanisOpen()booleanprovider()rootPath()store()
-
Field Details
-
VIEWS
-
PATH_SEPARATOR
- See Also:
-
PATH_SPLITTER
-
store
-
provider
-
root
-
-
Constructor Details
-
LinkFileSystem
LinkFileSystem(String pName, LinkFileSystem.DirectoryEntry pRoot)
-
-
Method Details
-
buildPath
private static LinkFSPath buildPath(LinkFileSystem.DirectoryEntry pDirectory, LinkFileSystem pFileSystem, String pName, @Nullable LinkFSPath pParent) -
provider
- Specified by:
providerin classFileSystem
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classFileSystem
-
isOpen
public boolean isOpen()- Specified by:
isOpenin classFileSystem
-
isReadOnly
public boolean isReadOnly()- Specified by:
isReadOnlyin classFileSystem
-
getSeparator
- Specified by:
getSeparatorin classFileSystem
-
getRootDirectories
- Specified by:
getRootDirectoriesin classFileSystem
-
getFileStores
- Specified by:
getFileStoresin classFileSystem
-
supportedFileAttributeViews
- Specified by:
supportedFileAttributeViewsin classFileSystem
-
getPath
- Specified by:
getPathin classFileSystem
-
getPathMatcher
- Specified by:
getPathMatcherin classFileSystem
-
getUserPrincipalLookupService
- Specified by:
getUserPrincipalLookupServicein classFileSystem
-
newWatchService
- Specified by:
newWatchServicein classFileSystem
-
store
-
rootPath
-
builder
-