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
-
Field Summary
Fields Modifier and Type Field Description private ZipFilefilestatic SplitterTYPE_NAMESPACE_SPLITTERFields inherited from class net.minecraft.resource.AbstractFileResourcePack
base -
Constructor Summary
Constructors Constructor Description ZipResourcePack(File base) -
Method Summary
Modifier and Type Method Description voidclose()booleancontainsFile(String name)protected voidfinalize()Collection<Identifier>findResources(ResourceType type, String namespace, String prefix, int maxDepth, Predicate<String> pathFilter)Set<String>getNamespaces(ResourceType type)private ZipFilegetZipFile()protected InputStreamopenFile(String name)Methods inherited from class net.minecraft.resource.AbstractFileResourcePack
contains, getName, open, openRoot, parseMetadata, parseMetadata, relativize, warnNonLowerCaseNamespace
-
Field Details
-
TYPE_NAMESPACE_SPLITTER
-
file
-
-
Constructor Details
-
ZipResourcePack
-
-
Method Details
-
getZipFile
- Throws:
IOException
-
openFile
- Specified by:
openFilein classAbstractFileResourcePack- Throws:
IOException
-
containsFile
- Specified by:
containsFilein classAbstractFileResourcePack
-
getNamespaces
-
finalize
-
close
public void close() -
findResources
public Collection<Identifier> findResources(ResourceType type, String namespace, String prefix, int maxDepth, Predicate<String> pathFilter)
-