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 ahk
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 org.slf4j.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, String namespace, List<Identifier> foundIds, String rootDirectory, Predicate<Identifier> allowedPathPredicate) findResources
(ResourceType type, String namespace, String prefix, Predicate<Identifier> allowedPathPredicate) 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
private static final org.slf4j.Logger LOGGER- Mappings:
Namespace Name Mixin selector official b
Lahk;b:Lorg/slf4j/Logger;
intermediary field_14187
Lnet/minecraft/class_3259;field_14187:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/resource/DirectoryResourcePack;LOGGER:Lorg/slf4j/Logger;
-
IS_WINDOWS
private static final boolean IS_WINDOWS- Mappings:
Namespace Name Mixin selector official e
Lahk;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
Lahk;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>
Lahi;<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
Lahk;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
Lahi;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
Lahi;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
Lahk;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
Lahl;a(Lahm;)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, Predicate<Identifier> allowedPathPredicate) - Mappings:
Namespace Name Mixin selector official a
Lahl;a(Lahm;Ljava/lang/String;Ljava/lang/String;Ljava/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;Ljava/util/function/Predicate;)Ljava/util/Collection;
named findResources
Lnet/minecraft/resource/ResourcePack;findResources(Lnet/minecraft/resource/ResourceType;Ljava/lang/String;Ljava/lang/String;Ljava/util/function/Predicate;)Ljava/util/Collection;
-
findFiles
private void findFiles(File file, String namespace, List<Identifier> foundIds, String rootDirectory, Predicate<Identifier> allowedPathPredicate) - Mappings:
Namespace Name Mixin selector official a
Lahk;a(Ljava/io/File;Ljava/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;Ljava/lang/String;Ljava/util/List;Ljava/lang/String;Ljava/util/function/Predicate;)V
named findFiles
Lnet/minecraft/resource/DirectoryResourcePack;findFiles(Ljava/io/File;Ljava/lang/String;Ljava/util/List;Ljava/lang/String;Ljava/util/function/Predicate;)V
-