Package net.minecraft.server.packs
Class FilePackResources
java.lang.Object
net.minecraft.server.packs.AbstractPackResources
net.minecraft.server.packs.FilePackResources
- All Implemented Interfaces:
AutoCloseable
,PackResources
,IForgePackResources
-
Field Summary
Fields inherited from class net.minecraft.server.packs.AbstractPackResources
file
Fields inherited from interface net.minecraft.server.packs.PackResources
METADATA_EXTENSION, PACK_META
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected void
finalize()
getNamespaces(PackType p_10238_)
private ZipFile
protected InputStream
getResource(String p_10246_)
getResources(PackType p_10240_, String p_10241_, String p_10242_, int p_10243_, Predicate<String> p_10244_)
boolean
hasResource(String p_10249_)
Methods inherited from class net.minecraft.server.packs.AbstractPackResources
getMetadataFromStream, getMetadataSection, getName, getRelativePath, getResource, getRootResource, hasResource, logWarning, toString
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraftforge.common.extensions.IForgePackResources
isHidden
-
Field Details
-
SPLITTER
public static final com.google.common.base.Splitter SPLITTER -
zipFile
-
-
Constructor Details
-
FilePackResources
-
-
Method Details
-
getOrCreateZipFile
- Throws:
IOException
-
getResource
- Specified by:
getResource
in classAbstractPackResources
- Throws:
IOException
-
hasResource
- Specified by:
hasResource
in classAbstractPackResources
-
getNamespaces
-
finalize
-
close
public void close() -
getResources
public Collection<ResourceLocation> getResources(PackType p_10240_, String p_10241_, String p_10242_, int p_10243_, Predicate<String> p_10244_)
-