net.minecraft.resource

public class FileResourcePackProvider

implements ResourcePackProvider

net.minecraft.server.packs.repository.FolderRepositorySource
net.minecraft.class_3279
net.minecraft.resource.FileResourcePackProvider

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
field_40044
LOGGER
private static final ResourcePackPosition
DISCOVERED_PACK_SELECTION_CONFIG
field_49034
POSITION
private final Path
folder
field_14218
packsDir
private final ResourceType
packType
field_40045
type
private final ResourcePackSource
packSource
field_25345
source
private final SymlinkFinder
validator
field_45054
symlinkFinder

Constructor summary

ModifierConstructor
public (Path packsDir, ResourceType type, ResourcePackSource source, SymlinkFinder symlinkFinder)

Method summary

Modifier and TypeMethod
private static String
nameFromPath(Path content)
method_45273(Path arg0)
getFileName(Path path)
public void
loadPacks(Consumer<Pack> result)
method_14453(Consumer<class_3288> arg0)
register(Consumer<ResourcePackProfile> arg0)
private ResourcePackInfo
createDiscoveredFilePackInfo(Path content)
method_56930(Path arg0)
createPackInfo(Path path)
public static void
discoverPacks(Path folder, DirectoryValidator validator, BiConsumer<Path, Pack$ResourcesSupplier> result)
method_45271(Path arg0, class_8580 arg1, BiConsumer<Path, class_3288$class_7680> arg2)
forEachProfile(Path path, SymlinkFinder symlinkFinder, BiConsumer<Path, ResourcePackProfile$PackFactory> callback)
private void
lambda$loadPacks$0(Consumer arg0, Path arg1, Pack$ResourcesSupplier arg2)
method_45272(Consumer arg0, Path arg1, class_3288$class_7680 arg2)
method_45272(Consumer arg0, Path path, ResourcePackProfile$PackFactory packFactory)