Package net.minecraft.resource
Class ZipResourcePack
java.lang.Object
net.minecraft.resource.AbstractFileResourcePack
net.minecraft.resource.ZipResourcePack
- All Implemented Interfaces:
AutoCloseable
,ResourcePack
public class ZipResourcePack extends AbstractFileResourcePack
- Mappings:
Namespace Name official abx
intermediary net/minecraft/class_3258
named net/minecraft/resource/ZipResourcePack
-
Field Summary
Fields Modifier and Type Field Description private ZipFile
file
static Splitter
TYPE_NAMESPACE_SPLITTER
Fields inherited from class net.minecraft.resource.AbstractFileResourcePack
base
-
Constructor Summary
Constructors Constructor Description ZipResourcePack(File base)
-
Method Summary
Modifier and Type Method Description void
close()
boolean
containsFile(String name)
protected void
finalize()
Collection<Identifier>
findResources(ResourceType type, String namespace, String prefix, int maxDepth, Predicate<String> pathFilter)
Set<String>
getNamespaces(ResourceType type)
private ZipFile
getZipFile()
protected InputStream
openFile(String name)
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
Labx;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 c
Labx;c: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>
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
-
getZipFile
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official b
Labx;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
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
-
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;
-
finalize
-
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;
-