Class ServerPacksSource
java.lang.Object
net.minecraft.server.packs.repository.BuiltInPackSource
net.minecraft.server.packs.repository.ServerPacksSource
- All Implemented Interfaces:
RepositorySource
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final BuiltInMetadataprivate static final FeatureFlagsMetadataSectionprivate static final PackSelectionConfigprivate static final ResourceLocationprivate static final PackLocationInfoprivate static final PackSelectionConfigprivate static final PackMetadataSectionFields inherited from class net.minecraft.server.packs.repository.BuiltInPackSource
CORE_PACK_INFO, VANILLA_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PackcreateBuiltinPack(String p_250596_, Pack.ResourcesSupplier p_249625_, Component p_249043_) private static PackLocationInfocreateBuiltInPackLocation(String p_326487_, Component p_326454_) static PackRepositorycreatePackRepository(Path p_251569_, DirectoryValidator p_295336_) static PackRepositoryprotected PackcreateVanillaPack(PackResources p_250283_) static VanillaPackResourcesstatic PackRepositoryprotected ComponentgetPackTitle(String p_249692_) Methods inherited from class net.minecraft.server.packs.repository.BuiltInPackSource
discoverPacksInPath, fixedResources, fromName, getVanillaPack, loadPacks, populatePackList
-
Field Details
-
VERSION_METADATA_SECTION
-
FEATURE_FLAGS_METADATA_SECTION
-
BUILT_IN_METADATA
-
VANILLA_PACK_INFO
-
VANILLA_SELECTION_CONFIG
-
FEATURE_SELECTION_CONFIG
-
PACKS_DIR
-
-
Constructor Details
-
ServerPacksSource
-
-
Method Details
-
createBuiltInPackLocation
-
createVanillaPackSource
-
getPackTitle
- Specified by:
getPackTitlein classBuiltInPackSource
-
createVanillaPack
- Specified by:
createVanillaPackin classBuiltInPackSource
-
createBuiltinPack
@Nullable protected Pack createBuiltinPack(String p_250596_, Pack.ResourcesSupplier p_249625_, Component p_249043_) - Specified by:
createBuiltinPackin classBuiltInPackSource
-
createPackRepository
-
createVanillaTrustedRepository
-
createPackRepository
-