net.minecraft.resource.fs

class ResourcePath

implements Path

net.minecraft.server.packs.linkfs.LinkFSPath
net.minecraft.class_7668
net.minecraft.resource.fs.ResourcePath

Field summary

Modifier and TypeField
private static final Comparator<ResourcePath>
PATH_COMPARATOR
field_40015
COMPARATOR
private final String
name
field_40016
name
private final ResourceFileSystem
fileSystem
field_40017
fileSystem
private final ResourcePath
parent
field_40018
parent
private List<String>
pathToRoot
field_40019
names
private String
pathString
field_40020
pathString
private final ResourceFile
pathContents
field_40021
file

Constructor summary

ModifierConstructor
public (ResourceFileSystem fileSystem, String name, ResourcePath parent, ResourceFile file)

Method summary

Modifier and TypeMethod
private ResourcePath
createRelativePath(LinkFSPath parent, String name)
method_45217(class_7668 arg0, String arg1)
relativize(ResourcePath path, String name)
public ResourceFileSystem
getFileSystem()
method_45214()
getFileSystem()
public boolean
isAbsolute()
public File
toFile()
public ResourcePath
getRoot()
method_45223()
getRoot()
public ResourcePath
getFileName()
method_45225()
getFileName()
public ResourcePath
getParent()
method_45227()
getParent()
public int
getNameCount()
private List<String>
pathToRoot()
method_45235()
getNames()
public ResourcePath
getName(int index)
method_45215(int arg0)
getName(int arg0)
public ResourcePath
subpath(int beginIndex, int endIndex)
method_45216(int arg0, int arg1)
subpath(int arg0, int arg1)
public boolean
startsWith(Path other)
startsWith(Path arg0)
startsWith(Path other)
public boolean
endsWith(Path other)
endsWith(Path arg0)
endsWith(Path other)
public ResourcePath
normalize()
method_45228()
normalize()
public ResourcePath
resolve(Path other)
method_45220(Path arg0)
resolve(Path arg0)
private ResourcePath
resolve(List<String> names)
method_45221(List<String> arg0)
get(List<String> paths)
ResourcePath
resolveName(String name)
method_45219(String arg0)
get(String name)
private static boolean
isRelativeOrMissing(PathContents contents)
method_45218(class_7673 arg0)
isSpecial(ResourceFile file)
public ResourcePath
relativize(Path other)
method_45224(Path arg0)
relativize(Path arg0)
public URI
toUri()
public ResourcePath
toAbsolutePath()
method_45229()
toAbsolutePath()
public ResourcePath
toRealPath(LinkOption... options)
method_45222(LinkOption... arg0)
toRealPath(LinkOption... arg0)
public WatchKey
register(WatchService watcher, WatchEvent$Kind<?>[] events, WatchEvent$Modifier... modifiers)
register(WatchService arg0, WatchEvent$Kind<?>[] arg1, WatchEvent$Modifier... arg2)
register(WatchService watcher, WatchEvent$Kind<?>[] events, WatchEvent$Modifier... modifiers)
public int
compareTo(Path other)
compareTo(Path arg0)
compareTo(Path arg0)
private boolean
hasRealContents()
method_45236()
isNormal()
private String
pathToString()
method_45237()
getPathString()
private ResourcePath
toLinkPath(Path path)
method_45226(Path arg0)
toResourcePath(Path path)
public boolean
exists()
method_45230()
isReadable()
public Path
getTargetPath()
method_45231()
toPath()
public ResourceFile$Directory
getDirectoryContents()
method_45232()
toDirectory()
public BasicFileAttributeView
getBasicAttributeView()
method_45233()
getAttributeView()
public BasicFileAttributes
getBasicAttributes()
method_45234()
getAttributes()
public Path
toRealPath(LinkOption[] options)
toRealPath(LinkOption[] arg0)
toRealPath(LinkOption[] options)
public Path
toAbsolutePath()
public Path
relativize(Path other)
relativize(Path arg0)
relativize(Path other)
public Path
resolve(Path other)
resolve(Path arg0)
resolve(Path other)
public Path
normalize()
public Path
subpath(int beginIndex, int endIndex)
subpath(int arg0, int arg1)
subpath(int beginIndex, int endIndex)
public Path
getName(int index)
getName(int arg0)
getName(int index)
public Path
getParent()
public Path
getFileName()
public Path
getRoot()
public FileSystem
getFileSystem()
public int
compareTo(Object other)
compareTo(Object arg0)
compareTo(Object other)