public class FolderPack extends ResourcePack
file
Constructor and Description |
---|
FolderPack(java.io.File folder) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
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) |
protected boolean |
resourceExists(java.lang.String resourcePath) |
static boolean |
validatePath(java.io.File fileIn,
java.lang.String pathIn) |
getMetadata, getName, getRelativeString, getResourceMetadata, getResourceStream, getRootResourceStream, onIgnoreNonLowercaseNamespace, resourceExists
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isHidden
public static boolean validatePath(java.io.File fileIn, java.lang.String pathIn) 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
protected boolean resourceExists(java.lang.String resourcePath)
resourceExists
in class ResourcePack
public java.util.Set<java.lang.String> getResourceNamespaces(ResourcePackType type)
public void close() throws java.io.IOException
java.io.IOException
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)