net.minecraft.resource

public class DefaultResourcePack

implements ResourcePack

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

Field summary

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

Constructor summary

ModifierConstructor
(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)
getRootResource(String... path)
method_14410(String... arg0)
openRoot(String... arg0)
public void
listRawPaths(PackType type, Identifier resource, Consumer<Path> output)
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)
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)
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)
getResource(PackType type, Identifier location)
method_14405(class_3264 arg0, class_2960 arg1)
open(ResourceType arg0, Identifier arg1)
public Set<String>
getNamespaces(PackType type)
getNamespaces(PackType type)
method_14406(class_3264 arg0)
getNamespaces(ResourceType arg0)
public <T> T
getMetadataSection(MetadataSectionType<T> metadataSerializer)
getMetadataSection(MetadataSectionType<T> metadataSerializer)
method_14407(class_7677<T> arg0)
getMetadata(ResourceMetadataSerializer<T> arg0)
public ResourcePackInfo
location()
location()
method_56926()
getInfo()
public void
close()
close()
public ResourceFactory
asProvider()
asProvider()
method_43032()
getFactory()