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 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, resourceExists
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isHidden
public static boolean validatePath(java.io.File p_195777_0_, java.lang.String p_195777_1_) 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 pathIn, int maxDepth, java.util.function.Predicate<java.lang.String> filter)