public class FolderPack extends ResourcePack
Modifier and Type | Field and Description |
---|---|
private static com.google.common.base.CharMatcher |
BACKSLASH_MATCHER |
private static org.apache.logging.log4j.Logger |
LOGGER |
private static boolean |
OS_WINDOWS |
file
Constructor and Description |
---|
FolderPack(java.io.File folder) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
private void |
func_199546_a(java.io.File p_199546_1_,
int p_199546_2_,
java.lang.String p_199546_3_,
java.util.List<ResourceLocation> p_199546_4_,
java.lang.String p_199546_5_,
java.util.function.Predicate<java.lang.String> p_199546_6_) |
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) |
private java.io.File |
getFile(java.lang.String p_195776_1_) |
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
private static final org.apache.logging.log4j.Logger LOGGER
private static final boolean OS_WINDOWS
private static final com.google.common.base.CharMatcher BACKSLASH_MATCHER
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
@Nullable private java.io.File getFile(java.lang.String p_195776_1_)
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)
private void func_199546_a(java.io.File p_199546_1_, int p_199546_2_, java.lang.String p_199546_3_, java.util.List<ResourceLocation> p_199546_4_, java.lang.String p_199546_5_, java.util.function.Predicate<java.lang.String> p_199546_6_)