Package net.minecraft.client.resources
Class DownloadingPackFinder
java.lang.Object
net.minecraft.client.resources.DownloadingPackFinder
- All Implemented Interfaces:
IPackFinder
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ResourceIndex
private CompletableFuture<?>
private final ReentrantLock
private static final org.apache.logging.log4j.Logger
private ResourcePackInfo
private final File
private static final Pattern
private final VanillaPack
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
private void
void
private static FolderPack
createProgrammerArtDirPack
(File p_239459_0_) private ResourcePackInfo
createProgrammerArtPack
(ResourcePackInfo.IFactory p_239453_1_) private static ResourcePackInfo
createProgrammerArtPack
(ResourcePackInfo.IFactory p_239454_0_, Supplier<IResourcePack> p_239454_1_) private static IResourcePack
createProgrammerArtZipPack
(File p_239460_0_) private static void
deleteQuietly
(File p_217811_0_) downloadAndSelectResourcePack
(String p_217818_1_, String p_217818_2_) void
loadPacks
(Consumer<ResourcePackInfo> p_230230_1_, ResourcePackInfo.IFactory p_230230_2_) setServerPack
(File p_217816_1_, IPackNameDecorator p_217816_2_)
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
SHA1
-
vanillaPack
-
serverPackDir
-
downloadLock
-
assetIndex
-
currentDownload
-
serverPack
-
-
Constructor Details
-
DownloadingPackFinder
-
-
Method Details
-
loadPacks
public void loadPacks(Consumer<ResourcePackInfo> p_230230_1_, ResourcePackInfo.IFactory p_230230_2_) - Specified by:
loadPacks
in interfaceIPackFinder
-
getVanillaPack
-
getDownloadHeaders
-
downloadAndSelectResourcePack
-
deleteQuietly
-
clearServerPack
public void clearServerPack() -
checkHash
-
clearOldDownloads
private void clearOldDownloads() -
setServerPack
-
createProgrammerArtPack
-
createProgrammerArtPack
@Nullable private static ResourcePackInfo createProgrammerArtPack(ResourcePackInfo.IFactory p_239454_0_, Supplier<IResourcePack> p_239454_1_) -
createProgrammerArtDirPack
-
createProgrammerArtZipPack
-