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 BuiltInMetadata
private static final FeatureFlagsMetadataSection
private static final PackSelectionConfig
private static final ResourceLocation
private static final PackLocationInfo
private static final PackSelectionConfig
private static final PackMetadataSection
Fields inherited from class net.minecraft.server.packs.repository.BuiltInPackSource
CORE_PACK_INFO, VANILLA_ID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Pack
createBuiltinPack
(String pId, Pack.ResourcesSupplier pResources, Component pTitle) private static PackLocationInfo
createBuiltInPackLocation
(String pId, Component pTitle) static PackRepository
createPackRepository
(Path pFolder, DirectoryValidator pValidator) static PackRepository
protected Pack
createVanillaPack
(PackResources pResources) static VanillaPackResources
static PackRepository
protected Component
getPackTitle
(String pId) 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:
getPackTitle
in classBuiltInPackSource
-
createVanillaPack
- Specified by:
createVanillaPack
in classBuiltInPackSource
-
createBuiltinPack
@Nullable protected Pack createBuiltinPack(String pId, Pack.ResourcesSupplier pResources, Component pTitle) - Specified by:
createBuiltinPack
in classBuiltInPackSource
-
createPackRepository
-
createVanillaTrustedRepository
-
createPackRepository
-