Class FolderRepositorySource
java.lang.Object
net.minecraft.server.packs.repository.FolderRepositorySource
- All Implemented Interfaces:
RepositorySource
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final PackSelectionConfig
private final Path
(package private) static final org.slf4j.Logger
private final PackSource
private final PackType
private final DirectoryValidator
-
Constructor Summary
ConstructorDescriptionFolderRepositorySource
(Path p_251796_, PackType p_251664_, PackSource p_250854_, DirectoryValidator p_300828_) -
Method Summary
Modifier and TypeMethodDescriptionprivate PackLocationInfo
createDiscoveredFilePackInfo
(Path p_328477_) static void
discoverPacks
(Path p_248794_, DirectoryValidator p_299329_, BiConsumer<Path, Pack.ResourcesSupplier> p_248580_) void
private static String
nameFromPath
(Path p_248745_)
-
Field Details
-
LOGGER
static final org.slf4j.Logger LOGGER -
DISCOVERED_PACK_SELECTION_CONFIG
-
folder
-
packType
-
packSource
-
validator
-
-
Constructor Details
-
FolderRepositorySource
public FolderRepositorySource(Path p_251796_, PackType p_251664_, PackSource p_250854_, DirectoryValidator p_300828_)
-
-
Method Details
-
nameFromPath
-
loadPacks
- Specified by:
loadPacks
in interfaceRepositorySource
-
createDiscoveredFilePackInfo
-
discoverPacks
public static void discoverPacks(Path p_248794_, DirectoryValidator p_299329_, BiConsumer<Path, Pack.ResourcesSupplier> p_248580_) throws IOException- Throws:
IOException
-