public class FolderPack extends AbstractResourcePack
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 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) |
protected boolean |
resourceExists(java.lang.String resourcePath) |
static boolean |
validatePath(java.io.File p_195777_0_,
java.lang.String p_195777_1_) |
getMetadata, getName, getRelativeString, getResourceMetadata, getResourceStream, getRootResourceStream, onIgnoreNonLowercaseNamespace, resourceExistsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisHiddenpublic static boolean validatePath(java.io.File p_195777_0_,
java.lang.String p_195777_1_)
throws java.io.IOException
java.io.IOExceptionprotected java.io.InputStream getInputStream(java.lang.String resourcePath)
throws java.io.IOException
getInputStream in class AbstractResourcePackjava.io.IOExceptionprotected boolean resourceExists(java.lang.String resourcePath)
resourceExists in class AbstractResourcePackpublic java.util.Set<java.lang.String> getResourceNamespaces(ResourcePackType type)
public void close()
throws java.io.IOException
java.io.IOExceptionpublic java.util.Collection<ResourceLocation> getAllResourceLocations(ResourcePackType type, java.lang.String pathIn, int maxDepth, java.util.function.Predicate<java.lang.String> filter)