Package net.minecraft.client.resources
Class ClientPackSource
java.lang.Object
net.minecraft.client.resources.ClientPackSource
- All Implemented Interfaces:
RepositorySource
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Component
private final AssetIndex
static final PackMetadataSection
private CompletableFuture<?>
private final ReentrantLock
private static final org.slf4j.Logger
private static final int
private static final int
private static final String
private static final String
private static final String
private Pack
private final File
private static final Pattern
private static final String
private final VanillaPackResources
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
private void
private static FolderPackResources
createProgrammerArtDirPack
(File p_118588_) private Pack
createProgrammerArtPack
(Pack.PackConstructor p_118557_) private static Pack
createProgrammerArtPack
(Pack.PackConstructor p_118559_, Supplier<PackResources> p_118560_) private static PackResources
createProgrammerArtZipPack
(File p_118591_) private static void
deleteQuietly
(File p_118565_) downloadAndSelectResourcePack
(URL p_235006_, String p_235007_, boolean p_235008_) void
loadPacks
(Consumer<Pack> p_118584_, Pack.PackConstructor p_118585_) setServerPack
(File p_118567_, PackSource p_118568_)
-
Field Details
-
BUILT_IN
-
LOGGER
private static final org.slf4j.Logger LOGGER -
SHA1
-
MAX_PACK_SIZE_BYTES
private static final int MAX_PACK_SIZE_BYTES- See Also:
-
MAX_KEPT_PACKS
private static final int MAX_KEPT_PACKS- See Also:
-
VANILLA_ID
- See Also:
-
SERVER_ID
- See Also:
-
PROGRAMMER_ART_ID
- See Also:
-
PROGRAMMER_ART_NAME
- See Also:
-
APPLYING_PACK_TEXT
-
vanillaPack
-
serverPackDir
-
downloadLock
-
assetIndex
-
currentDownload
-
serverPack
-
-
Constructor Details
-
ClientPackSource
-
-
Method Details
-
loadPacks
- Specified by:
loadPacks
in interfaceRepositorySource
-
getVanillaPack
-
getDownloadHeaders
-
downloadAndSelectResourcePack
public CompletableFuture<?> downloadAndSelectResourcePack(URL p_235006_, String p_235007_, boolean p_235008_) -
deleteQuietly
-
clearServerPack
-
checkHash
-
clearOldDownloads
private void clearOldDownloads() -
loadBundledResourcePack
public CompletableFuture<Void> loadBundledResourcePack(LevelStorageSource.LevelStorageAccess p_235004_) -
setServerPack
-
createProgrammerArtPack
-
createProgrammerArtPack
@Nullable private static Pack createProgrammerArtPack(Pack.PackConstructor p_118559_, Supplier<PackResources> p_118560_) -
createProgrammerArtDirPack
-
createProgrammerArtZipPack
-