Package net.minecraft.resources
Class FilePack
java.lang.Object
net.minecraft.resources.ResourcePack
net.minecraft.resources.FilePack
- All Implemented Interfaces:
AutoCloseable,IResourcePack,IForgeResourcePack
-
Field Summary
FieldsFields inherited from class net.minecraft.resources.ResourcePack
file -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected voidfinalize()getNamespaces(ResourcePackType p_195759_1_) private ZipFileprotected 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_) booleanhasResource(String p_195768_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, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraftforge.common.extensions.IForgeResourcePack
isHidden
-
Field Details
-
SPLITTER
public static final com.google.common.base.Splitter SPLITTER -
zipFile
-
-
Constructor Details
-
FilePack
-
-
Method Details
-
getOrCreateZipFile
- Throws:
IOException
-
getResource
- Specified by:
getResourcein classResourcePack- Throws:
IOException
-
hasResource
- Specified by:
hasResourcein classResourcePack
-
getNamespaces
-
finalize
-
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_)
-