Package net.minecraft.resource.fs
Class ResourcePath
java.lang.Object
net.minecraft.resource.fs.ResourcePath
- Mappings:
Namespace Name intermediary net/minecraft/class_7668official ajsnamed net/minecraft/resource/fs/ResourcePath
-
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 intermediary field_40013Lnet/minecraft/class_7668;field_40013:Ljava/nio/file/attribute/BasicFileAttributes;official aLajs;a:Ljava/nio/file/attribute/BasicFileAttributes;named DIRECTORY_ATTRIBUTESLnet/minecraft/resource/fs/ResourcePath;DIRECTORY_ATTRIBUTES:Ljava/nio/file/attribute/BasicFileAttributes;
-
FILE_ATTRIBUTES
- Mappings:
Namespace Name Mixin selector intermediary field_40014Lnet/minecraft/class_7668;field_40014:Ljava/nio/file/attribute/BasicFileAttributes;official bLajs;b:Ljava/nio/file/attribute/BasicFileAttributes;named FILE_ATTRIBUTESLnet/minecraft/resource/fs/ResourcePath;FILE_ATTRIBUTES:Ljava/nio/file/attribute/BasicFileAttributes;
-
COMPARATOR
- Mappings:
Namespace Name Mixin selector intermediary field_40015Lnet/minecraft/class_7668;field_40015:Ljava/util/Comparator;official cLajs;c:Ljava/util/Comparator;named COMPARATORLnet/minecraft/resource/fs/ResourcePath;COMPARATOR:Ljava/util/Comparator;
-
name
- Mappings:
Namespace Name Mixin selector intermediary field_40016Lnet/minecraft/class_7668;field_40016:Ljava/lang/String;official dLajs;d:Ljava/lang/String;named nameLnet/minecraft/resource/fs/ResourcePath;name:Ljava/lang/String;
-
fileSystem
- Mappings:
Namespace Name Mixin selector intermediary field_40017Lnet/minecraft/class_7668;field_40017:Lnet/minecraft/class_7670;official eLajs;e:Laju;named fileSystemLnet/minecraft/resource/fs/ResourcePath;fileSystem:Lnet/minecraft/resource/fs/ResourceFileSystem;
-
parent
- Mappings:
Namespace Name Mixin selector intermediary field_40018Lnet/minecraft/class_7668;field_40018:Lnet/minecraft/class_7668;official fLajs;f:Lajs;named parentLnet/minecraft/resource/fs/ResourcePath;parent:Lnet/minecraft/resource/fs/ResourcePath;
-
names
- Mappings:
Namespace Name Mixin selector intermediary field_40019Lnet/minecraft/class_7668;field_40019:Ljava/util/List;official gLajs;g:Ljava/util/List;named namesLnet/minecraft/resource/fs/ResourcePath;names:Ljava/util/List;
-
pathString
- Mappings:
Namespace Name Mixin selector intermediary field_40020Lnet/minecraft/class_7668;field_40020:Ljava/lang/String;official hLajs;h:Ljava/lang/String;named pathStringLnet/minecraft/resource/fs/ResourcePath;pathString:Ljava/lang/String;
-
file
- Mappings:
Namespace Name Mixin selector intermediary field_40021Lnet/minecraft/class_7668;field_40021:Lnet/minecraft/class_7673;official iLajs;i:Lajv;named fileLnet/minecraft/resource/fs/ResourcePath;file:Lnet/minecraft/resource/fs/ResourceFile;
-
-
Constructor Details
-
ResourcePath
public ResourcePath(ResourceFileSystem fileSystem, String name, @Nullable @Nullable ResourcePath parent, ResourceFile file) - Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_7668;<init>(Lnet/minecraft/class_7670;Ljava/lang/String;Lnet/minecraft/class_7668;Lnet/minecraft/class_7673;)Vofficial <init>Lajs;<init>(Laju;Ljava/lang/String;Lajs;Lajv;)Vnamed <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;)V
-
-
Method Details
-
relativize
- Mappings:
Namespace Name Mixin selector intermediary method_45217Lnet/minecraft/class_7668;method_45217(Lnet/minecraft/class_7668;Ljava/lang/String;)Lnet/minecraft/class_7668;official aLajs;a(Lajs;Ljava/lang/String;)Lajs;named relativizeLnet/minecraft/resource/fs/ResourcePath;relativize(Lnet/minecraft/resource/fs/ResourcePath;Ljava/lang/String;)Lnet/minecraft/resource/fs/ResourcePath;
-
getFileSystem
- Specified by:
getFileSystemin interfacePath- Mappings:
Namespace Name Mixin selector intermediary method_45214Lnet/minecraft/class_7668;method_45214()Lnet/minecraft/class_7670;official aLajs;a()Laju;named getFileSystemLnet/minecraft/resource/fs/ResourcePath;getFileSystem()Lnet/minecraft/resource/fs/ResourceFileSystem;
-
isAbsolute
public boolean isAbsolute()- Specified by:
isAbsolutein interfacePath
-
toFile
-
getRoot
- Specified by:
getRootin interfacePath- Mappings:
Namespace Name Mixin selector intermediary method_45223Lnet/minecraft/class_7668;method_45223()Lnet/minecraft/class_7668;official bLajs;b()Lajs;named getRootLnet/minecraft/resource/fs/ResourcePath;getRoot()Lnet/minecraft/resource/fs/ResourcePath;
-
getFileName
- Specified by:
getFileNamein interfacePath- Mappings:
Namespace Name Mixin selector intermediary method_45225Lnet/minecraft/class_7668;method_45225()Lnet/minecraft/class_7668;official cLajs;c()Lajs;named getFileNameLnet/minecraft/resource/fs/ResourcePath;getFileName()Lnet/minecraft/resource/fs/ResourcePath;
-
getParent
- Specified by:
getParentin interfacePath- Mappings:
Namespace Name Mixin selector intermediary method_45227Lnet/minecraft/class_7668;method_45227()Lnet/minecraft/class_7668;official dLajs;d()Lajs;named getParentLnet/minecraft/resource/fs/ResourcePath;getParent()Lnet/minecraft/resource/fs/ResourcePath;
-
getNameCount
public int getNameCount()- Specified by:
getNameCountin interfacePath
-
getNames
- Mappings:
Namespace Name Mixin selector intermediary method_45235Lnet/minecraft/class_7668;method_45235()Ljava/util/List;official lLajs;l()Ljava/util/List;named getNamesLnet/minecraft/resource/fs/ResourcePath;getNames()Ljava/util/List;
-
getName
- Specified by:
getNamein interfacePath- Mappings:
Namespace Name Mixin selector intermediary method_45215Lnet/minecraft/class_7668;method_45215(I)Lnet/minecraft/class_7668;official aLajs;a(I)Lajs;named getNameLnet/minecraft/resource/fs/ResourcePath;getName(I)Lnet/minecraft/resource/fs/ResourcePath;
-
subpath
- Specified by:
subpathin interfacePath- Mappings:
Namespace Name Mixin selector intermediary method_45216Lnet/minecraft/class_7668;method_45216(II)Lnet/minecraft/class_7668;official aLajs;a(II)Lajs;named subpathLnet/minecraft/resource/fs/ResourcePath;subpath(II)Lnet/minecraft/resource/fs/ResourcePath;
-
startsWith
- Specified by:
startsWithin interfacePath- Mappings:
Namespace Name Mixin selector intermediary startsWithLnet/minecraft/class_7668;startsWith(Ljava/nio/file/Path;)Zofficial startsWithLajs;startsWith(Ljava/nio/file/Path;)Znamed startsWithLnet/minecraft/resource/fs/ResourcePath;startsWith(Ljava/nio/file/Path;)Z
-
endsWith
- Specified by:
endsWithin interfacePath- Mappings:
Namespace Name Mixin selector intermediary endsWithLnet/minecraft/class_7668;endsWith(Ljava/nio/file/Path;)Zofficial endsWithLajs;endsWith(Ljava/nio/file/Path;)Znamed endsWithLnet/minecraft/resource/fs/ResourcePath;endsWith(Ljava/nio/file/Path;)Z
-
normalize
- Specified by:
normalizein interfacePath- Mappings:
Namespace Name Mixin selector intermediary method_45228Lnet/minecraft/class_7668;method_45228()Lnet/minecraft/class_7668;official eLajs;e()Lajs;named normalizeLnet/minecraft/resource/fs/ResourcePath;normalize()Lnet/minecraft/resource/fs/ResourcePath;
-
resolve
- Specified by:
resolvein interfacePath- Mappings:
Namespace Name Mixin selector intermediary method_45220Lnet/minecraft/class_7668;method_45220(Ljava/nio/file/Path;)Lnet/minecraft/class_7668;official aLajs;a(Ljava/nio/file/Path;)Lajs;named resolveLnet/minecraft/resource/fs/ResourcePath;resolve(Ljava/nio/file/Path;)Lnet/minecraft/resource/fs/ResourcePath;
-
get
- Mappings:
Namespace Name Mixin selector intermediary method_45221Lnet/minecraft/class_7668;method_45221(Ljava/util/List;)Lnet/minecraft/class_7668;official aLajs;a(Ljava/util/List;)Lajs;named getLnet/minecraft/resource/fs/ResourcePath;get(Ljava/util/List;)Lnet/minecraft/resource/fs/ResourcePath;
-
get
- Mappings:
Namespace Name Mixin selector intermediary method_45219Lnet/minecraft/class_7668;method_45219(Ljava/lang/String;)Lnet/minecraft/class_7668;official aLajs;a(Ljava/lang/String;)Lajs;named getLnet/minecraft/resource/fs/ResourcePath;get(Ljava/lang/String;)Lnet/minecraft/resource/fs/ResourcePath;
-
isSpecial
- Mappings:
Namespace Name Mixin selector intermediary method_45218Lnet/minecraft/class_7668;method_45218(Lnet/minecraft/class_7673;)Zofficial aLajs;a(Lajv;)Znamed isSpecialLnet/minecraft/resource/fs/ResourcePath;isSpecial(Lnet/minecraft/resource/fs/ResourceFile;)Z
-
relativize
- Specified by:
relativizein interfacePath- Mappings:
Namespace Name Mixin selector intermediary method_45224Lnet/minecraft/class_7668;method_45224(Ljava/nio/file/Path;)Lnet/minecraft/class_7668;official bLajs;b(Ljava/nio/file/Path;)Lajs;named relativizeLnet/minecraft/resource/fs/ResourcePath;relativize(Ljava/nio/file/Path;)Lnet/minecraft/resource/fs/ResourcePath;
-
toUri
-
toAbsolutePath
- Specified by:
toAbsolutePathin interfacePath- Mappings:
Namespace Name Mixin selector intermediary method_45229Lnet/minecraft/class_7668;method_45229()Lnet/minecraft/class_7668;official fLajs;f()Lajs;named toAbsolutePathLnet/minecraft/resource/fs/ResourcePath;toAbsolutePath()Lnet/minecraft/resource/fs/ResourcePath;
-
toRealPath
- Specified by:
toRealPathin interfacePath- Mappings:
Namespace Name Mixin selector intermediary method_45222Lnet/minecraft/class_7668;method_45222([Ljava/nio/file/LinkOption;)Lnet/minecraft/class_7668;official aLajs;a([Ljava/nio/file/LinkOption;)Lajs;named toRealPathLnet/minecraft/resource/fs/ResourcePath;toRealPath([Ljava/nio/file/LinkOption;)Lnet/minecraft/resource/fs/ResourcePath;
-
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 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 registerLajs;register(Ljava/nio/file/WatchService;[Ljava/nio/file/WatchEvent$Kind;[Ljava/nio/file/WatchEvent$Modifier;)Ljava/nio/file/WatchKey;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;
-
compareTo
- Specified by:
compareToin interfaceComparable<Path>- Specified by:
compareToin interfacePath- Mappings:
Namespace Name Mixin selector intermediary compareToLnet/minecraft/class_7668;compareTo(Ljava/nio/file/Path;)Iofficial compareToLajs;compareTo(Ljava/nio/file/Path;)Inamed compareToLnet/minecraft/resource/fs/ResourcePath;compareTo(Ljava/nio/file/Path;)I
-
equals
- Specified by:
equalsin interfacePath- Overrides:
equalsin classObject- Mappings:
Namespace Name Mixin selector intermediary equalsLnet/minecraft/class_7668;equals(Ljava/lang/Object;)Zofficial equalsLajs;equals(Ljava/lang/Object;)Znamed equalsLnet/minecraft/resource/fs/ResourcePath;equals(Ljava/lang/Object;)Z
-
isNormal
private boolean isNormal()- Mappings:
Namespace Name Mixin selector intermediary method_45236Lnet/minecraft/class_7668;method_45236()Zofficial mLajs;m()Znamed isNormalLnet/minecraft/resource/fs/ResourcePath;isNormal()Z
-
hashCode
public int hashCode() -
toString
-
getPathString
- Mappings:
Namespace Name Mixin selector intermediary method_45237Lnet/minecraft/class_7668;method_45237()Ljava/lang/String;official nLajs;n()Ljava/lang/String;named getPathStringLnet/minecraft/resource/fs/ResourcePath;getPathString()Ljava/lang/String;
-
toResourcePath
- Mappings:
Namespace Name Mixin selector intermediary method_45226Lnet/minecraft/class_7668;method_45226(Ljava/nio/file/Path;)Lnet/minecraft/class_7668;official cLajs;c(Ljava/nio/file/Path;)Lajs;named toResourcePathLnet/minecraft/resource/fs/ResourcePath;toResourcePath(Ljava/nio/file/Path;)Lnet/minecraft/resource/fs/ResourcePath;
-
isReadable
public boolean isReadable()- Mappings:
Namespace Name Mixin selector intermediary method_45230Lnet/minecraft/class_7668;method_45230()Zofficial gLajs;g()Znamed isReadableLnet/minecraft/resource/fs/ResourcePath;isReadable()Z
-
toPath
- Mappings:
Namespace Name Mixin selector intermediary method_45231Lnet/minecraft/class_7668;method_45231()Ljava/nio/file/Path;official hLajs;h()Ljava/nio/file/Path;named toPathLnet/minecraft/resource/fs/ResourcePath;toPath()Ljava/nio/file/Path;
-
toDirectory
- Mappings:
Namespace Name Mixin selector intermediary method_45232Lnet/minecraft/class_7668;method_45232()Lnet/minecraft/class_7673$class_7674;official iLajs;i()Lajv$a;named toDirectoryLnet/minecraft/resource/fs/ResourcePath;toDirectory()Lnet/minecraft/resource/fs/ResourceFile$Directory;
-
getAttributeView
- Mappings:
Namespace Name Mixin selector intermediary method_45233Lnet/minecraft/class_7668;method_45233()Ljava/nio/file/attribute/BasicFileAttributeView;official jLajs;j()Ljava/nio/file/attribute/BasicFileAttributeView;named getAttributeViewLnet/minecraft/resource/fs/ResourcePath;getAttributeView()Ljava/nio/file/attribute/BasicFileAttributeView;
-
getAttributes
- Throws:
IOException- Mappings:
Namespace Name Mixin selector intermediary method_45234Lnet/minecraft/class_7668;method_45234()Ljava/nio/file/attribute/BasicFileAttributes;official kLajs;k()Ljava/nio/file/attribute/BasicFileAttributes;named getAttributesLnet/minecraft/resource/fs/ResourcePath;getAttributes()Ljava/nio/file/attribute/BasicFileAttributes;
-