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
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.server.packs.PackResources
PackResources.ResourceOutput
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private final File
private static final org.slf4j.Logger
static final com.google.common.base.Splitter
private ZipFile
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
private static String
getPathFromLocation
(PackType p_250585_, ResourceLocation p_251470_) private IoSupplier<InputStream>
getResource
(String p_251795_) getResource
(PackType p_249605_, ResourceLocation p_252147_) getRootResource
(String... p_248514_) void
listResources
(PackType p_250500_, String p_249598_, String p_251613_, PackResources.ResourceOutput p_250655_) Methods inherited from class net.minecraft.server.packs.AbstractPackResources
getMetadataFromStream, getMetadataSection, isBuiltin, packId, 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
getChildren, isHidden
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
SPLITTER
public static final com.google.common.base.Splitter SPLITTER -
file
-
zipFile
-
failedToLoad
private boolean failedToLoad
-
-
Constructor Details
-
FilePackResources
-
-
Method Details
-
getOrCreateZipFile
-
getPathFromLocation
-
getRootResource
-
getResource
-
getResource
-
getNamespaces
-
finalize
-
close
public void close() -
listResources
public void listResources(PackType p_250500_, String p_249598_, String p_251613_, PackResources.ResourceOutput p_250655_)
-