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
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
(String p_174814_, String p_174815_, boolean p_174816_) 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(String p_174814_, String p_174815_, boolean p_174816_) -
deleteQuietly
-
clearServerPack
public void clearServerPack() -
checkHash
-
clearOldDownloads
private void clearOldDownloads() -
setServerPack
-
createProgrammerArtPack
-
createProgrammerArtPack
@Nullable private static Pack createProgrammerArtPack(Pack.PackConstructor p_118559_, Supplier<PackResources> p_118560_) -
createProgrammerArtDirPack
-
createProgrammerArtZipPack
-