net.minecraft.resource

public class DefaultResourcePack

implements ResourcePack

net.minecraft.server.packs.FixedPathPackResources
net.minecraft.class_3268
net.minecraft.resource.DefaultResourcePack

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
field_14195
LOGGER
private final ResourcePackInfo
location
field_49032
info
private final ResourceMetadata
builtInMetadata
field_1_238
metadataMap
private ResourceMetadata
resourceMetadata
field_1_239
parsedMetadata
private final Set<String>
namespaces
field_14193
namespaces
private final List<Path>
rootPaths
field_40002
rootPaths
private final Map<ResourceType, List<Path>>
pathsForType
field_40003
namespacePaths

Constructor summary

ModifierConstructor
private (ResourcePackInfo info, ResourceMetadata metadataMap, Set<String> namespaces, List<Path> rootPaths, Map<ResourceType, List<Path>> namespacePaths)

Method summary

Modifier and TypeMethod
public InputSupplier<InputStream>
getRootResource(String... path)
method_14410(String... arg0)
openRoot(String... arg0)
public void
listRawPaths(PackType type, Identifier resource, Consumer<Path> output)
method_45192(class_3264 arg0, class_2960 arg1, Consumer<Path> arg2)
forEachNamespacedPath(ResourceType type, Identifier path, Consumer<Path> consumer)
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)
private static void
getResources(PackResources$ResourceOutput result, String namespace, Path root, List<String> directory)
method_14418(class_3262$class_7664 arg0, String arg1, Path arg2, List<String> arg3)
collectIdentifiers(ResourcePack$ResultConsumer consumer, String namespace, Path root, List<String> prefixSegments)
public InputSupplier<InputStream>
getResource(PackType type, Identifier location)
method_14405(class_3264 arg0, class_2960 arg1)
open(ResourceType arg0, Identifier arg1)
public Set<String>
getNamespaces(PackType type)
method_14406(class_3264 arg0)
getNamespaces(ResourceType arg0)
public <T> T
getMetadataSection(MetadataSectionType<T> metadataSerializer)
method_14407(class_7677<T> arg0)
getMetadata(ResourceMetadataSerializer<T> arg0)
public ResourcePackInfo
location()
method_56926()
getInfo()
public void
close()
private static InputSupplier
lambda$getResource$1(Identifier arg0, com.mojang.serialization.DataResult$Error arg1)
method_45191(class_2960 arg0, com.mojang.serialization.DataResult$Error arg1)
method_45191(Identifier arg0, com.mojang.serialization.DataResult$Error error)
private InputSupplier
lambda$getResource$0(Identifier arg0, PackType arg1, List arg2)
method_45189(class_2960 arg0, class_3264 arg1, List arg2)
method_45189(Identifier arg0, ResourceType arg1, List segments)
private static void
lambda$listResources$1(String arg0, com.mojang.serialization.DataResult$Error arg1)
method_45195(String arg0, com.mojang.serialization.DataResult$Error arg1)
method_45195(String arg0, com.mojang.serialization.DataResult$Error error)
private void
lambda$listResources$0(PackType arg0, PackResources$ResourceOutput arg1, String arg2, List arg3)
method_45193(class_3264 arg0, class_3262$class_7664 arg1, String arg2, List arg3)
method_45193(ResourceType arg0, ResourcePack$ResultConsumer arg1, String arg2, List segments)
private static void
lambda$listRawPaths$1(Identifier arg0, com.mojang.serialization.DataResult$Error arg1)
method_45196(class_2960 arg0, com.mojang.serialization.DataResult$Error arg1)
method_45196(Identifier arg0, com.mojang.serialization.DataResult$Error error)
private void
lambda$listRawPaths$0(Identifier arg0, PackType arg1, Consumer arg2, List arg3)
method_45190(class_2960 arg0, class_3264 arg1, Consumer arg2, List arg3)
method_45190(Identifier arg0, ResourceType arg1, Consumer arg2, List segments)