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
Modifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
static final com.google.common.base.Splitter
private ZipFile
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_215324_, String p_215325_, String p_215326_, Predicate<ResourceLocation> p_215327_) 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
init, initForNamespace, isHidden
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
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_215324_, String p_215325_, String p_215326_, Predicate<ResourceLocation> p_215327_)
-