Class JarContentsPackResources

java.lang.Object
net.minecraft.server.packs.AbstractPackResources
net.neoforged.neoforge.resource.JarContentsPackResources
All Implemented Interfaces:
AutoCloseable, PackResources, IPackResourcesExtension

@Internal public class JarContentsPackResources extends AbstractPackResources
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.