Package net.minecraft.resource
Class DirectoryResourcePack
java.lang.Object
net.minecraft.resource.AbstractFileResourcePack
net.minecraft.resource.DirectoryResourcePack
- All Implemented Interfaces:
AutoCloseable
,ResourcePack
- Mappings:
Namespace Name official ael
intermediary net/minecraft/class_3259
named net/minecraft/resource/DirectoryResourcePack
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final CharMatcher
private static final boolean
private static final Logger
Fields inherited from class net.minecraft.resource.AbstractFileResourcePack
base
Fields inherited from interface net.minecraft.resource.ResourcePack
METADATA_PATH_SUFFIX, PACK_METADATA_NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected boolean
containsFile
(String name) private void
findFiles
(File file, int maxDepth, String namespace, List<Identifier> found, String prefix, Predicate<String> pathFilter) findResources
(ResourceType type, String namespace, String prefix, int maxDepth, Predicate<String> pathFilter) getNamespaces
(ResourceType type) static boolean
isValidPath
(File file, String filename) protected InputStream
Methods inherited from class net.minecraft.resource.AbstractFileResourcePack
contains, getName, open, openRoot, parseMetadata, parseMetadata, relativize, warnNonLowerCaseNamespace
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official b
Lael;b:Lorg/apache/logging/log4j/Logger;
intermediary field_14187
Lnet/minecraft/class_3259;field_14187:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/resource/DirectoryResourcePack;LOGGER:Lorg/apache/logging/log4j/Logger;
-
IS_WINDOWS
private static final boolean IS_WINDOWS- Mappings:
Namespace Name Mixin selector official e
Lael;e:Z
intermediary field_14186
Lnet/minecraft/class_3259;field_14186:Z
named IS_WINDOWS
Lnet/minecraft/resource/DirectoryResourcePack;IS_WINDOWS:Z
-
BACKSLASH_MATCHER
- Mappings:
Namespace Name Mixin selector official f
Lael;f:Lcom/google/common/base/CharMatcher;
intermediary field_14185
Lnet/minecraft/class_3259;field_14185:Lcom/google/common/base/CharMatcher;
named BACKSLASH_MATCHER
Lnet/minecraft/resource/DirectoryResourcePack;BACKSLASH_MATCHER:Lcom/google/common/base/CharMatcher;
-
-
Constructor Details
-
DirectoryResourcePack
- Mappings:
Namespace Name Mixin selector official <init>
Laej;<init>(Ljava/io/File;)V
intermediary <init>
Lnet/minecraft/class_3255;<init>(Ljava/io/File;)V
named <init>
Lnet/minecraft/resource/AbstractFileResourcePack;<init>(Ljava/io/File;)V
-
-
Method Details
-
isValidPath
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lael;a(Ljava/io/File;Ljava/lang/String;)Z
intermediary method_14402
Lnet/minecraft/class_3259;method_14402(Ljava/io/File;Ljava/lang/String;)Z
named isValidPath
Lnet/minecraft/resource/DirectoryResourcePack;isValidPath(Ljava/io/File;Ljava/lang/String;)Z
-
openFile
- Specified by:
openFile
in classAbstractFileResourcePack
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Laej;a(Ljava/lang/String;)Ljava/io/InputStream;
intermediary method_14391
Lnet/minecraft/class_3255;method_14391(Ljava/lang/String;)Ljava/io/InputStream;
named openFile
Lnet/minecraft/resource/AbstractFileResourcePack;openFile(Ljava/lang/String;)Ljava/io/InputStream;
-
containsFile
- Specified by:
containsFile
in classAbstractFileResourcePack
- Mappings:
Namespace Name Mixin selector official c
Laej;c(Ljava/lang/String;)Z
intermediary method_14393
Lnet/minecraft/class_3255;method_14393(Ljava/lang/String;)Z
named containsFile
Lnet/minecraft/resource/AbstractFileResourcePack;containsFile(Ljava/lang/String;)Z
-
getFile
- Mappings:
Namespace Name Mixin selector official e
Lael;e(Ljava/lang/String;)Ljava/io/File;
intermediary method_14401
Lnet/minecraft/class_3259;method_14401(Ljava/lang/String;)Ljava/io/File;
named getFile
Lnet/minecraft/resource/DirectoryResourcePack;getFile(Ljava/lang/String;)Ljava/io/File;
-
getNamespaces
- Mappings:
Namespace Name Mixin selector official a
Laem;a(Laen;)Ljava/util/Set;
intermediary method_14406
Lnet/minecraft/class_3262;method_14406(Lnet/minecraft/class_3264;)Ljava/util/Set;
named getNamespaces
Lnet/minecraft/resource/ResourcePack;getNamespaces(Lnet/minecraft/resource/ResourceType;)Ljava/util/Set;
-
close
public void close() -
findResources
public Collection<Identifier> findResources(ResourceType type, String namespace, String prefix, int maxDepth, Predicate<String> pathFilter) - Mappings:
Namespace Name Mixin selector official a
Laem;a(Laen;Ljava/lang/String;Ljava/lang/String;ILjava/util/function/Predicate;)Ljava/util/Collection;
intermediary method_14408
Lnet/minecraft/class_3262;method_14408(Lnet/minecraft/class_3264;Ljava/lang/String;Ljava/lang/String;ILjava/util/function/Predicate;)Ljava/util/Collection;
named findResources
Lnet/minecraft/resource/ResourcePack;findResources(Lnet/minecraft/resource/ResourceType;Ljava/lang/String;Ljava/lang/String;ILjava/util/function/Predicate;)Ljava/util/Collection;
-
findFiles
private void findFiles(File file, int maxDepth, String namespace, List<Identifier> found, String prefix, Predicate<String> pathFilter) - Mappings:
Namespace Name Mixin selector official a
Lael;a(Ljava/io/File;ILjava/lang/String;Ljava/util/List;Ljava/lang/String;Ljava/util/function/Predicate;)V
intermediary method_14400
Lnet/minecraft/class_3259;method_14400(Ljava/io/File;ILjava/lang/String;Ljava/util/List;Ljava/lang/String;Ljava/util/function/Predicate;)V
named findFiles
Lnet/minecraft/resource/DirectoryResourcePack;findFiles(Ljava/io/File;ILjava/lang/String;Ljava/util/List;Ljava/lang/String;Ljava/util/function/Predicate;)V
-