net.minecraft.resource

public class DefaultResourcePackBuilder

net.minecraft.server.packs.VanillaPackResourcesBuilder
net.minecraft.server.packs.VanillaPackResourcesBuilder
net.minecraft.class_7665
net.minecraft.resource.DefaultResourcePackBuilder

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
LOGGER
field_40005
LOGGER
public static Consumer<DefaultResourcePackBuilder>
developmentConfig
developmentConfig
field_40004
callback
private static final Map<ResourceType, Path>
ROOT_DIR_BY_TYPE
ROOT_DIR_BY_TYPE
field_40006
RESOURCE_TYPE_TO_PATH
private final Set<Path>
rootPaths
rootPaths
field_40007
rootPaths
private final Map<ResourceType, Set<Path>>
pathsForType
pathsForType
field_40008
paths
private ResourceMetadata
metadata
metadata
field_40009
metadataMap
private final Set<String>
namespaces
namespaces
field_40010
namespaces

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
private boolean
validateDirPath(Path path)
validateDirPath(Path path)
method_45209(Path arg0)
exists(Path path)
private void
pushRootPath(Path path)
pushRootPath(Path path)
method_45212(Path arg0)
addRootPath(Path path)
private void
pushPathForType(PackType packType, Path path)
pushPathForType(PackType packType, Path path)
method_45208(class_3264 arg0, Path arg1)
addPath(ResourceType type, Path path)
public DefaultResourcePackBuilder
pushJarResources()
pushJarResources()
method_45197()
withDefaultPaths()
public DefaultResourcePackBuilder
pushClasspathResources(PackType packType, Class<?> source)
pushClasspathResources(PackType packType, Class<?> source)
method_45200(class_3264 arg0, Class<?> arg1)
withPaths(ResourceType type, Class<?> clazz)
public DefaultResourcePackBuilder
applyDevelopmentConfig()
applyDevelopmentConfig()
method_45207()
runCallback()
public DefaultResourcePackBuilder
pushUniversalPath(Path path)
pushUniversalPath(Path path)
method_45204(Path arg0)
withRoot(Path root)
public DefaultResourcePackBuilder
pushAssetPath(PackType packType, Path path)
pushAssetPath(PackType packType, Path path)
method_45201(class_3264 arg0, Path arg1)
withPath(ResourceType type, Path path)
public DefaultResourcePackBuilder
setMetadata(ResourceMetadata metadata)
setMetadata(ResourceMetadata metadata)
method_45198(class_7368 arg0)
withMetadataMap(ResourceMetadata metadataMap)
public DefaultResourcePackBuilder
exposeNamespace(String... namespaces)
exposeNamespace(String... namespaces)
method_45206(String... arg0)
withNamespaces(String... namespaces)
public DefaultResourcePack
build(PackLocationInfo location)
build(PackLocationInfo location)
method_45210(class_9224 arg0)
build(ResourcePackInfo info)
private static List<Path>
copyAndReverse(Collection<Path> input)
copyAndReverse(Collection<Path> input)
method_45205(Collection<Path> arg0)
reverse(Collection<Path> paths)