net.minecraft.client.resources

public class DownloadedPackSource

implements RepositorySource

fvn
net.minecraft.client.resources.DownloadedPackSource
net.minecraft.class_1066
net.minecraft.unmapped.C_aqwrwsxs
net.minecraft.client.resource.ServerResourcePackProvider
net.minecraft.client.resource.RemoteResourcePackProvider
net.minecraft.src.C_243501_

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
a
LOGGER
field_5298
f_mptjkbaj
LOGGER
LOGGER
f_243667_
private static final Pattern
b
SHA1
field_5296
f_amjzhjsb
SHA1_PATTERN
SHA1_PATTERN
f_244551_
private static final int
c
MAX_PACK_SIZE_BYTES
field_32958
f_bklyozof
MAX_FILE_SIZE
MAX_PACK_SIZE_BYTES
f_243735_
private static final int
d
MAX_KEPT_PACKS
field_32959
f_xvmkwkwi
MAX_SAVED_PACKS
MAX_SAVED_PACKS
f_244627_
private static final String
e
SERVER_ID
field_32961
f_xjoztjwf
SERVER
SERVER_ID
f_244475_
private static final Component
f
SERVER_NAME
field_40562
f_yicgvnrh
SERVER_NAME_TEXT
SERVER_RESOURCE_PACK_DESCRIPTION
f_243792_
private static final Component
g
APPLYING_PACK_TEXT
field_33633
f_pxmzissv
APPLYING_PACK_TEXT
APPLYING_PACK
f_244023_
private final File
h
serverPackDir
field_5292
f_zuomnfit
serverPacksRoot
serverPacksRoot
f_244074_
private final ReentrantLock
i
downloadLock
field_5297
f_zuzcepht
lock
lock
f_244572_
private CompletableFuture<?>
j
currentDownload
field_5294
f_hojwdqoj
downloadTask
downloadTask
f_243680_
private Pack
k
serverPack
field_5295
f_gygrqtbq
serverContainer
serverContainer
f_244082_

Constructor summary

ModifierConstructor
public (File serverPacksRoot)

Method summary

Modifier and TypeMethod
public void
a(Consumer<akg> arg0)
loadPacks(Consumer<Pack> arg0)
method_14453(Consumer<class_3288> arg0)
m_omcvqvop(Consumer<C_lvnjxuwi> arg0)
register(Consumer<ResourcePackProfile> arg0)
register(Consumer<ResourcePackProfile> arg0)
m_7686_(Consumer<C_58_> arg0)
private static Map<String, String>
b()
getDownloadHeaders()
method_4636()
m_rbhjxntf()
getDownloadHeaders()
getDownloadHeaders()
m_245308_()
public CompletableFuture<?>
a(URL arg0, String arg1, boolean arg2)
downloadAndSelectResourcePack(URL arg0, String arg1, boolean arg2)
method_4640(URL arg0, String arg1, boolean arg2)
m_okqmdxtq(URL arg0, String arg1, boolean arg2)
download(URL url, String packSha1, boolean closeAfterDownload)
download(URL url, String sha1, boolean closeAfterDownload)
m_246254_(URL p_249218_, String p_251033_, boolean arg2)
private static void
a(File arg0)
deleteQuietly(File arg0)
method_19437(File arg0)
m_juzrysmq(File arg0)
delete(File file)
delete(File file)
m_246169_(File p_251727_)
public CompletableFuture<Void>
a()
clearServerPack()
method_4642()
m_hzqxgbrv()
clear()
clear()
m_246151_()
private boolean
a(String arg0, File arg1)
checkHash(String arg0, File arg1)
method_4641(String arg0, File arg1)
m_xukvvvxw(String arg0, File arg1)
verifyFile(String expectedSha1, File file)
verifyFile(String expectedSha1, File file)
m_245350_(String p_249356_, File arg1)
private void
c()
clearOldDownloads()
method_4643()
m_dozzrhtx()
deleteOldServerPack()
deleteOldServerPack()
m_245559_()
public CompletableFuture<Void>
a(File arg0, akj arg1)
setServerPack(File arg0, PackSource arg1)
method_4638(File arg0, class_5352 arg1)
m_tpajneba(File arg0, C_evnnymfu arg1)
loadServerPack(File packZip, ResourcePackSource packSource)
loadServerPack(File packZip, ResourcePackSource packSource)
m_247526_(File p_251105_, C_63_ arg1)
public CompletableFuture<Void>
a(dyy$c arg0)
loadBundledResourcePack(LevelStorageSource$LevelStorageAccess arg0)
method_43339(class_32$class_5143 arg0)
m_vrhniskz(C_bpwagnit$C_unecclfw arg0)
loadServerPack(LevelStorage$Session session)
loadServerPack(WorldSaveStorage$Session storageSession)
m_247400_(C_2785_$C_2786_ arg0)