Package net.minecraft.resources
Class FolderPack
- java.lang.Object
-
- net.minecraft.resources.ResourcePack
-
- net.minecraft.resources.FolderPack
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,IResourcePack
,IForgeResourcePack
public class FolderPack extends ResourcePack
-
-
Field Summary
Fields Modifier and Type Field Description private static com.google.common.base.CharMatcher
BACKSLASH_MATCHER
private static org.apache.logging.log4j.Logger
LOGGER
private static boolean
ON_WINDOWS
-
Fields inherited from class net.minecraft.resources.ResourcePack
file
-
-
Constructor Summary
Constructors Constructor Description FolderPack(java.io.File p_i47914_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
private java.io.File
getFile(java.lang.String p_195776_1_)
java.util.Set<java.lang.String>
getNamespaces(ResourcePackType p_195759_1_)
protected java.io.InputStream
getResource(java.lang.String p_195766_1_)
java.util.Collection<ResourceLocation>
getResources(ResourcePackType p_225637_1_, java.lang.String p_225637_2_, java.lang.String p_225637_3_, int p_225637_4_, java.util.function.Predicate<java.lang.String> p_225637_5_)
protected boolean
hasResource(java.lang.String p_195768_1_)
private void
listResources(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_)
static boolean
validatePath(java.io.File p_195777_0_, java.lang.String p_195777_1_)
-
Methods inherited from class net.minecraft.resources.ResourcePack
getMetadataFromStream, getMetadataSection, getName, getRelativePath, getResource, getRootResource, hasResource, logWarning
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraftforge.common.extensions.IForgeResourcePack
isHidden
-
-
-
-
Method Detail
-
validatePath
public static boolean validatePath(java.io.File p_195777_0_, java.lang.String p_195777_1_) throws java.io.IOException
- Throws:
java.io.IOException
-
getResource
protected java.io.InputStream getResource(java.lang.String p_195766_1_) throws java.io.IOException
- Specified by:
getResource
in classResourcePack
- Throws:
java.io.IOException
-
hasResource
protected boolean hasResource(java.lang.String p_195768_1_)
- Specified by:
hasResource
in classResourcePack
-
getFile
@Nullable private java.io.File getFile(java.lang.String p_195776_1_)
-
getNamespaces
public java.util.Set<java.lang.String> getNamespaces(ResourcePackType p_195759_1_)
-
close
public void close()
-
getResources
public java.util.Collection<ResourceLocation> getResources(ResourcePackType p_225637_1_, java.lang.String p_225637_2_, java.lang.String p_225637_3_, int p_225637_4_, java.util.function.Predicate<java.lang.String> p_225637_5_)
-
listResources
private void listResources(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_)
-
-