Class JarContentsPackResources

java.lang.Object
net.minecraft.server.packs.AbstractPackMetadataResources
net.neoforged.neoforge.resource.JarContentsPackResources
All Implemented Interfaces:
AutoCloseable, PackMetadataResources, PackResources, PackMetadataResourcesExtension

@Internal public class JarContentsPackResources extends AbstractPackMetadataResources implements PackResources
Exposes the content of an arbitrary JarContents as data/resource pack resources.

In general, you should use the factory ResourcePackLoader.createPackForJarContents(JarContents) instead, since it will try to create a more optimal implementation based on the actual underlying Jar storage.