Class BuiltInPackSource
java.lang.Object
net.minecraft.server.packs.repository.BuiltInPackSource
- All Implemented Interfaces:
RepositorySource
- Direct Known Subclasses:
ClientPackSource
,ServerPacksSource
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
private final ResourceLocation
private final PackType
static final String
private final VanillaPackResources
-
Constructor Summary
ConstructorDescriptionBuiltInPackSource
(PackType p_249137_, VanillaPackResources p_250453_, ResourceLocation p_251151_) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Pack
createBuiltinPack
(String p_249992_, Pack.ResourcesSupplier p_248670_, Component p_252197_) protected abstract Pack
createVanillaPack
(PackResources p_251690_) protected void
discoverPacksInPath
(Path p_250013_, BiConsumer<String, Function<String, Pack>> p_249898_) protected abstract Component
getPackTitle
(String p_251850_) private void
listBundledPacks
(Consumer<Pack> p_249128_) void
private static String
protected void
populatePackList
(BiConsumer<String, Function<String, Pack>> p_250341_)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
VANILLA_ID
- See Also:
-
packType
-
vanillaPack
-
packDir
-
-
Constructor Details
-
BuiltInPackSource
public BuiltInPackSource(PackType p_249137_, VanillaPackResources p_250453_, ResourceLocation p_251151_)
-
-
Method Details
-
loadPacks
- Specified by:
loadPacks
in interfaceRepositorySource
-
createVanillaPack
-
getPackTitle
-
getVanillaPack
-
listBundledPacks
-
populatePackList
-
discoverPacksInPath
-
pathToId
-
createBuiltinPack
@Nullable protected abstract Pack createBuiltinPack(String p_249992_, Pack.ResourcesSupplier p_248670_, Component p_252197_)
-