Package net.minecraft.client.resources
Class ClientPackSource
java.lang.Object
net.minecraft.server.packs.repository.BuiltInPackSource
net.minecraft.client.resources.ClientPackSource
- All Implemented Interfaces:
RepositorySource
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final BuiltInMetadataprivate static final PackSelectionConfigprivate final Pathstatic final Stringprivate 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 pId, Pack.ResourcesSupplier pResources, Component pTitle) private static PackLocationInfocreateBuiltInPackLocation(String pId, Component pTitle) protected PackcreateVanillaPack(PackResources pResources) static VanillaPackResourcescreateVanillaPackSource(Path pAssetIndex) private PathfindExplodedAssetPacks(Path pAssetIndex) protected ComponentgetPackTitle(String pId) protected voidpopulatePackList(BiConsumer<String, Function<String, Pack>> pPopulator) Methods inherited from class net.minecraft.server.packs.repository.BuiltInPackSource
discoverPacksInPath, fixedResources, fromName, getVanillaPack, loadPacks
-
Field Details
-
VERSION_METADATA_SECTION
-
BUILT_IN_METADATA
-
HIGH_CONTRAST_PACK
- See Also:
-
SPECIAL_PACK_NAMES
-
VANILLA_PACK_INFO
-
VANILLA_SELECTION_CONFIG
-
BUILT_IN_SELECTION_CONFIG
-
PACKS_DIR
-
externalAssetDir
-
-
Constructor Details
-
ClientPackSource
-
-
Method Details
-
createBuiltInPackLocation
-
findExplodedAssetPacks
-
createVanillaPackSource
-
getPackTitle
- Specified by:
getPackTitlein classBuiltInPackSource
-
createVanillaPack
- Specified by:
createVanillaPackin classBuiltInPackSource
-
createBuiltinPack
@Nullable protected Pack createBuiltinPack(String pId, Pack.ResourcesSupplier pResources, Component pTitle) - Specified by:
createBuiltinPackin classBuiltInPackSource
-
populatePackList
- Overrides:
populatePackListin classBuiltInPackSource
-