net.minecraft.resource

public class ZipResourcePack

extends AbstractFileResourcePack implements ResourcePack

All mapped superinterfaces:

ResourceResolver, ResourcePack

net.minecraft.server.packs.FilePackResources
net.minecraft.class_3258
net.minecraft.resource.ZipResourcePack

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
field_39096
LOGGER
private final ZipResourcePack$ZipFileWrapper
zipFileAccess
field_45038
zipFile
private final String
prefix
field_45039
overlay

Constructor summary

ModifierConstructor
private (ResourcePackInfo info, ZipResourcePack$ZipFileWrapper zipFile, String overlay)

Method summary

Modifier and TypeMethod
private static String
getPathFromLocation(PackType type, Identifier location)
method_45177(class_3264 arg0, class_2960 arg1)
toPath(ResourceType type, Identifier id)
public InputSupplier<InputStream>
getRootResource(String... path)
method_14410(String... arg0)
openRoot(String... arg0)
public InputSupplier<InputStream>
getResource(PackType type, Identifier location)
method_14405(class_3264 arg0, class_2960 arg1)
open(ResourceType arg0, Identifier arg1)
private String
addPrefix(String path)
method_52422(String arg0)
appendOverlayPrefix(String path)
private InputSupplier<InputStream>
getResource(String path)
method_14391(String arg0)
openFile(String path)
public Set<String>
getNamespaces(PackType type)
method_14406(class_3264 arg0)
getNamespaces(ResourceType arg0)
public static String
extractNamespace(String prefix, String name)
method_52423(String arg0, String arg1)
getNamespace(String prefix, String entryName)
public void
close()
public void
listResources(PackType type, String namespace, String directory, PackResources$ResourceOutput output)
method_14408(class_3264 arg0, String arg1, String arg2, class_3262$class_7664 arg3)
findResources(ResourceType arg0, String arg1, String arg2, ResourcePack$ResultConsumer arg3)