net.minecraft.resource

public class DirectoryResourcePack

extends AbstractFileResourcePack

All mapped superinterfaces:

ResourcePack

net.minecraft.server.packs.PathPackResources
net.minecraft.class_3259
net.minecraft.resource.DirectoryResourcePack

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
field_14187
LOGGER
private static final com.google.common.base.Joiner
PATH_JOINER
field_40000
SEPARATOR_JOINER
private final Path
root
field_40001
root

Constructor summary

ModifierConstructor
public (ResourcePackInfo info, Path root)

Method summary

Modifier and TypeMethod
public InputSupplier<InputStream>
getRootResource(String... path)
method_14410(String... arg0)
openRoot(String... arg0)
public static boolean
validatePath(Path path)
method_14402(Path arg0)
isValidPath(Path path)
public InputSupplier<InputStream>
getResource(PackType type, Identifier location)
method_14405(class_3264 arg0, class_2960 arg1)
open(ResourceType arg0, Identifier arg1)
public static InputSupplier<InputStream>
getResource(Identifier location, Path path)
method_45180(class_2960 arg0, Path arg1)
open(Identifier id, Path path)
private static InputSupplier<InputStream>
returnFileIfExists(Path resolvedPath)
method_45187(Path arg0)
open(Path path)
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)
public static void
listPath(String namespace, Path rootDir, List<String> decomposedPrefixPath, PackResources$ResourceOutput output)
method_45183(String arg0, Path arg1, List<String> arg2, class_3262$class_7664 arg3)
findResources(String namespace, Path path, List<String> prefixSegments, ResourcePack$ResultConsumer consumer)
private static boolean
isRegularFile(Path file, BasicFileAttributes attributes)
method_72082(Path arg0, BasicFileAttributes arg1)
isRegularFile(Path path, BasicFileAttributes fileAttributes)
public Set<String>
getNamespaces(PackType type)
method_14406(class_3264 arg0)
getNamespaces(ResourceType arg0)
public void
close()
private static void
lambda$listPath$4(Path arg0, String arg1, PackResources$ResourceOutput arg2, Path arg3)
method_45184(Path arg0, String arg1, class_3262$class_7664 arg2, Path arg3)
method_45184(Path arg0, String arg1, ResourcePack$ResultConsumer arg2, Path foundPath)
private static void
lambda$listResources$3(String arg0, com.mojang.serialization.DataResult$Error arg1)
method_45182(String arg0, com.mojang.serialization.DataResult$Error arg1)
method_45182(String arg0, com.mojang.serialization.DataResult$Error arg1)
private void
lambda$listResources$2(PackType arg0, String arg1, PackResources$ResourceOutput arg2, List arg3)
method_45181(class_3264 arg0, String arg1, class_3262$class_7664 arg2, List arg3)
method_45181(ResourceType arg0, String arg1, ResourcePack$ResultConsumer arg2, List prefixSegments)
private static InputSupplier
lambda$getResource$1(Identifier arg0, com.mojang.serialization.DataResult$Error arg1)
method_45179(class_2960 arg0, com.mojang.serialization.DataResult$Error arg1)
method_45179(Identifier arg0, com.mojang.serialization.DataResult$Error arg1)
private static InputSupplier
lambda$getResource$0(Path arg0, List arg1)
method_45186(Path arg0, List arg1)
method_45186(Path arg0, List segments)