public class FilePack extends ResourcePack
| Modifier and Type | Field and Description |
|---|---|
static com.google.common.base.Splitter |
PATH_SPLITTER |
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 pathIn,
int maxDepth,
java.util.function.Predicate<java.lang.String> filter) |
protected java.io.InputStream |
getInputStream(java.lang.String resourcePath) |
java.util.Set<java.lang.String> |
getResourceNamespaces(ResourcePackType type) |
boolean |
resourceExists(java.lang.String resourcePath) |
getMetadata, getName, getRelativeString, getResourceMetadata, getResourceStream, getRootResourceStream, onIgnoreNonLowercaseNamespace, resourceExistsclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisHiddenprotected java.io.InputStream getInputStream(java.lang.String resourcePath)
throws java.io.IOException
getInputStream in class ResourcePackjava.io.IOExceptionpublic boolean resourceExists(java.lang.String resourcePath)
resourceExists in class ResourcePackpublic java.util.Set<java.lang.String> getResourceNamespaces(ResourcePackType type)
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic void close()
public java.util.Collection<ResourceLocation> getAllResourceLocations(ResourcePackType type, java.lang.String pathIn, int maxDepth, java.util.function.Predicate<java.lang.String> filter)