net.minecraft.resource

public class DefaultResourcePackBuilder

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
field_40005
LOGGER
public static Consumer<DefaultResourcePackBuilder>
developmentConfig
field_40004
callback
private static final Map<ResourceType, Path>
ROOT_DIR_BY_TYPE
field_40006
RESOURCE_TYPE_TO_PATH
private final Set<Path>
rootPaths
field_40007
rootPaths
private final Map<ResourceType, Set<Path>>
pathsForType
field_40008
paths
private ResourceMetadata
metadata
field_40009
metadataMap
private final Set<String>
namespaces
field_40010
namespaces

Constructor summary

ModifierConstructor
public ()

Method summary

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