Package net.minecraft.resource
Class ZipResourcePack
java.lang.Object
net.minecraft.resource.AbstractFileResourcePack
net.minecraft.resource.ZipResourcePack
- All Implemented Interfaces:
AutoCloseable
,ResourcePack
- Mappings:
Namespace Name official act
intermediary net/minecraft/class_3258
named net/minecraft/resource/ZipResourcePack
-
Field Summary
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()
boolean
containsFile(String name)
protected void
finalize()
findResources(ResourceType type, String namespace, String prefix, int maxDepth, Predicate<String> pathFilter)
getNamespaces(ResourceType type)
private ZipFile
protected InputStream
Methods inherited from class net.minecraft.resource.AbstractFileResourcePack
contains, getName, open, openRoot, parseMetadata, parseMetadata, relativize, warnNonLowerCaseNamespace
-
Field Details
-
TYPE_NAMESPACE_SPLITTER
- Mappings:
Namespace Name Mixin selector official b
Lact;b:Lcom/google/common/base/Splitter;
intermediary field_14183
Lnet/minecraft/class_3258;field_14183:Lcom/google/common/base/Splitter;
named TYPE_NAMESPACE_SPLITTER
Lnet/minecraft/resource/ZipResourcePack;TYPE_NAMESPACE_SPLITTER:Lcom/google/common/base/Splitter;
-
file
- Mappings:
Namespace Name Mixin selector official e
Lact;e:Ljava/util/zip/ZipFile;
intermediary field_14184
Lnet/minecraft/class_3258;field_14184:Ljava/util/zip/ZipFile;
named file
Lnet/minecraft/resource/ZipResourcePack;file:Ljava/util/zip/ZipFile;
-
-
Constructor Details
-
ZipResourcePack
- Mappings:
Namespace Name Mixin selector official <init>
Lacs;<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
-
getZipFile
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official b
Lact;b()Ljava/util/zip/ZipFile;
intermediary method_14399
Lnet/minecraft/class_3258;method_14399()Ljava/util/zip/ZipFile;
named getZipFile
Lnet/minecraft/resource/ZipResourcePack;getZipFile()Ljava/util/zip/ZipFile;
-
openFile
- Specified by:
openFile
in classAbstractFileResourcePack
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lacs;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
Lacs;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
-
getNamespaces
- Mappings:
Namespace Name Mixin selector official a
Lacv;a(Lacw;)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;
-
finalize
-
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
Lacv;a(Lacw;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;
-