Package net.minecraft.resource.fs
Class ResourcePath
java.lang.Object
net.minecraft.resource.fs.ResourcePath
- Mappings:
Namespace Name official aiointermediary 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 ResourcePathintgetNames()private StringinthashCode()booleanprivate booleanisNormal()booleanprivate static booleanisSpecial(ResourceFile file) method_45215(int int2) method_45216(int int2, int int3) method_45220(Path path) method_45222(LinkOption[] linkOption) method_45224(Path path) register(WatchService watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier[] modifiers) private ResourcePathrelativize(@Nullable ResourcePath path, String name) booleanstartsWith(Path other) toFile()toPath()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, getFileName, getFileSystem, getName, getParent, getRoot, iterator, normalize, register, relativize, resolve, resolve, resolveSibling, resolveSibling, startsWith, subpath, toAbsolutePath, toRealPath
-
Field Details
-
DIRECTORY_ATTRIBUTES
- Mappings:
Namespace Name Mixin selector official aLaio;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 bLaio;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 cLaio;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 dLaio;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 eLaio;e:Laiq;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 fLaio;f:Laio;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 gLaio;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 hLaio;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 iLaio;i:Lair;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>Laio;<init>(Laiq;Ljava/lang/String;Laio;Lair;)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 aLaio;a(Laio;Ljava/lang/String;)Laio;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;
-
method_45214
- Mappings:
Namespace Name Mixin selector official aLaio;a()Laiq;intermediary method_45214Lnet/minecraft/class_7668;method_45214()Lnet/minecraft/class_7670;named method_45214Lnet/minecraft/resource/fs/ResourcePath;method_45214()Lnet/minecraft/resource/fs/ResourceFileSystem;
-
isAbsolute
public boolean isAbsolute()- Specified by:
isAbsolutein interfacePath
-
toFile
-
method_45223
- Mappings:
Namespace Name Mixin selector official bLaio;b()Laio;intermediary method_45223Lnet/minecraft/class_7668;method_45223()Lnet/minecraft/class_7668;named method_45223Lnet/minecraft/resource/fs/ResourcePath;method_45223()Lnet/minecraft/resource/fs/ResourcePath;
-
method_45225
- Mappings:
Namespace Name Mixin selector official cLaio;c()Laio;intermediary method_45225Lnet/minecraft/class_7668;method_45225()Lnet/minecraft/class_7668;named method_45225Lnet/minecraft/resource/fs/ResourcePath;method_45225()Lnet/minecraft/resource/fs/ResourcePath;
-
method_45227
- Mappings:
Namespace Name Mixin selector official dLaio;d()Laio;intermediary method_45227Lnet/minecraft/class_7668;method_45227()Lnet/minecraft/class_7668;named method_45227Lnet/minecraft/resource/fs/ResourcePath;method_45227()Lnet/minecraft/resource/fs/ResourcePath;
-
getNameCount
public int getNameCount()- Specified by:
getNameCountin interfacePath
-
getNames
- Mappings:
Namespace Name Mixin selector official lLaio;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;
-
method_45215
- Mappings:
Namespace Name Mixin selector official aLaio;a(I)Laio;intermediary method_45215Lnet/minecraft/class_7668;method_45215(I)Lnet/minecraft/class_7668;named method_45215Lnet/minecraft/resource/fs/ResourcePath;method_45215(I)Lnet/minecraft/resource/fs/ResourcePath;
-
method_45216
- Mappings:
Namespace Name Mixin selector official aLaio;a(II)Laio;intermediary method_45216Lnet/minecraft/class_7668;method_45216(II)Lnet/minecraft/class_7668;named method_45216Lnet/minecraft/resource/fs/ResourcePath;method_45216(II)Lnet/minecraft/resource/fs/ResourcePath;
-
startsWith
- Specified by:
startsWithin interfacePath- Mappings:
Namespace Name Mixin selector official startsWithLaio;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 endsWithLaio;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
-
method_45228
- Mappings:
Namespace Name Mixin selector official eLaio;e()Laio;intermediary method_45228Lnet/minecraft/class_7668;method_45228()Lnet/minecraft/class_7668;named method_45228Lnet/minecraft/resource/fs/ResourcePath;method_45228()Lnet/minecraft/resource/fs/ResourcePath;
-
method_45220
- Mappings:
Namespace Name Mixin selector official aLaio;a(Ljava/nio/file/Path;)Laio;intermediary method_45220Lnet/minecraft/class_7668;method_45220(Ljava/nio/file/Path;)Lnet/minecraft/class_7668;named method_45220Lnet/minecraft/resource/fs/ResourcePath;method_45220(Ljava/nio/file/Path;)Lnet/minecraft/resource/fs/ResourcePath;
-
get
- Mappings:
Namespace Name Mixin selector official aLaio;a(Ljava/util/List;)Laio;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 aLaio;a(Ljava/lang/String;)Laio;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 aLaio;a(Lair;)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
-
method_45224
- Mappings:
Namespace Name Mixin selector official bLaio;b(Ljava/nio/file/Path;)Laio;intermediary method_45224Lnet/minecraft/class_7668;method_45224(Ljava/nio/file/Path;)Lnet/minecraft/class_7668;named method_45224Lnet/minecraft/resource/fs/ResourcePath;method_45224(Ljava/nio/file/Path;)Lnet/minecraft/resource/fs/ResourcePath;
-
toUri
-
method_45229
- Mappings:
Namespace Name Mixin selector official fLaio;f()Laio;intermediary method_45229Lnet/minecraft/class_7668;method_45229()Lnet/minecraft/class_7668;named method_45229Lnet/minecraft/resource/fs/ResourcePath;method_45229()Lnet/minecraft/resource/fs/ResourcePath;
-
method_45222
- Mappings:
Namespace Name Mixin selector official aLaio;a([Ljava/nio/file/LinkOption;)Laio;intermediary method_45222Lnet/minecraft/class_7668;method_45222([Ljava/nio/file/LinkOption;)Lnet/minecraft/class_7668;named method_45222Lnet/minecraft/resource/fs/ResourcePath;method_45222([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 registerLaio;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
-
equals
- Specified by:
equalsin interfacePath- Overrides:
equalsin classObject- Mappings:
Namespace Name Mixin selector official equalsLaio;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 mLaio;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 nLaio;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 cLaio;c(Ljava/nio/file/Path;)Laio;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 gLaio;g()Zintermediary method_45230Lnet/minecraft/class_7668;method_45230()Znamed isReadableLnet/minecraft/resource/fs/ResourcePath;isReadable()Z
-
toPath
- Mappings:
Namespace Name Mixin selector official hLaio;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 iLaio;i()Lair$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 jLaio;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 kLaio;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;
-