Package net.minecraft.resource.fs
Class ResourcePath
java.lang.Object
net.minecraft.resource.fs.ResourcePath
- Mappings:
Namespace Name named net/minecraft/resource/fs/ResourcePath
intermediary net/minecraft/class_7668
official atj
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Comparator
<ResourcePath> private static final BasicFileAttributes
private final ResourceFile
private static final BasicFileAttributes
private final ResourceFileSystem
private final String
private final @Nullable ResourcePath
-
Constructor Summary
ConstructorDescriptionResourcePath
(ResourceFileSystem fileSystem, String name, @Nullable ResourcePath parent, ResourceFile file) -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
boolean
(package private) ResourcePath
private ResourcePath
getName
(int int2) int
getNames()
private String
getRoot()
int
hashCode()
boolean
private boolean
isNormal()
boolean
private static boolean
isSpecial
(ResourceFile file) register
(WatchService watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier[] modifiers) relativize
(Path path) private ResourcePath
relativize
(@Nullable ResourcePath path, String name) boolean
startsWith
(Path other) subpath
(int int2, int int3) toFile()
toPath()
toRealPath
(LinkOption[] linkOption) private ResourcePath
toResourcePath
(@Nullable Path path) toString()
toUri()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods 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_ATTRIBUTES
Lnet/minecraft/resource/fs/ResourcePath;DIRECTORY_ATTRIBUTES:Ljava/nio/file/attribute/BasicFileAttributes;
intermediary field_40013
Lnet/minecraft/class_7668;field_40013:Ljava/nio/file/attribute/BasicFileAttributes;
official a
Latj;a:Ljava/nio/file/attribute/BasicFileAttributes;
-
FILE_ATTRIBUTES
- Mappings:
Namespace Name Mixin selector named FILE_ATTRIBUTES
Lnet/minecraft/resource/fs/ResourcePath;FILE_ATTRIBUTES:Ljava/nio/file/attribute/BasicFileAttributes;
intermediary field_40014
Lnet/minecraft/class_7668;field_40014:Ljava/nio/file/attribute/BasicFileAttributes;
official b
Latj;b:Ljava/nio/file/attribute/BasicFileAttributes;
-
COMPARATOR
- Mappings:
Namespace Name Mixin selector named COMPARATOR
Lnet/minecraft/resource/fs/ResourcePath;COMPARATOR:Ljava/util/Comparator;
intermediary field_40015
Lnet/minecraft/class_7668;field_40015:Ljava/util/Comparator;
official c
Latj;c:Ljava/util/Comparator;
-
name
- Mappings:
Namespace Name Mixin selector named name
Lnet/minecraft/resource/fs/ResourcePath;name:Ljava/lang/String;
intermediary field_40016
Lnet/minecraft/class_7668;field_40016:Ljava/lang/String;
official d
Latj;d:Ljava/lang/String;
-
fileSystem
- Mappings:
Namespace Name Mixin selector named fileSystem
Lnet/minecraft/resource/fs/ResourcePath;fileSystem:Lnet/minecraft/resource/fs/ResourceFileSystem;
intermediary field_40017
Lnet/minecraft/class_7668;field_40017:Lnet/minecraft/class_7670;
official e
Latj;e:Latl;
-
parent
- Mappings:
Namespace Name Mixin selector named parent
Lnet/minecraft/resource/fs/ResourcePath;parent:Lnet/minecraft/resource/fs/ResourcePath;
intermediary field_40018
Lnet/minecraft/class_7668;field_40018:Lnet/minecraft/class_7668;
official f
Latj;f:Latj;
-
names
- Mappings:
Namespace Name Mixin selector named names
Lnet/minecraft/resource/fs/ResourcePath;names:Ljava/util/List;
intermediary field_40019
Lnet/minecraft/class_7668;field_40019:Ljava/util/List;
official g
Latj;g:Ljava/util/List;
-
pathString
- Mappings:
Namespace Name Mixin selector named pathString
Lnet/minecraft/resource/fs/ResourcePath;pathString:Ljava/lang/String;
intermediary field_40020
Lnet/minecraft/class_7668;field_40020:Ljava/lang/String;
official h
Latj;h:Ljava/lang/String;
-
file
- Mappings:
Namespace Name Mixin selector named file
Lnet/minecraft/resource/fs/ResourcePath;file:Lnet/minecraft/resource/fs/ResourceFile;
intermediary field_40021
Lnet/minecraft/class_7668;field_40021:Lnet/minecraft/class_7673;
official i
Latj;i:Latm;
-
-
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;)V
intermediary <init>
Lnet/minecraft/class_7668;<init>(Lnet/minecraft/class_7670;Ljava/lang/String;Lnet/minecraft/class_7668;Lnet/minecraft/class_7673;)V
official <init>
Latj;<init>(Latl;Ljava/lang/String;Latj;Latm;)V
-
-
Method Details
-
relativize
- Mappings:
Namespace Name Mixin selector named relativize
Lnet/minecraft/resource/fs/ResourcePath;relativize(Lnet/minecraft/resource/fs/ResourcePath;Ljava/lang/String;)Lnet/minecraft/resource/fs/ResourcePath;
intermediary method_45217
Lnet/minecraft/class_7668;method_45217(Lnet/minecraft/class_7668;Ljava/lang/String;)Lnet/minecraft/class_7668;
official a
Latj;a(Latj;Ljava/lang/String;)Latj;
-
getFileSystem
- Specified by:
getFileSystem
in interfacePath
- Mappings:
Namespace Name Mixin selector named getFileSystem
Lnet/minecraft/resource/fs/ResourcePath;getFileSystem()Lnet/minecraft/resource/fs/ResourceFileSystem;
intermediary method_45214
Lnet/minecraft/class_7668;method_45214()Lnet/minecraft/class_7670;
official a
Latj;a()Latl;
-
isAbsolute
public boolean isAbsolute()- Specified by:
isAbsolute
in interfacePath
-
toFile
-
getRoot
- Specified by:
getRoot
in interfacePath
- Mappings:
Namespace Name Mixin selector named getRoot
Lnet/minecraft/resource/fs/ResourcePath;getRoot()Lnet/minecraft/resource/fs/ResourcePath;
intermediary method_45223
Lnet/minecraft/class_7668;method_45223()Lnet/minecraft/class_7668;
official b
Latj;b()Latj;
-
getFileName
- Specified by:
getFileName
in interfacePath
- Mappings:
Namespace Name Mixin selector named getFileName
Lnet/minecraft/resource/fs/ResourcePath;getFileName()Lnet/minecraft/resource/fs/ResourcePath;
intermediary method_45225
Lnet/minecraft/class_7668;method_45225()Lnet/minecraft/class_7668;
official c
Latj;c()Latj;
-
getParent
- Specified by:
getParent
in interfacePath
- Mappings:
Namespace Name Mixin selector named getParent
Lnet/minecraft/resource/fs/ResourcePath;getParent()Lnet/minecraft/resource/fs/ResourcePath;
intermediary method_45227
Lnet/minecraft/class_7668;method_45227()Lnet/minecraft/class_7668;
official d
Latj;d()Latj;
-
getNameCount
public int getNameCount()- Specified by:
getNameCount
in interfacePath
-
getNames
- Mappings:
Namespace Name Mixin selector named getNames
Lnet/minecraft/resource/fs/ResourcePath;getNames()Ljava/util/List;
intermediary method_45235
Lnet/minecraft/class_7668;method_45235()Ljava/util/List;
official l
Latj;l()Ljava/util/List;
-
getName
- Specified by:
getName
in interfacePath
- Mappings:
Namespace Name Mixin selector named getName
Lnet/minecraft/resource/fs/ResourcePath;getName(I)Lnet/minecraft/resource/fs/ResourcePath;
intermediary method_45215
Lnet/minecraft/class_7668;method_45215(I)Lnet/minecraft/class_7668;
official a
Latj;a(I)Latj;
-
subpath
- Specified by:
subpath
in interfacePath
- Mappings:
Namespace Name Mixin selector named subpath
Lnet/minecraft/resource/fs/ResourcePath;subpath(II)Lnet/minecraft/resource/fs/ResourcePath;
intermediary method_45216
Lnet/minecraft/class_7668;method_45216(II)Lnet/minecraft/class_7668;
official a
Latj;a(II)Latj;
-
startsWith
- Specified by:
startsWith
in interfacePath
- Mappings:
Namespace Name Mixin selector named startsWith
Lnet/minecraft/resource/fs/ResourcePath;startsWith(Ljava/nio/file/Path;)Z
intermediary startsWith
Lnet/minecraft/class_7668;startsWith(Ljava/nio/file/Path;)Z
official startsWith
Latj;startsWith(Ljava/nio/file/Path;)Z
-
endsWith
- Specified by:
endsWith
in interfacePath
- Mappings:
Namespace Name Mixin selector named endsWith
Lnet/minecraft/resource/fs/ResourcePath;endsWith(Ljava/nio/file/Path;)Z
intermediary endsWith
Lnet/minecraft/class_7668;endsWith(Ljava/nio/file/Path;)Z
official endsWith
Latj;endsWith(Ljava/nio/file/Path;)Z
-
normalize
- Specified by:
normalize
in interfacePath
- Mappings:
Namespace Name Mixin selector named normalize
Lnet/minecraft/resource/fs/ResourcePath;normalize()Lnet/minecraft/resource/fs/ResourcePath;
intermediary method_45228
Lnet/minecraft/class_7668;method_45228()Lnet/minecraft/class_7668;
official e
Latj;e()Latj;
-
resolve
- Specified by:
resolve
in interfacePath
- Mappings:
Namespace Name Mixin selector named resolve
Lnet/minecraft/resource/fs/ResourcePath;resolve(Ljava/nio/file/Path;)Lnet/minecraft/resource/fs/ResourcePath;
intermediary method_45220
Lnet/minecraft/class_7668;method_45220(Ljava/nio/file/Path;)Lnet/minecraft/class_7668;
official a
Latj;a(Ljava/nio/file/Path;)Latj;
-
get
- Mappings:
Namespace Name Mixin selector named get
Lnet/minecraft/resource/fs/ResourcePath;get(Ljava/util/List;)Lnet/minecraft/resource/fs/ResourcePath;
intermediary method_45221
Lnet/minecraft/class_7668;method_45221(Ljava/util/List;)Lnet/minecraft/class_7668;
official a
Latj;a(Ljava/util/List;)Latj;
-
get
- Mappings:
Namespace Name Mixin selector named get
Lnet/minecraft/resource/fs/ResourcePath;get(Ljava/lang/String;)Lnet/minecraft/resource/fs/ResourcePath;
intermediary method_45219
Lnet/minecraft/class_7668;method_45219(Ljava/lang/String;)Lnet/minecraft/class_7668;
official a
Latj;a(Ljava/lang/String;)Latj;
-
isSpecial
- Mappings:
Namespace Name Mixin selector named isSpecial
Lnet/minecraft/resource/fs/ResourcePath;isSpecial(Lnet/minecraft/resource/fs/ResourceFile;)Z
intermediary method_45218
Lnet/minecraft/class_7668;method_45218(Lnet/minecraft/class_7673;)Z
official a
Latj;a(Latm;)Z
-
relativize
- Specified by:
relativize
in interfacePath
- Mappings:
Namespace Name Mixin selector named relativize
Lnet/minecraft/resource/fs/ResourcePath;relativize(Ljava/nio/file/Path;)Lnet/minecraft/resource/fs/ResourcePath;
intermediary method_45224
Lnet/minecraft/class_7668;method_45224(Ljava/nio/file/Path;)Lnet/minecraft/class_7668;
official b
Latj;b(Ljava/nio/file/Path;)Latj;
-
toUri
-
toAbsolutePath
- Specified by:
toAbsolutePath
in interfacePath
- Mappings:
Namespace Name Mixin selector named toAbsolutePath
Lnet/minecraft/resource/fs/ResourcePath;toAbsolutePath()Lnet/minecraft/resource/fs/ResourcePath;
intermediary method_45229
Lnet/minecraft/class_7668;method_45229()Lnet/minecraft/class_7668;
official f
Latj;f()Latj;
-
toRealPath
- Specified by:
toRealPath
in interfacePath
- Mappings:
Namespace Name Mixin selector named toRealPath
Lnet/minecraft/resource/fs/ResourcePath;toRealPath([Ljava/nio/file/LinkOption;)Lnet/minecraft/resource/fs/ResourcePath;
intermediary method_45222
Lnet/minecraft/class_7668;method_45222([Ljava/nio/file/LinkOption;)Lnet/minecraft/class_7668;
official a
Latj;a([Ljava/nio/file/LinkOption;)Latj;
-
register
public WatchKey register(WatchService watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier[] modifiers) - Specified by:
register
in interfacePath
- Specified by:
register
in interfaceWatchable
- Mappings:
Namespace Name Mixin selector 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;
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;
official register
Latj;register(Ljava/nio/file/WatchService;[Ljava/nio/file/WatchEvent$Kind;[Ljava/nio/file/WatchEvent$Modifier;)Ljava/nio/file/WatchKey;
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Path>
- Specified by:
compareTo
in interfacePath
- Mappings:
Namespace Name Mixin selector named compareTo
Lnet/minecraft/resource/fs/ResourcePath;compareTo(Ljava/nio/file/Path;)I
intermediary compareTo
Lnet/minecraft/class_7668;compareTo(Ljava/nio/file/Path;)I
official compareTo
Latj;compareTo(Ljava/nio/file/Path;)I
-
equals
- Specified by:
equals
in interfacePath
- Overrides:
equals
in classObject
- Mappings:
Namespace Name Mixin selector named equals
Lnet/minecraft/resource/fs/ResourcePath;equals(Ljava/lang/Object;)Z
intermediary equals
Lnet/minecraft/class_7668;equals(Ljava/lang/Object;)Z
official equals
Latj;equals(Ljava/lang/Object;)Z
-
isNormal
private boolean isNormal()- Mappings:
Namespace Name Mixin selector named isNormal
Lnet/minecraft/resource/fs/ResourcePath;isNormal()Z
intermediary method_45236
Lnet/minecraft/class_7668;method_45236()Z
official m
Latj;m()Z
-
hashCode
public int hashCode() -
toString
-
getPathString
- Mappings:
Namespace Name Mixin selector named getPathString
Lnet/minecraft/resource/fs/ResourcePath;getPathString()Ljava/lang/String;
intermediary method_45237
Lnet/minecraft/class_7668;method_45237()Ljava/lang/String;
official n
Latj;n()Ljava/lang/String;
-
toResourcePath
- Mappings:
Namespace Name Mixin selector named toResourcePath
Lnet/minecraft/resource/fs/ResourcePath;toResourcePath(Ljava/nio/file/Path;)Lnet/minecraft/resource/fs/ResourcePath;
intermediary method_45226
Lnet/minecraft/class_7668;method_45226(Ljava/nio/file/Path;)Lnet/minecraft/class_7668;
official c
Latj;c(Ljava/nio/file/Path;)Latj;
-
isReadable
public boolean isReadable()- Mappings:
Namespace Name Mixin selector named isReadable
Lnet/minecraft/resource/fs/ResourcePath;isReadable()Z
intermediary method_45230
Lnet/minecraft/class_7668;method_45230()Z
official g
Latj;g()Z
-
toPath
- Mappings:
Namespace Name Mixin selector named toPath
Lnet/minecraft/resource/fs/ResourcePath;toPath()Ljava/nio/file/Path;
intermediary method_45231
Lnet/minecraft/class_7668;method_45231()Ljava/nio/file/Path;
official h
Latj;h()Ljava/nio/file/Path;
-
toDirectory
- Mappings:
Namespace Name Mixin selector named toDirectory
Lnet/minecraft/resource/fs/ResourcePath;toDirectory()Lnet/minecraft/resource/fs/ResourceFile$Directory;
intermediary method_45232
Lnet/minecraft/class_7668;method_45232()Lnet/minecraft/class_7673$class_7674;
official i
Latj;i()Latm$a;
-
getAttributeView
- Mappings:
Namespace Name Mixin selector named getAttributeView
Lnet/minecraft/resource/fs/ResourcePath;getAttributeView()Ljava/nio/file/attribute/BasicFileAttributeView;
intermediary method_45233
Lnet/minecraft/class_7668;method_45233()Ljava/nio/file/attribute/BasicFileAttributeView;
official j
Latj;j()Ljava/nio/file/attribute/BasicFileAttributeView;
-
getAttributes
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector named getAttributes
Lnet/minecraft/resource/fs/ResourcePath;getAttributes()Ljava/nio/file/attribute/BasicFileAttributes;
intermediary method_45234
Lnet/minecraft/class_7668;method_45234()Ljava/nio/file/attribute/BasicFileAttributes;
official k
Latj;k()Ljava/nio/file/attribute/BasicFileAttributes;
-