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.CharMatcherprivate static final org.apache.logging.log4j.Loggerprivate static final booleanFields inherited from class net.minecraft.resources.ResourcePack
file -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()private FilegetNamespaces(ResourcePackType p_195759_1_) protected InputStreamgetResource(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 booleanhasResource(String p_195768_1_) private voidlistResources(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 booleanvalidatePath(File p_195777_0_, String p_195777_1_) Methods inherited from class net.minecraft.resources.ResourcePack
getMetadataFromStream, getMetadataSection, getName, getRelativePath, getResource, getRootResource, hasResource, logWarningMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getResourcein classResourcePack- Throws:
IOException
-
hasResource
- Specified by:
hasResourcein 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
-