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
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerstatic final com.google.common.base.Splitterprivate ZipFileFields 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_215324_, String p_215325_, String p_215326_, Predicate<ResourceLocation> p_215327_) 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
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:
getResourcein classAbstractPackResources- Throws:
IOException
-
hasResource
- Specified by:
hasResourcein 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_)
-