Package net.minecraft.resources
Class FolderPack
java.lang.Object
net.minecraft.resources.ResourcePack
net.minecraft.resources.FolderPack
- All Implemented Interfaces:
AutoCloseable
,IResourcePack
,IForgeResourcePack
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.google.common.base.CharMatcher
private static final org.apache.logging.log4j.Logger
private static final boolean
Fields inherited from class net.minecraft.resources.ResourcePack
file
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
private File
getNamespaces
(ResourcePackType p_195759_1_) protected InputStream
getResource
(String p_195766_1_) getResources
(ResourcePackType p_225637_1_, String p_225637_2_, String p_225637_3_, int p_225637_4_, Predicate<String> p_225637_5_) protected boolean
hasResource
(String p_195768_1_) private void
listResources
(File p_199546_1_, int p_199546_2_, String p_199546_3_, List<ResourceLocation> p_199546_4_, String p_199546_5_, Predicate<String> p_199546_6_) static boolean
validatePath
(File p_195777_0_, 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
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
ON_WINDOWS
private static final boolean ON_WINDOWS -
BACKSLASH_MATCHER
private static final com.google.common.base.CharMatcher BACKSLASH_MATCHER
-
-
Constructor Details
-
FolderPack
-
-
Method Details
-
validatePath
- Throws:
IOException
-
getResource
- Specified by:
getResource
in classResourcePack
- Throws:
IOException
-
hasResource
- Specified by:
hasResource
in classResourcePack
-
getFile
-
getNamespaces
-
close
public void close() -
getResources
public Collection<ResourceLocation> getResources(ResourcePackType p_225637_1_, String p_225637_2_, String p_225637_3_, int p_225637_4_, Predicate<String> p_225637_5_) -
listResources
-