Package net.minecraft.resource.fs
Class ResourcePath
java.lang.Object
net.minecraft.resource.fs.ResourcePath
- Mappings:
Namespace Name named net/minecraft/resource/fs/ResourcePathintermediary net/minecraft/class_7668official atw
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Comparator<ResourcePath> private static final BasicFileAttributesprivate final ResourceFileprivate static final BasicFileAttributesprivate final ResourceFileSystemprivate final Stringprivate final @Nullable ResourcePath -
Constructor Summary
ConstructorsConstructorDescriptionResourcePath(ResourceFileSystem fileSystem, String name, @Nullable ResourcePath parent, ResourceFile file) -
Method Summary
Modifier and TypeMethodDescriptionintbooleanboolean(package private) ResourcePathprivate ResourcePathgetName(int int2) intgetNames()private StringgetRoot()inthashCode()booleanprivate booleanisNormal()booleanprivate static booleanisSpecial(ResourceFile file) register(WatchService watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier[] modifiers) relativize(Path path) private ResourcePathrelativize(@Nullable ResourcePath path, String name) booleanstartsWith(Path other) subpath(int int2, int int3) toFile()toPath()toRealPath(LinkOption[] linkOption) private ResourcePathtoResourcePath(@Nullable Path path) toString()toUri()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface java.nio.file.Path
endsWith, iterator, register, resolve, resolveSibling, resolveSibling, startsWith
-
Field Details
-
DIRECTORY_ATTRIBUTES
- Mappings:
Namespace Name Mixin selector named DIRECTORY_ATTRIBUTESLnet/minecraft/resource/fs/ResourcePath;DIRECTORY_ATTRIBUTES:Ljava/nio/file/attribute/BasicFileAttributes;intermediary field_40013Lnet/minecraft/class_7668;field_40013:Ljava/nio/file/attribute/BasicFileAttributes;official aLatw;a:Ljava/nio/file/attribute/BasicFileAttributes;
-
FILE_ATTRIBUTES
- Mappings:
Namespace Name Mixin selector named FILE_ATTRIBUTESLnet/minecraft/resource/fs/ResourcePath;FILE_ATTRIBUTES:Ljava/nio/file/attribute/BasicFileAttributes;intermediary field_40014Lnet/minecraft/class_7668;field_40014:Ljava/nio/file/attribute/BasicFileAttributes;official bLatw;b:Ljava/nio/file/attribute/BasicFileAttributes;
-
COMPARATOR
- Mappings:
Namespace Name Mixin selector named COMPARATORLnet/minecraft/resource/fs/ResourcePath;COMPARATOR:Ljava/util/Comparator;intermediary field_40015Lnet/minecraft/class_7668;field_40015:Ljava/util/Comparator;official cLatw;c:Ljava/util/Comparator;
-
name
- Mappings:
Namespace Name Mixin selector named nameLnet/minecraft/resource/fs/ResourcePath;name:Ljava/lang/String;intermediary field_40016Lnet/minecraft/class_7668;field_40016:Ljava/lang/String;official dLatw;d:Ljava/lang/String;
-
fileSystem
- Mappings:
Namespace Name Mixin selector named fileSystemLnet/minecraft/resource/fs/ResourcePath;fileSystem:Lnet/minecraft/resource/fs/ResourceFileSystem;intermediary field_40017Lnet/minecraft/class_7668;field_40017:Lnet/minecraft/class_7670;official eLatw;e:Laty;
-
parent
- Mappings:
Namespace Name Mixin selector named parentLnet/minecraft/resource/fs/ResourcePath;parent:Lnet/minecraft/resource/fs/ResourcePath;intermediary field_40018Lnet/minecraft/class_7668;field_40018:Lnet/minecraft/class_7668;official fLatw;f:Latw;
-
names
- Mappings:
Namespace Name Mixin selector named namesLnet/minecraft/resource/fs/ResourcePath;names:Ljava/util/List;intermediary field_40019Lnet/minecraft/class_7668;field_40019:Ljava/util/List;official gLatw;g:Ljava/util/List;
-
pathString
- Mappings:
Namespace Name Mixin selector named pathStringLnet/minecraft/resource/fs/ResourcePath;pathString:Ljava/lang/String;intermediary field_40020Lnet/minecraft/class_7668;field_40020:Ljava/lang/String;official hLatw;h:Ljava/lang/String;
-
file
- Mappings:
Namespace Name Mixin selector named fileLnet/minecraft/resource/fs/ResourcePath;file:Lnet/minecraft/resource/fs/ResourceFile;intermediary field_40021Lnet/minecraft/class_7668;field_40021:Lnet/minecraft/class_7673;official iLatw;i:Latz;
-
-
Constructor Details
-
ResourcePath
public ResourcePath(ResourceFileSystem fileSystem, String name, @Nullable @Nullable ResourcePath parent, ResourceFile file) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/resource/fs/ResourcePath;<init>(Lnet/minecraft/resource/fs/ResourceFileSystem;Ljava/lang/String;Lnet/minecraft/resource/fs/ResourcePath;Lnet/minecraft/resource/fs/ResourceFile;)Vintermediary <init>Lnet/minecraft/class_7668;<init>(Lnet/minecraft/class_7670;Ljava/lang/String;Lnet/minecraft/class_7668;Lnet/minecraft/class_7673;)Vofficial <init>Latw;<init>(Laty;Ljava/lang/String;Latw;Latz;)V
-
-
Method Details
-
relativize
- Mappings:
Namespace Name Mixin selector named relativizeLnet/minecraft/resource/fs/ResourcePath;relativize(Lnet/minecraft/resource/fs/ResourcePath;Ljava/lang/String;)Lnet/minecraft/resource/fs/ResourcePath;intermediary method_45217Lnet/minecraft/class_7668;method_45217(Lnet/minecraft/class_7668;Ljava/lang/String;)Lnet/minecraft/class_7668;official aLatw;a(Latw;Ljava/lang/String;)Latw;
-
getFileSystem
- Specified by:
getFileSystemin interfacePath- Mappings:
Namespace Name Mixin selector named getFileSystemLnet/minecraft/resource/fs/ResourcePath;getFileSystem()Lnet/minecraft/resource/fs/ResourceFileSystem;intermediary method_45214Lnet/minecraft/class_7668;method_45214()Lnet/minecraft/class_7670;official aLatw;a()Laty;
-
isAbsolute
public boolean isAbsolute()- Specified by:
isAbsolutein interfacePath
-
toFile
-
getRoot
- Specified by:
getRootin interfacePath- Mappings:
Namespace Name Mixin selector named getRootLnet/minecraft/resource/fs/ResourcePath;getRoot()Lnet/minecraft/resource/fs/ResourcePath;intermediary method_45223Lnet/minecraft/class_7668;method_45223()Lnet/minecraft/class_7668;official bLatw;b()Latw;
-
getFileName
- Specified by:
getFileNamein interfacePath- Mappings:
Namespace Name Mixin selector named getFileNameLnet/minecraft/resource/fs/ResourcePath;getFileName()Lnet/minecraft/resource/fs/ResourcePath;intermediary method_45225Lnet/minecraft/class_7668;method_45225()Lnet/minecraft/class_7668;official cLatw;c()Latw;
-
getParent
- Specified by:
getParentin interfacePath- Mappings:
Namespace Name Mixin selector named getParentLnet/minecraft/resource/fs/ResourcePath;getParent()Lnet/minecraft/resource/fs/ResourcePath;intermediary method_45227Lnet/minecraft/class_7668;method_45227()Lnet/minecraft/class_7668;official dLatw;d()Latw;
-
getNameCount
public int getNameCount()- Specified by:
getNameCountin interfacePath
-
getNames
- Mappings:
Namespace Name Mixin selector named getNamesLnet/minecraft/resource/fs/ResourcePath;getNames()Ljava/util/List;intermediary method_45235Lnet/minecraft/class_7668;method_45235()Ljava/util/List;official lLatw;l()Ljava/util/List;
-
getName
- Specified by:
getNamein interfacePath- Mappings:
Namespace Name Mixin selector named getNameLnet/minecraft/resource/fs/ResourcePath;getName(I)Lnet/minecraft/resource/fs/ResourcePath;intermediary method_45215Lnet/minecraft/class_7668;method_45215(I)Lnet/minecraft/class_7668;official aLatw;a(I)Latw;
-
subpath
- Specified by:
subpathin interfacePath- Mappings:
Namespace Name Mixin selector named subpathLnet/minecraft/resource/fs/ResourcePath;subpath(II)Lnet/minecraft/resource/fs/ResourcePath;intermediary method_45216Lnet/minecraft/class_7668;method_45216(II)Lnet/minecraft/class_7668;official aLatw;a(II)Latw;
-
startsWith
- Specified by:
startsWithin interfacePath- Mappings:
Namespace Name Mixin selector named startsWithLnet/minecraft/resource/fs/ResourcePath;startsWith(Ljava/nio/file/Path;)Zintermediary startsWithLnet/minecraft/class_7668;startsWith(Ljava/nio/file/Path;)Zofficial startsWithLatw;startsWith(Ljava/nio/file/Path;)Z
-
endsWith
- Specified by:
endsWithin interfacePath- Mappings:
Namespace Name Mixin selector named endsWithLnet/minecraft/resource/fs/ResourcePath;endsWith(Ljava/nio/file/Path;)Zintermediary endsWithLnet/minecraft/class_7668;endsWith(Ljava/nio/file/Path;)Zofficial endsWithLatw;endsWith(Ljava/nio/file/Path;)Z
-
normalize
- Specified by:
normalizein interfacePath- Mappings:
Namespace Name Mixin selector named normalizeLnet/minecraft/resource/fs/ResourcePath;normalize()Lnet/minecraft/resource/fs/ResourcePath;intermediary method_45228Lnet/minecraft/class_7668;method_45228()Lnet/minecraft/class_7668;official eLatw;e()Latw;
-
resolve
- Specified by:
resolvein interfacePath- Mappings:
Namespace Name Mixin selector named resolveLnet/minecraft/resource/fs/ResourcePath;resolve(Ljava/nio/file/Path;)Lnet/minecraft/resource/fs/ResourcePath;intermediary method_45220Lnet/minecraft/class_7668;method_45220(Ljava/nio/file/Path;)Lnet/minecraft/class_7668;official aLatw;a(Ljava/nio/file/Path;)Latw;
-
get
- Mappings:
Namespace Name Mixin selector named getLnet/minecraft/resource/fs/ResourcePath;get(Ljava/util/List;)Lnet/minecraft/resource/fs/ResourcePath;intermediary method_45221Lnet/minecraft/class_7668;method_45221(Ljava/util/List;)Lnet/minecraft/class_7668;official aLatw;a(Ljava/util/List;)Latw;
-
get
- Mappings:
Namespace Name Mixin selector named getLnet/minecraft/resource/fs/ResourcePath;get(Ljava/lang/String;)Lnet/minecraft/resource/fs/ResourcePath;intermediary method_45219Lnet/minecraft/class_7668;method_45219(Ljava/lang/String;)Lnet/minecraft/class_7668;official aLatw;a(Ljava/lang/String;)Latw;
-
isSpecial
- Mappings:
Namespace Name Mixin selector named isSpecialLnet/minecraft/resource/fs/ResourcePath;isSpecial(Lnet/minecraft/resource/fs/ResourceFile;)Zintermediary method_45218Lnet/minecraft/class_7668;method_45218(Lnet/minecraft/class_7673;)Zofficial aLatw;a(Latz;)Z
-
relativize
- Specified by:
relativizein interfacePath- Mappings:
Namespace Name Mixin selector named relativizeLnet/minecraft/resource/fs/ResourcePath;relativize(Ljava/nio/file/Path;)Lnet/minecraft/resource/fs/ResourcePath;intermediary method_45224Lnet/minecraft/class_7668;method_45224(Ljava/nio/file/Path;)Lnet/minecraft/class_7668;official bLatw;b(Ljava/nio/file/Path;)Latw;
-
toUri
-
toAbsolutePath
- Specified by:
toAbsolutePathin interfacePath- Mappings:
Namespace Name Mixin selector named toAbsolutePathLnet/minecraft/resource/fs/ResourcePath;toAbsolutePath()Lnet/minecraft/resource/fs/ResourcePath;intermediary method_45229Lnet/minecraft/class_7668;method_45229()Lnet/minecraft/class_7668;official fLatw;f()Latw;
-
toRealPath
- Specified by:
toRealPathin interfacePath- Mappings:
Namespace Name Mixin selector named toRealPathLnet/minecraft/resource/fs/ResourcePath;toRealPath([Ljava/nio/file/LinkOption;)Lnet/minecraft/resource/fs/ResourcePath;intermediary method_45222Lnet/minecraft/class_7668;method_45222([Ljava/nio/file/LinkOption;)Lnet/minecraft/class_7668;official aLatw;a([Ljava/nio/file/LinkOption;)Latw;
-
register
public WatchKey register(WatchService watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier[] modifiers) - Specified by:
registerin interfacePath- Specified by:
registerin interfaceWatchable- Mappings:
Namespace Name Mixin selector named registerLnet/minecraft/resource/fs/ResourcePath;register(Ljava/nio/file/WatchService;[Ljava/nio/file/WatchEvent$Kind;[Ljava/nio/file/WatchEvent$Modifier;)Ljava/nio/file/WatchKey;intermediary registerLnet/minecraft/class_7668;register(Ljava/nio/file/WatchService;[Ljava/nio/file/WatchEvent$Kind;[Ljava/nio/file/WatchEvent$Modifier;)Ljava/nio/file/WatchKey;official registerLatw;register(Ljava/nio/file/WatchService;[Ljava/nio/file/WatchEvent$Kind;[Ljava/nio/file/WatchEvent$Modifier;)Ljava/nio/file/WatchKey;
-
compareTo
- Specified by:
compareToin interfaceComparable<Path>- Specified by:
compareToin interfacePath- Mappings:
Namespace Name Mixin selector named compareToLnet/minecraft/resource/fs/ResourcePath;compareTo(Ljava/nio/file/Path;)Iintermediary compareToLnet/minecraft/class_7668;compareTo(Ljava/nio/file/Path;)Iofficial compareToLatw;compareTo(Ljava/nio/file/Path;)I
-
equals
- Specified by:
equalsin interfacePath- Overrides:
equalsin classObject- Mappings:
Namespace Name Mixin selector named equalsLnet/minecraft/resource/fs/ResourcePath;equals(Ljava/lang/Object;)Zintermediary equalsLnet/minecraft/class_7668;equals(Ljava/lang/Object;)Zofficial equalsLatw;equals(Ljava/lang/Object;)Z
-
isNormal
private boolean isNormal()- Mappings:
Namespace Name Mixin selector named isNormalLnet/minecraft/resource/fs/ResourcePath;isNormal()Zintermediary method_45236Lnet/minecraft/class_7668;method_45236()Zofficial mLatw;m()Z
-
hashCode
public int hashCode() -
toString
-
getPathString
- Mappings:
Namespace Name Mixin selector named getPathStringLnet/minecraft/resource/fs/ResourcePath;getPathString()Ljava/lang/String;intermediary method_45237Lnet/minecraft/class_7668;method_45237()Ljava/lang/String;official nLatw;n()Ljava/lang/String;
-
toResourcePath
- Mappings:
Namespace Name Mixin selector named toResourcePathLnet/minecraft/resource/fs/ResourcePath;toResourcePath(Ljava/nio/file/Path;)Lnet/minecraft/resource/fs/ResourcePath;intermediary method_45226Lnet/minecraft/class_7668;method_45226(Ljava/nio/file/Path;)Lnet/minecraft/class_7668;official cLatw;c(Ljava/nio/file/Path;)Latw;
-
isReadable
public boolean isReadable()- Mappings:
Namespace Name Mixin selector named isReadableLnet/minecraft/resource/fs/ResourcePath;isReadable()Zintermediary method_45230Lnet/minecraft/class_7668;method_45230()Zofficial gLatw;g()Z
-
toPath
- Mappings:
Namespace Name Mixin selector named toPathLnet/minecraft/resource/fs/ResourcePath;toPath()Ljava/nio/file/Path;intermediary method_45231Lnet/minecraft/class_7668;method_45231()Ljava/nio/file/Path;official hLatw;h()Ljava/nio/file/Path;
-
toDirectory
- Mappings:
Namespace Name Mixin selector named toDirectoryLnet/minecraft/resource/fs/ResourcePath;toDirectory()Lnet/minecraft/resource/fs/ResourceFile$Directory;intermediary method_45232Lnet/minecraft/class_7668;method_45232()Lnet/minecraft/class_7673$class_7674;official iLatw;i()Latz$a;
-
getAttributeView
- Mappings:
Namespace Name Mixin selector named getAttributeViewLnet/minecraft/resource/fs/ResourcePath;getAttributeView()Ljava/nio/file/attribute/BasicFileAttributeView;intermediary method_45233Lnet/minecraft/class_7668;method_45233()Ljava/nio/file/attribute/BasicFileAttributeView;official jLatw;j()Ljava/nio/file/attribute/BasicFileAttributeView;
-
getAttributes
- Throws:
IOException- Mappings:
Namespace Name Mixin selector named getAttributesLnet/minecraft/resource/fs/ResourcePath;getAttributes()Ljava/nio/file/attribute/BasicFileAttributes;intermediary method_45234Lnet/minecraft/class_7668;method_45234()Ljava/nio/file/attribute/BasicFileAttributes;official kLatw;k()Ljava/nio/file/attribute/BasicFileAttributes;
-