Package net.minecraft.resource
Class DirectoryResourcePack
java.lang.Object
net.minecraft.resource.AbstractFileResourcePack
net.minecraft.resource.DirectoryResourcePack
- All Implemented Interfaces:
AutoCloseable
,ResourcePack
public class DirectoryResourcePack extends AbstractFileResourcePack
- Mappings:
Namespace Name official aby
intermediary net/minecraft/class_3259
named net/minecraft/resource/DirectoryResourcePack
-
Field Summary
Fields Modifier and Type Field Description private static CharMatcher
BACKSLASH_MATCHER
private static boolean
IS_WINDOWS
private static Logger
LOGGER
Fields inherited from class net.minecraft.resource.AbstractFileResourcePack
base
-
Constructor Summary
Constructors Constructor Description DirectoryResourcePack(File base)
-
Method Summary
Modifier and Type Method Description void
close()
protected boolean
containsFile(String name)
private void
findFiles(File file, int maxDepth, String namespace, List<Identifier> found, String prefix, Predicate<String> pathFilter)
Collection<Identifier>
findResources(ResourceType type, String namespace, String prefix, int maxDepth, Predicate<String> pathFilter)
private File
getFile(String name)
Set<String>
getNamespaces(ResourceType type)
static boolean
isValidPath(File file, String filename)
protected InputStream
openFile(String name)
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
Laby;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 c
Laby;c: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 d
Laby;d: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>
Labw;<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
Laby;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
Labw;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
Labw;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
Laby;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
Labz;a(Laca;)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()- Mappings:
Namespace Name Mixin selector official close
Labz;close()V
intermediary close
Lnet/minecraft/class_3262;close()V
named close
Lnet/minecraft/resource/ResourcePack;close()V
-
findResources
public Collection<Identifier> findResources(ResourceType type, String namespace, String prefix, int maxDepth, Predicate<String> pathFilter)- Mappings:
Namespace Name Mixin selector official a
Labz;a(Laca;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
Laby;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
-