Class CopyOnWriteFSPath
java.lang.Object
net.minecraft.util.filefix.virtualfilesystem.CopyOnWriteFSPath
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CopyOnWriteFileSystemprivate final booleanprivate final Path -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateCopyOnWriteFSPath(Path path, CopyOnWriteFileSystem fs, boolean isAbsolute) -
Method Summary
Modifier and TypeMethodDescriptionprotected static CopyOnWriteFSPathintbooleanboolean@Nullable CopyOnWriteFSPathgetName(int index) int@Nullable CopyOnWriteFSPath@Nullable PathgetRoot()inthashCode()booleanprotected booleanisRoot()protected static CopyOnWriteFSPathof(CopyOnWriteFileSystem fs, String first, String... more) register(WatchService watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier... modifiers) relativize(Path other) booleanstartsWith(Path other) subpath(int beginIndex, int endIndex) toRealPath(LinkOption... options) toString()toUri()Methods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface Path
endsWith, iterator, register, resolve, resolveSibling, resolveSibling, startsWith, toFile
-
Field Details
-
path
-
fs
-
isAbsolute
private final boolean isAbsolute
-
-
Constructor Details
-
CopyOnWriteFSPath
-
-
Method Details
-
of
-
getFileSystem
- Specified by:
getFileSystemin interfacePath
-
isAbsolute
public boolean isAbsolute()- Specified by:
isAbsolutein interfacePath
-
getRoot
-
getFileName
- Specified by:
getFileNamein interfacePath
-
getParent
-
getNameCount
public int getNameCount()- Specified by:
getNameCountin interfacePath
-
getName
-
subpath
-
startsWith
- Specified by:
startsWithin interfacePath
-
endsWith
-
normalize
-
resolve
-
resolve
-
resolve
-
relativize
- Specified by:
relativizein interfacePath
-
toUri
-
toAbsolutePath
- Specified by:
toAbsolutePathin interfacePath
-
toRealPath
- Specified by:
toRealPathin interfacePath- Throws:
CowFSNoSuchFileException
-
register
public WatchKey register(WatchService watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier... modifiers) throws IOException - Specified by:
registerin interfacePath- Specified by:
registerin interfaceWatchable- Throws:
IOException
-
compareTo
-
toString
-
equals
-
hashCode
-
isRoot
protected boolean isRoot() -
asCow
-