Class FolderRepositorySource
java.lang.Object
net.minecraft.server.packs.repository.FolderRepositorySource
- All Implemented Interfaces:
RepositorySource
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Path
private static final org.slf4j.Logger
private final PackSource
private final PackType
-
Constructor Summary
ConstructorDescriptionFolderRepositorySource
(Path p_251796_, PackType p_251664_, PackSource p_250854_) -
Method Summary
Modifier and TypeMethodDescriptionstatic Pack.ResourcesSupplier
detectPackResources
(Path p_255665_, boolean p_255971_) static void
discoverPacks
(Path p_248794_, boolean p_255987_, BiConsumer<Path, Pack.ResourcesSupplier> p_248580_) void
private static String
nameFromPath
(Path p_248745_)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
folder
-
packType
-
packSource
-
-
Constructor Details
-
FolderRepositorySource
-
-
Method Details
-
nameFromPath
-
loadPacks
- Specified by:
loadPacks
in interfaceRepositorySource
-
discoverPacks
public static void discoverPacks(Path p_248794_, boolean p_255987_, BiConsumer<Path, Pack.ResourcesSupplier> p_248580_) throws IOException- Throws:
IOException
-
detectPackResources
@Nullable public static Pack.ResourcesSupplier detectPackResources(Path p_255665_, boolean p_255971_)
-