Package net.minecraft.resource.fs
Class ResourcePath
java.lang.Object
net.minecraft.resource.fs.ResourcePath
- Mappings:
Namespace Name official aixintermediary net/minecraft/class_7668named 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) private ResourcePathrelativize(@Nullable ResourcePath path, String name) relativize(Path path) 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 official aLaix;a:Ljava/nio/file/attribute/BasicFileAttributes;intermediary field_40013Lnet/minecraft/class_7668;field_40013: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 official bLaix;b:Ljava/nio/file/attribute/BasicFileAttributes;intermediary field_40014Lnet/minecraft/class_7668;field_40014: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 official cLaix;c:Ljava/util/Comparator;intermediary field_40015Lnet/minecraft/class_7668;field_40015:Ljava/util/Comparator;named COMPARATORLnet/minecraft/resource/fs/ResourcePath;COMPARATOR:Ljava/util/Comparator;
-
name
- Mappings:
Namespace Name Mixin selector official dLaix;d:Ljava/lang/String;intermediary field_40016Lnet/minecraft/class_7668;field_40016:Ljava/lang/String;named nameLnet/minecraft/resource/fs/ResourcePath;name:Ljava/lang/String;
-
fileSystem
- Mappings:
Namespace Name Mixin selector official eLaix;e:Laiz;intermediary field_40017Lnet/minecraft/class_7668;field_40017:Lnet/minecraft/class_7670;named fileSystemLnet/minecraft/resource/fs/ResourcePath;fileSystem:Lnet/minecraft/resource/fs/ResourceFileSystem;
-
parent
- Mappings:
Namespace Name Mixin selector official fLaix;f:Laix;intermediary field_40018Lnet/minecraft/class_7668;field_40018:Lnet/minecraft/class_7668;named parentLnet/minecraft/resource/fs/ResourcePath;parent:Lnet/minecraft/resource/fs/ResourcePath;
-
names
- Mappings:
Namespace Name Mixin selector official gLaix;g:Ljava/util/List;intermediary field_40019Lnet/minecraft/class_7668;field_40019:Ljava/util/List;named namesLnet/minecraft/resource/fs/ResourcePath;names:Ljava/util/List;
-
pathString
- Mappings:
Namespace Name Mixin selector official hLaix;h:Ljava/lang/String;intermediary field_40020Lnet/minecraft/class_7668;field_40020:Ljava/lang/String;named pathStringLnet/minecraft/resource/fs/ResourcePath;pathString:Ljava/lang/String;
-
file
- Mappings:
Namespace Name Mixin selector official iLaix;i:Laja;intermediary field_40021Lnet/minecraft/class_7668;field_40021:Lnet/minecraft/class_7673;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 official <init>Laix;<init>(Laiz;Ljava/lang/String;Laix;Laja;)Vintermediary <init>Lnet/minecraft/class_7668;<init>(Lnet/minecraft/class_7670;Ljava/lang/String;Lnet/minecraft/class_7668;Lnet/minecraft/class_7673;)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 official aLaix;a(Laix;Ljava/lang/String;)Laix;intermediary method_45217Lnet/minecraft/class_7668;method_45217(Lnet/minecraft/class_7668;Ljava/lang/String;)Lnet/minecraft/class_7668;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 official aLaix;a()Laiz;intermediary method_45214Lnet/minecraft/class_7668;method_45214()Lnet/minecraft/class_7670;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 official bLaix;b()Laix;intermediary method_45223Lnet/minecraft/class_7668;method_45223()Lnet/minecraft/class_7668;named getRootLnet/minecraft/resource/fs/ResourcePath;getRoot()Lnet/minecraft/resource/fs/ResourcePath;
-
getFileName
- Specified by:
getFileNamein interfacePath- Mappings:
Namespace Name Mixin selector official cLaix;c()Laix;intermediary method_45225Lnet/minecraft/class_7668;method_45225()Lnet/minecraft/class_7668;named getFileNameLnet/minecraft/resource/fs/ResourcePath;getFileName()Lnet/minecraft/resource/fs/ResourcePath;
-
getParent
- Specified by:
getParentin interfacePath- Mappings:
Namespace Name Mixin selector official dLaix;d()Laix;intermediary method_45227Lnet/minecraft/class_7668;method_45227()Lnet/minecraft/class_7668;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 official lLaix;l()Ljava/util/List;intermediary method_45235Lnet/minecraft/class_7668;method_45235()Ljava/util/List;named getNamesLnet/minecraft/resource/fs/ResourcePath;getNames()Ljava/util/List;
-
getName
- Specified by:
getNamein interfacePath- Mappings:
Namespace Name Mixin selector official aLaix;a(I)Laix;intermediary method_45215Lnet/minecraft/class_7668;method_45215(I)Lnet/minecraft/class_7668;named getNameLnet/minecraft/resource/fs/ResourcePath;getName(I)Lnet/minecraft/resource/fs/ResourcePath;
-
subpath
- Specified by:
subpathin interfacePath- Mappings:
Namespace Name Mixin selector official aLaix;a(II)Laix;intermediary method_45216Lnet/minecraft/class_7668;method_45216(II)Lnet/minecraft/class_7668;named subpathLnet/minecraft/resource/fs/ResourcePath;subpath(II)Lnet/minecraft/resource/fs/ResourcePath;
-
startsWith
- Specified by:
startsWithin interfacePath- Mappings:
Namespace Name Mixin selector official startsWithLaix;startsWith(Ljava/nio/file/Path;)Zintermediary startsWithLnet/minecraft/class_7668;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 official endsWithLaix;endsWith(Ljava/nio/file/Path;)Zintermediary endsWithLnet/minecraft/class_7668;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 official eLaix;e()Laix;intermediary method_45228Lnet/minecraft/class_7668;method_45228()Lnet/minecraft/class_7668;named normalizeLnet/minecraft/resource/fs/ResourcePath;normalize()Lnet/minecraft/resource/fs/ResourcePath;
-
resolve
- Specified by:
resolvein interfacePath- Mappings:
Namespace Name Mixin selector official aLaix;a(Ljava/nio/file/Path;)Laix;intermediary method_45220Lnet/minecraft/class_7668;method_45220(Ljava/nio/file/Path;)Lnet/minecraft/class_7668;named resolveLnet/minecraft/resource/fs/ResourcePath;resolve(Ljava/nio/file/Path;)Lnet/minecraft/resource/fs/ResourcePath;
-
get
- Mappings:
Namespace Name Mixin selector official aLaix;a(Ljava/util/List;)Laix;intermediary method_45221Lnet/minecraft/class_7668;method_45221(Ljava/util/List;)Lnet/minecraft/class_7668;named getLnet/minecraft/resource/fs/ResourcePath;get(Ljava/util/List;)Lnet/minecraft/resource/fs/ResourcePath;
-
get
- Mappings:
Namespace Name Mixin selector official aLaix;a(Ljava/lang/String;)Laix;intermediary method_45219Lnet/minecraft/class_7668;method_45219(Ljava/lang/String;)Lnet/minecraft/class_7668;named getLnet/minecraft/resource/fs/ResourcePath;get(Ljava/lang/String;)Lnet/minecraft/resource/fs/ResourcePath;
-
isSpecial
- Mappings:
Namespace Name Mixin selector official aLaix;a(Laja;)Zintermediary method_45218Lnet/minecraft/class_7668;method_45218(Lnet/minecraft/class_7673;)Znamed isSpecialLnet/minecraft/resource/fs/ResourcePath;isSpecial(Lnet/minecraft/resource/fs/ResourceFile;)Z
-
relativize
- Specified by:
relativizein interfacePath- Mappings:
Namespace Name Mixin selector official bLaix;b(Ljava/nio/file/Path;)Laix;intermediary method_45224Lnet/minecraft/class_7668;method_45224(Ljava/nio/file/Path;)Lnet/minecraft/class_7668;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 official fLaix;f()Laix;intermediary method_45229Lnet/minecraft/class_7668;method_45229()Lnet/minecraft/class_7668;named toAbsolutePathLnet/minecraft/resource/fs/ResourcePath;toAbsolutePath()Lnet/minecraft/resource/fs/ResourcePath;
-
toRealPath
- Specified by:
toRealPathin interfacePath- Mappings:
Namespace Name Mixin selector official aLaix;a([Ljava/nio/file/LinkOption;)Laix;intermediary method_45222Lnet/minecraft/class_7668;method_45222([Ljava/nio/file/LinkOption;)Lnet/minecraft/class_7668;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 official registerLaix;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;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 official compareToLaix;compareTo(Ljava/nio/file/Path;)Iintermediary compareToLnet/minecraft/class_7668;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 official equalsLaix;equals(Ljava/lang/Object;)Zintermediary equalsLnet/minecraft/class_7668;equals(Ljava/lang/Object;)Znamed equalsLnet/minecraft/resource/fs/ResourcePath;equals(Ljava/lang/Object;)Z
-
isNormal
private boolean isNormal()- Mappings:
Namespace Name Mixin selector official mLaix;m()Zintermediary method_45236Lnet/minecraft/class_7668;method_45236()Znamed isNormalLnet/minecraft/resource/fs/ResourcePath;isNormal()Z
-
hashCode
public int hashCode() -
toString
-
getPathString
- Mappings:
Namespace Name Mixin selector official nLaix;n()Ljava/lang/String;intermediary method_45237Lnet/minecraft/class_7668;method_45237()Ljava/lang/String;named getPathStringLnet/minecraft/resource/fs/ResourcePath;getPathString()Ljava/lang/String;
-
toResourcePath
- Mappings:
Namespace Name Mixin selector official cLaix;c(Ljava/nio/file/Path;)Laix;intermediary method_45226Lnet/minecraft/class_7668;method_45226(Ljava/nio/file/Path;)Lnet/minecraft/class_7668;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 official gLaix;g()Zintermediary method_45230Lnet/minecraft/class_7668;method_45230()Znamed isReadableLnet/minecraft/resource/fs/ResourcePath;isReadable()Z
-
toPath
- Mappings:
Namespace Name Mixin selector official hLaix;h()Ljava/nio/file/Path;intermediary method_45231Lnet/minecraft/class_7668;method_45231()Ljava/nio/file/Path;named toPathLnet/minecraft/resource/fs/ResourcePath;toPath()Ljava/nio/file/Path;
-
toDirectory
- Mappings:
Namespace Name Mixin selector official iLaix;i()Laja$a;intermediary method_45232Lnet/minecraft/class_7668;method_45232()Lnet/minecraft/class_7673$class_7674;named toDirectoryLnet/minecraft/resource/fs/ResourcePath;toDirectory()Lnet/minecraft/resource/fs/ResourceFile$Directory;
-
getAttributeView
- Mappings:
Namespace Name Mixin selector official jLaix;j()Ljava/nio/file/attribute/BasicFileAttributeView;intermediary method_45233Lnet/minecraft/class_7668;method_45233()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 official kLaix;k()Ljava/nio/file/attribute/BasicFileAttributes;intermediary method_45234Lnet/minecraft/class_7668;method_45234()Ljava/nio/file/attribute/BasicFileAttributes;named getAttributesLnet/minecraft/resource/fs/ResourcePath;getAttributes()Ljava/nio/file/attribute/BasicFileAttributes;
-