public class FilePack extends ResourcePack
Modifier and Type | Field and Description |
---|---|
static com.google.common.base.Splitter |
PATH_SPLITTER |
private java.util.zip.ZipFile |
zipFile |
file
Constructor and Description |
---|
FilePack(java.io.File fileIn) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
finalize() |
java.util.Collection<ResourceLocation> |
getAllResourceLocations(ResourcePackType type,
java.lang.String namespaceIn,
java.lang.String pathIn,
int maxDepthIn,
java.util.function.Predicate<java.lang.String> filterIn) |
protected java.io.InputStream |
getInputStream(java.lang.String resourcePath) |
java.util.Set<java.lang.String> |
getResourceNamespaces(ResourcePackType type) |
private java.util.zip.ZipFile |
getResourcePackZipFile() |
boolean |
resourceExists(java.lang.String resourcePath) |
getMetadata, getName, getRelativeString, getResourceMetadata, getResourceStream, getRootResourceStream, onIgnoreNonLowercaseNamespace, resourceExists
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isHidden
public static final com.google.common.base.Splitter PATH_SPLITTER
private java.util.zip.ZipFile zipFile
private java.util.zip.ZipFile getResourcePackZipFile() throws java.io.IOException
java.io.IOException
protected java.io.InputStream getInputStream(java.lang.String resourcePath) throws java.io.IOException
getInputStream
in class ResourcePack
java.io.IOException
public boolean resourceExists(java.lang.String resourcePath)
resourceExists
in class ResourcePack
public java.util.Set<java.lang.String> getResourceNamespaces(ResourcePackType type)
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void close()
public java.util.Collection<ResourceLocation> getAllResourceLocations(ResourcePackType type, java.lang.String namespaceIn, java.lang.String pathIn, int maxDepthIn, java.util.function.Predicate<java.lang.String> filterIn)