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
FieldsFields inherited from class net.minecraft.server.packs.AbstractPackResources
fileFields inherited from interface net.minecraft.server.packs.PackResources
METADATA_EXTENSION, PACK_META -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected voidfinalize()getNamespaces(PackType p_10238_)private ZipFileprotected InputStreamgetResource(String p_10246_)getResources(PackType p_10240_, String p_10241_, String p_10242_, int p_10243_, Predicate<String> p_10244_)booleanhasResource(String p_10249_)Methods inherited from class net.minecraft.server.packs.AbstractPackResources
getMetadataFromStream, getMetadataSection, getName, getRelativePath, getResource, getRootResource, hasResource, logWarning, toStringMethods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
getResourcein classAbstractPackResources- Throws:
IOException
-
hasResource
- Specified by:
hasResourcein 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_)
-