net.minecraft.resource

public abstract class VanillaResourcePackProvider

implements ResourcePackProvider

net.minecraft.server.packs.repository.BuiltInPackSource
net.minecraft.class_7678
net.minecraft.resource.VanillaResourcePackProvider

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
field_40040
LOGGER
public static final String
VANILLA_ID
field_40039
VANILLA_KEY
public static final String
TESTS_ID
field_55931
TESTS_KEY
public static final VersionedIdentifier
CORE_PACK_INFO
field_49033
VANILLA_ID
private final ResourceType
packType
field_40041
type
private final DefaultResourcePack
vanillaPack
field_40042
resourcePack
private final Identifier
packDir
field_40043
id
private final SymlinkFinder
validator
field_45052
symlinkFinder

Constructor summary

ModifierConstructor
public (ResourceType type, DefaultResourcePack resourcePack, Identifier id, SymlinkFinder symlinkFinder)

Method summary

Modifier and TypeMethod
public void
loadPacks(Consumer<Pack> result)
method_14453(Consumer<class_3288> arg0)
register(Consumer<ResourcePackProfile> arg0)
protected abstract ResourcePackProfile
createVanillaPack(PackResources resources)
method_45257(class_3262 arg0)
createDefault(ResourcePack pack)
protected abstract Text
getPackTitle(String id)
method_45259(String arg0)
getDisplayName(String id)
public DefaultResourcePack
getVanillaPack()
method_45256()
getResourcePack()
private void
listBundledPacks(Consumer<Pack> packConsumer)
method_45267(Consumer<class_3288> arg0)
forEachProfile(Consumer<ResourcePackProfile> consumer)
protected void
populatePackList(BiConsumer<String, Function<String, Pack>> discoveredPacks)
method_45263(BiConsumer<String, Function<String, class_3288>> arg0)
forEachProfile(BiConsumer<String, Function<String, ResourcePackProfile>> consumer)
protected void
discoverPacksInPath(Path targetDir, BiConsumer<String, Function<String, Pack>> discoveredPacks)
method_45262(Path arg0, BiConsumer<String, Function<String, class_3288>> arg1)
forEachProfile(Path namespacedPath, BiConsumer<String, Function<String, ResourcePackProfile>> consumer)
private static String
pathToId(Path path)
method_45261(Path arg0)
getFileName(Path path)
protected abstract ResourcePackProfile
createBuiltinPack(String id, Pack$ResourcesSupplier resources, Component name)
method_45260(String arg0, class_3288$class_7680 arg1, class_2561 arg2)
create(String fileName, ResourcePackProfile$PackFactory packFactory, Text displayName)
protected static ResourcePackProfile$PackFactory
fixedResources(PackResources instance)
method_52435(class_3262 arg0)
createPackFactory(ResourcePack pack)
private void
lambda$discoverPacksInPath$3(BiConsumer arg0, Path arg1, Pack$ResourcesSupplier arg2)
method_45265(BiConsumer arg0, Path arg1, class_3288$class_7680 arg2)
method_45265(BiConsumer arg0, Path profilePath, ResourcePackProfile$PackFactory factory)
private ResourcePackProfile
lambda$discoverPacksInPath$2(Pack$ResourcesSupplier arg0, String arg1)
method_45258(class_3288$class_7680 arg0, String arg1)
method_45258(ResourcePackProfile$PackFactory arg0, String id)
private void
lambda$populatePackList$1(BiConsumer arg0, Path arg1)
method_45264(BiConsumer arg0, Path arg1)
method_45264(BiConsumer arg0, Path namespacedPath)
private static void
lambda$listBundledPacks$0(Consumer arg0, String arg1, Function arg2)
method_45266(Consumer arg0, String arg1, Function arg2)
method_45266(Consumer arg0, String id, Function packFactory)