Package net.minecraft.resources
Class FilePack
- java.lang.Object
-
- net.minecraft.resources.ResourcePack
-
- net.minecraft.resources.FilePack
-
- All Implemented Interfaces:
java.lang.AutoCloseable,IResourcePack,IForgeResourcePack
public class FilePack extends ResourcePack
-
-
Field Summary
Fields Modifier and Type Field Description static com.google.common.base.SplitterSPLITTERprivate java.util.zip.ZipFilezipFile-
Fields inherited from class net.minecraft.resources.ResourcePack
file
-
-
Constructor Summary
Constructors Constructor Description FilePack(java.io.File p_i47915_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()protected voidfinalize()java.util.Set<java.lang.String>getNamespaces(ResourcePackType p_195759_1_)private java.util.zip.ZipFilegetOrCreateZipFile()protected java.io.InputStreamgetResource(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_)booleanhasResource(java.lang.String p_195768_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, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraftforge.common.extensions.IForgeResourcePack
isHidden
-
-
-
-
Method Detail
-
getOrCreateZipFile
private java.util.zip.ZipFile getOrCreateZipFile() 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:
getResourcein classResourcePack- Throws:
java.io.IOException
-
hasResource
public boolean hasResource(java.lang.String p_195768_1_)
- Specified by:
hasResourcein classResourcePack
-
getNamespaces
public java.util.Set<java.lang.String> getNamespaces(ResourcePackType p_195759_1_)
-
finalize
protected void finalize() throws java.lang.Throwable- Overrides:
finalizein classjava.lang.Object- Throws:
java.lang.Throwable
-
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_)
-
-