Package net.minecraft.resource.fs
Class ResourcePath
java.lang.Object
net.minecraft.resource.fs.ResourcePath
- Mappings:
- Namespace - Name - official - ajs- intermediary - net/minecraft/class_7668- named - net/minecraft/resource/fs/ResourcePath
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final Comparator<ResourcePath>private static final BasicFileAttributesprivate final ResourceFileprivate static final BasicFileAttributesprivate final ResourceFileSystemprivate final Stringprivate final @Nullable ResourcePath
- 
Constructor SummaryConstructorsConstructorDescriptionResourcePath(ResourceFileSystem fileSystem, String name, @Nullable ResourcePath parent, ResourceFile file) 
- 
Method SummaryModifier 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.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.IterableforEach, spliteratorMethods inherited from interface java.nio.file.PathendsWith, iterator, register, resolve, resolveSibling, resolveSibling, startsWith
- 
Field Details- 
DIRECTORY_ATTRIBUTES- Mappings:
- Namespace - Name - Mixin selector - official - a- Lajs;a:Ljava/nio/file/attribute/BasicFileAttributes;- intermediary - field_40013- Lnet/minecraft/class_7668;field_40013:Ljava/nio/file/attribute/BasicFileAttributes;- named - DIRECTORY_ATTRIBUTES- Lnet/minecraft/resource/fs/ResourcePath;DIRECTORY_ATTRIBUTES:Ljava/nio/file/attribute/BasicFileAttributes;
 
- 
FILE_ATTRIBUTES- Mappings:
- Namespace - Name - Mixin selector - official - b- Lajs;b:Ljava/nio/file/attribute/BasicFileAttributes;- intermediary - field_40014- Lnet/minecraft/class_7668;field_40014:Ljava/nio/file/attribute/BasicFileAttributes;- named - FILE_ATTRIBUTES- Lnet/minecraft/resource/fs/ResourcePath;FILE_ATTRIBUTES:Ljava/nio/file/attribute/BasicFileAttributes;
 
- 
COMPARATOR- Mappings:
- Namespace - Name - Mixin selector - official - c- Lajs;c:Ljava/util/Comparator;- intermediary - field_40015- Lnet/minecraft/class_7668;field_40015:Ljava/util/Comparator;- named - COMPARATOR- Lnet/minecraft/resource/fs/ResourcePath;COMPARATOR:Ljava/util/Comparator;
 
- 
name- Mappings:
- Namespace - Name - Mixin selector - official - d- Lajs;d:Ljava/lang/String;- intermediary - field_40016- Lnet/minecraft/class_7668;field_40016:Ljava/lang/String;- named - name- Lnet/minecraft/resource/fs/ResourcePath;name:Ljava/lang/String;
 
- 
fileSystem- Mappings:
- Namespace - Name - Mixin selector - official - e- Lajs;e:Laju;- intermediary - field_40017- Lnet/minecraft/class_7668;field_40017:Lnet/minecraft/class_7670;- named - fileSystem- Lnet/minecraft/resource/fs/ResourcePath;fileSystem:Lnet/minecraft/resource/fs/ResourceFileSystem;
 
- 
parent- Mappings:
- Namespace - Name - Mixin selector - official - f- Lajs;f:Lajs;- intermediary - field_40018- Lnet/minecraft/class_7668;field_40018:Lnet/minecraft/class_7668;- named - parent- Lnet/minecraft/resource/fs/ResourcePath;parent:Lnet/minecraft/resource/fs/ResourcePath;
 
- 
names- Mappings:
- Namespace - Name - Mixin selector - official - g- Lajs;g:Ljava/util/List;- intermediary - field_40019- Lnet/minecraft/class_7668;field_40019:Ljava/util/List;- named - names- Lnet/minecraft/resource/fs/ResourcePath;names:Ljava/util/List;
 
- 
pathString- Mappings:
- Namespace - Name - Mixin selector - official - h- Lajs;h:Ljava/lang/String;- intermediary - field_40020- Lnet/minecraft/class_7668;field_40020:Ljava/lang/String;- named - pathString- Lnet/minecraft/resource/fs/ResourcePath;pathString:Ljava/lang/String;
 
- 
file- Mappings:
- Namespace - Name - Mixin selector - official - i- Lajs;i:Lajv;- intermediary - field_40021- Lnet/minecraft/class_7668;field_40021:Lnet/minecraft/class_7673;- named - file- Lnet/minecraft/resource/fs/ResourcePath;file:Lnet/minecraft/resource/fs/ResourceFile;
 
 
- 
- 
Constructor Details- 
ResourcePathpublic ResourcePath(ResourceFileSystem fileSystem, String name, @Nullable @Nullable ResourcePath parent, ResourceFile file) - Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lajs;<init>(Laju;Ljava/lang/String;Lajs;Lajv;)V- intermediary - <init>- Lnet/minecraft/class_7668;<init>(Lnet/minecraft/class_7670;Ljava/lang/String;Lnet/minecraft/class_7668;Lnet/minecraft/class_7673;)V- 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;)V
 
 
- 
- 
Method Details- 
relativize- Mappings:
- Namespace - Name - Mixin selector - official - a- Lajs;a(Lajs;Ljava/lang/String;)Lajs;- intermediary - method_45217- Lnet/minecraft/class_7668;method_45217(Lnet/minecraft/class_7668;Ljava/lang/String;)Lnet/minecraft/class_7668;- named - relativize- Lnet/minecraft/resource/fs/ResourcePath;relativize(Lnet/minecraft/resource/fs/ResourcePath;Ljava/lang/String;)Lnet/minecraft/resource/fs/ResourcePath;
 
- 
getFileSystem- Specified by:
- getFileSystemin interface- Path
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lajs;a()Laju;- intermediary - method_45214- Lnet/minecraft/class_7668;method_45214()Lnet/minecraft/class_7670;- named - getFileSystem- Lnet/minecraft/resource/fs/ResourcePath;getFileSystem()Lnet/minecraft/resource/fs/ResourceFileSystem;
 
- 
isAbsolutepublic boolean isAbsolute()- Specified by:
- isAbsolutein interface- Path
 
- 
toFile
- 
getRoot- Specified by:
- getRootin interface- Path
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lajs;b()Lajs;- intermediary - method_45223- Lnet/minecraft/class_7668;method_45223()Lnet/minecraft/class_7668;- named - getRoot- Lnet/minecraft/resource/fs/ResourcePath;getRoot()Lnet/minecraft/resource/fs/ResourcePath;
 
- 
getFileName- Specified by:
- getFileNamein interface- Path
- Mappings:
- Namespace - Name - Mixin selector - official - c- Lajs;c()Lajs;- intermediary - method_45225- Lnet/minecraft/class_7668;method_45225()Lnet/minecraft/class_7668;- named - getFileName- Lnet/minecraft/resource/fs/ResourcePath;getFileName()Lnet/minecraft/resource/fs/ResourcePath;
 
- 
getParent- Specified by:
- getParentin interface- Path
- Mappings:
- Namespace - Name - Mixin selector - official - d- Lajs;d()Lajs;- intermediary - method_45227- Lnet/minecraft/class_7668;method_45227()Lnet/minecraft/class_7668;- named - getParent- Lnet/minecraft/resource/fs/ResourcePath;getParent()Lnet/minecraft/resource/fs/ResourcePath;
 
- 
getNameCountpublic int getNameCount()- Specified by:
- getNameCountin interface- Path
 
- 
getNames- Mappings:
- Namespace - Name - Mixin selector - official - l- Lajs;l()Ljava/util/List;- intermediary - method_45235- Lnet/minecraft/class_7668;method_45235()Ljava/util/List;- named - getNames- Lnet/minecraft/resource/fs/ResourcePath;getNames()Ljava/util/List;
 
- 
getName- Specified by:
- getNamein interface- Path
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lajs;a(I)Lajs;- intermediary - method_45215- Lnet/minecraft/class_7668;method_45215(I)Lnet/minecraft/class_7668;- named - getName- Lnet/minecraft/resource/fs/ResourcePath;getName(I)Lnet/minecraft/resource/fs/ResourcePath;
 
- 
subpath- Specified by:
- subpathin interface- Path
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lajs;a(II)Lajs;- intermediary - method_45216- Lnet/minecraft/class_7668;method_45216(II)Lnet/minecraft/class_7668;- named - subpath- Lnet/minecraft/resource/fs/ResourcePath;subpath(II)Lnet/minecraft/resource/fs/ResourcePath;
 
- 
startsWith- Specified by:
- startsWithin interface- Path
- Mappings:
- Namespace - Name - Mixin selector - official - startsWith- Lajs;startsWith(Ljava/nio/file/Path;)Z- intermediary - startsWith- Lnet/minecraft/class_7668;startsWith(Ljava/nio/file/Path;)Z- named - startsWith- Lnet/minecraft/resource/fs/ResourcePath;startsWith(Ljava/nio/file/Path;)Z
 
- 
endsWith- Specified by:
- endsWithin interface- Path
- Mappings:
- Namespace - Name - Mixin selector - official - endsWith- Lajs;endsWith(Ljava/nio/file/Path;)Z- intermediary - endsWith- Lnet/minecraft/class_7668;endsWith(Ljava/nio/file/Path;)Z- named - endsWith- Lnet/minecraft/resource/fs/ResourcePath;endsWith(Ljava/nio/file/Path;)Z
 
- 
normalize- Specified by:
- normalizein interface- Path
- Mappings:
- Namespace - Name - Mixin selector - official - e- Lajs;e()Lajs;- intermediary - method_45228- Lnet/minecraft/class_7668;method_45228()Lnet/minecraft/class_7668;- named - normalize- Lnet/minecraft/resource/fs/ResourcePath;normalize()Lnet/minecraft/resource/fs/ResourcePath;
 
- 
resolve- Specified by:
- resolvein interface- Path
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lajs;a(Ljava/nio/file/Path;)Lajs;- intermediary - method_45220- Lnet/minecraft/class_7668;method_45220(Ljava/nio/file/Path;)Lnet/minecraft/class_7668;- named - resolve- Lnet/minecraft/resource/fs/ResourcePath;resolve(Ljava/nio/file/Path;)Lnet/minecraft/resource/fs/ResourcePath;
 
- 
get- Mappings:
- Namespace - Name - Mixin selector - official - a- Lajs;a(Ljava/util/List;)Lajs;- intermediary - method_45221- Lnet/minecraft/class_7668;method_45221(Ljava/util/List;)Lnet/minecraft/class_7668;- named - get- Lnet/minecraft/resource/fs/ResourcePath;get(Ljava/util/List;)Lnet/minecraft/resource/fs/ResourcePath;
 
- 
get- Mappings:
- Namespace - Name - Mixin selector - official - a- Lajs;a(Ljava/lang/String;)Lajs;- intermediary - method_45219- Lnet/minecraft/class_7668;method_45219(Ljava/lang/String;)Lnet/minecraft/class_7668;- named - get- Lnet/minecraft/resource/fs/ResourcePath;get(Ljava/lang/String;)Lnet/minecraft/resource/fs/ResourcePath;
 
- 
isSpecial- Mappings:
- Namespace - Name - Mixin selector - official - a- Lajs;a(Lajv;)Z- intermediary - method_45218- Lnet/minecraft/class_7668;method_45218(Lnet/minecraft/class_7673;)Z- named - isSpecial- Lnet/minecraft/resource/fs/ResourcePath;isSpecial(Lnet/minecraft/resource/fs/ResourceFile;)Z
 
- 
relativize- Specified by:
- relativizein interface- Path
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lajs;b(Ljava/nio/file/Path;)Lajs;- intermediary - method_45224- Lnet/minecraft/class_7668;method_45224(Ljava/nio/file/Path;)Lnet/minecraft/class_7668;- named - relativize- Lnet/minecraft/resource/fs/ResourcePath;relativize(Ljava/nio/file/Path;)Lnet/minecraft/resource/fs/ResourcePath;
 
- 
toUri
- 
toAbsolutePath- Specified by:
- toAbsolutePathin interface- Path
- Mappings:
- Namespace - Name - Mixin selector - official - f- Lajs;f()Lajs;- intermediary - method_45229- Lnet/minecraft/class_7668;method_45229()Lnet/minecraft/class_7668;- named - toAbsolutePath- Lnet/minecraft/resource/fs/ResourcePath;toAbsolutePath()Lnet/minecraft/resource/fs/ResourcePath;
 
- 
toRealPath- Specified by:
- toRealPathin interface- Path
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lajs;a([Ljava/nio/file/LinkOption;)Lajs;- intermediary - method_45222- Lnet/minecraft/class_7668;method_45222([Ljava/nio/file/LinkOption;)Lnet/minecraft/class_7668;- named - toRealPath- Lnet/minecraft/resource/fs/ResourcePath;toRealPath([Ljava/nio/file/LinkOption;)Lnet/minecraft/resource/fs/ResourcePath;
 
- 
registerpublic WatchKey register(WatchService watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier[] modifiers) - Specified by:
- registerin interface- Path
- Specified by:
- registerin interface- Watchable
- Mappings:
- Namespace - Name - Mixin selector - official - register- Lajs;register(Ljava/nio/file/WatchService;[Ljava/nio/file/WatchEvent$Kind;[Ljava/nio/file/WatchEvent$Modifier;)Ljava/nio/file/WatchKey;- intermediary - register- Lnet/minecraft/class_7668;register(Ljava/nio/file/WatchService;[Ljava/nio/file/WatchEvent$Kind;[Ljava/nio/file/WatchEvent$Modifier;)Ljava/nio/file/WatchKey;- named - register- Lnet/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 interface- Comparable<Path>
- Specified by:
- compareToin interface- Path
- Mappings:
- Namespace - Name - Mixin selector - official - compareTo- Lajs;compareTo(Ljava/nio/file/Path;)I- intermediary - compareTo- Lnet/minecraft/class_7668;compareTo(Ljava/nio/file/Path;)I- named - compareTo- Lnet/minecraft/resource/fs/ResourcePath;compareTo(Ljava/nio/file/Path;)I
 
- 
equals- Specified by:
- equalsin interface- Path
- Overrides:
- equalsin class- Object
- Mappings:
- Namespace - Name - Mixin selector - official - equals- Lajs;equals(Ljava/lang/Object;)Z- intermediary - equals- Lnet/minecraft/class_7668;equals(Ljava/lang/Object;)Z- named - equals- Lnet/minecraft/resource/fs/ResourcePath;equals(Ljava/lang/Object;)Z
 
- 
isNormalprivate boolean isNormal()- Mappings:
- Namespace - Name - Mixin selector - official - m- Lajs;m()Z- intermediary - method_45236- Lnet/minecraft/class_7668;method_45236()Z- named - isNormal- Lnet/minecraft/resource/fs/ResourcePath;isNormal()Z
 
- 
hashCodepublic int hashCode()
- 
toString
- 
getPathString- Mappings:
- Namespace - Name - Mixin selector - official - n- Lajs;n()Ljava/lang/String;- intermediary - method_45237- Lnet/minecraft/class_7668;method_45237()Ljava/lang/String;- named - getPathString- Lnet/minecraft/resource/fs/ResourcePath;getPathString()Ljava/lang/String;
 
- 
toResourcePath- Mappings:
- Namespace - Name - Mixin selector - official - c- Lajs;c(Ljava/nio/file/Path;)Lajs;- intermediary - method_45226- Lnet/minecraft/class_7668;method_45226(Ljava/nio/file/Path;)Lnet/minecraft/class_7668;- named - toResourcePath- Lnet/minecraft/resource/fs/ResourcePath;toResourcePath(Ljava/nio/file/Path;)Lnet/minecraft/resource/fs/ResourcePath;
 
- 
isReadablepublic boolean isReadable()- Mappings:
- Namespace - Name - Mixin selector - official - g- Lajs;g()Z- intermediary - method_45230- Lnet/minecraft/class_7668;method_45230()Z- named - isReadable- Lnet/minecraft/resource/fs/ResourcePath;isReadable()Z
 
- 
toPath- Mappings:
- Namespace - Name - Mixin selector - official - h- Lajs;h()Ljava/nio/file/Path;- intermediary - method_45231- Lnet/minecraft/class_7668;method_45231()Ljava/nio/file/Path;- named - toPath- Lnet/minecraft/resource/fs/ResourcePath;toPath()Ljava/nio/file/Path;
 
- 
toDirectory- Mappings:
- Namespace - Name - Mixin selector - official - i- Lajs;i()Lajv$a;- intermediary - method_45232- Lnet/minecraft/class_7668;method_45232()Lnet/minecraft/class_7673$class_7674;- named - toDirectory- Lnet/minecraft/resource/fs/ResourcePath;toDirectory()Lnet/minecraft/resource/fs/ResourceFile$Directory;
 
- 
getAttributeView- Mappings:
- Namespace - Name - Mixin selector - official - j- Lajs;j()Ljava/nio/file/attribute/BasicFileAttributeView;- intermediary - method_45233- Lnet/minecraft/class_7668;method_45233()Ljava/nio/file/attribute/BasicFileAttributeView;- named - getAttributeView- Lnet/minecraft/resource/fs/ResourcePath;getAttributeView()Ljava/nio/file/attribute/BasicFileAttributeView;
 
- 
getAttributes- Throws:
- IOException
- Mappings:
- Namespace - Name - Mixin selector - official - k- Lajs;k()Ljava/nio/file/attribute/BasicFileAttributes;- intermediary - method_45234- Lnet/minecraft/class_7668;method_45234()Ljava/nio/file/attribute/BasicFileAttributes;- named - getAttributes- Lnet/minecraft/resource/fs/ResourcePath;getAttributes()Ljava/nio/file/attribute/BasicFileAttributes;
 
 
-