类 FolderRepositorySource
java.lang.Object
net.minecraft.server.packs.repository.FolderRepositorySource
- 所有已实现的接口:
RepositorySource
-
字段概要
字段修饰符和类型字段说明private final Path
private static final org.slf4j.Logger
private final PackSource
private final PackType
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static Pack.ResourcesSupplier
detectPackResources
(Path p_255665_, boolean p_255971_) static void
discoverPacks
(Path pDirectoryPath, boolean p_255987_, BiConsumer<Path, Pack.ResourcesSupplier> pResources) void
private static String
nameFromPath
(Path pPath)
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER -
folder
-
packType
-
packSource
-
-
构造器详细资料
-
FolderRepositorySource
-
-
方法详细资料
-
nameFromPath
-
loadPacks
- 指定者:
loadPacks
在接口中RepositorySource
-
discoverPacks
public static void discoverPacks(Path pDirectoryPath, boolean p_255987_, BiConsumer<Path, Pack.ResourcesSupplier> pResources) throws IOException- 抛出:
IOException
-
detectPackResources
@Nullable public static Pack.ResourcesSupplier detectPackResources(Path p_255665_, boolean p_255971_)
-