Class FolderRepositorySource
java.lang.Object
net.minecraft.server.packs.repository.FolderRepositorySource
- All Implemented Interfaces:
RepositorySource
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate 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_296354_) -
Method Summary
Modifier and TypeMethodDescriptionstatic void
discoverPacks
(Path p_248794_, DirectoryValidator p_294483_, boolean p_255987_, BiConsumer<Path, Pack.ResourcesSupplier> p_248580_) void
private static String
nameFromPath
(Path p_248745_)
-
Field Details
-
LOGGER
static final org.slf4j.Logger LOGGER -
folder
-
packType
-
packSource
-
validator
-
-
Constructor Details
-
FolderRepositorySource
public FolderRepositorySource(Path p_251796_, PackType p_251664_, PackSource p_250854_, DirectoryValidator p_296354_)
-
-
Method Details
-
nameFromPath
-
loadPacks
- Specified by:
loadPacks
in interfaceRepositorySource
-
discoverPacks
public static void discoverPacks(Path p_248794_, DirectoryValidator p_294483_, boolean p_255987_, BiConsumer<Path, Pack.ResourcesSupplier> p_248580_) throws IOException- Throws:
IOException
-