public class FileResourcePack extends AbstractResourcePack implements java.io.Closeable
Modifier and Type | Field and Description |
---|---|
static com.google.common.base.Splitter |
ENTRY_NAME_SPLITTER |
resourcePackFile
Constructor and Description |
---|
FileResourcePack(java.io.File resourcePackFileIn) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
finalize() |
protected java.io.InputStream |
getInputStreamByName(java.lang.String name) |
java.util.Set<java.lang.String> |
getResourceDomains() |
boolean |
hasResourceName(java.lang.String name) |
getInputStream, getPackImage, getPackMetadata, getPackName, getRelativeName, logNameNotLowercase, resourceExists
public static final com.google.common.base.Splitter ENTRY_NAME_SPLITTER
protected java.io.InputStream getInputStreamByName(java.lang.String name) throws java.io.IOException
getInputStreamByName
in class AbstractResourcePack
java.io.IOException
public boolean hasResourceName(java.lang.String name)
hasResourceName
in class AbstractResourcePack
public java.util.Set<java.lang.String> getResourceDomains()
getResourceDomains
in interface IResourcePack
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException