Package net.minecraft.client.resources
Class ClientPackSource
java.lang.Object
net.minecraft.client.resources.ClientPackSource
- All Implemented Interfaces:
RepositorySource
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static Componentprivate AssetIndexstatic PackMetadataSectionprivate CompletableFuture<?>private ReentrantLockprivate static org.apache.logging.log4j.Loggerprivate static intprivate static intprivate static Stringprivate static Stringprivate static Stringprivate Packprivate Fileprivate static Patternprivate static Stringprivate VanillaPackResources -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanprivate voidvoidprivate static FolderPackResourcescreateProgrammerArtDirPack(File p_118588_)private PackcreateProgrammerArtPack(Pack.PackConstructor p_118557_)private static PackcreateProgrammerArtPack(Pack.PackConstructor p_118559_, Supplier<PackResources> p_118560_)private static PackResourcescreateProgrammerArtZipPack(File p_118591_)private static voiddeleteQuietly(File p_118565_)downloadAndSelectResourcePack(String p_174814_, String p_174815_, boolean p_174816_)voidloadPacks(Consumer<Pack> p_118584_, Pack.PackConstructor p_118585_)setServerPack(File p_118567_, PackSource p_118568_)
-
Field Details
-
BUILT_IN
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
SHA1
-
MAX_WEB_FILESIZE
private static final int MAX_WEB_FILESIZE- See Also:
- Constant Field Values
-
MAX_KEPT_PACKS
private static final int MAX_KEPT_PACKS- See Also:
- Constant Field Values
-
VANILLA_ID
- See Also:
- Constant Field Values
-
SERVER_ID
- See Also:
- Constant Field Values
-
PROGRAMMER_ART_ID
- See Also:
- Constant Field Values
-
PROGRAMMER_ART_NAME
- See Also:
- Constant Field Values
-
APPLYING_PACK_TEXT
-
vanillaPack
-
serverPackDir
-
downloadLock
-
assetIndex
-
currentDownload
-
serverPack
-
-
Constructor Details
-
ClientPackSource
-
-
Method Details
-
loadPacks
- Specified by:
loadPacksin 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
-