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, resourceExists
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isHidden
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 pathIn, int maxDepth, java.util.function.Predicate<java.lang.String> filter)