net.minecraft.client.resources

public class DownloadedPackSource

implements RepositorySource

fzx
net.minecraft.client.resources.DownloadedPackSource
net.minecraft.class_1066
net.minecraft.client.resource.ServerResourcePackProvider
net.minecraft.src.C_243501_

Field summary

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

Constructor summary

ModifierConstructor
public (File serverPacksRoot)

Method summary

Modifier and TypeMethod
public void
a(Consumer<anb> arg0)
loadPacks(Consumer<Pack> arg0)
method_14453(Consumer<class_3288> arg0)
register(Consumer<ResourcePackProfile> arg0)
m_7686_(Consumer<C_58_> arg0)
private static Map<String, String>
b()
getDownloadHeaders()
method_4636()
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)
download(URL url, String packSha1, 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)
delete(File file)
m_246169_(File p_251727_)
public CompletableFuture<Void>
a()
clearServerPack()
method_4642()
clear()
m_246151_()
private boolean
a(String arg0, File arg1)
checkHash(String arg0, File arg1)
method_4641(String arg0, File arg1)
verifyFile(String expectedSha1, File file)
m_245350_(String p_249356_, File arg1)
private void
c()
clearOldDownloads()
method_4643()
deleteOldServerPack()
m_245559_()
public CompletableFuture<Void>
a(File arg0, anf arg1)
setServerPack(File arg0, PackSource arg1)
method_4638(File arg0, class_5352 arg1)
loadServerPack(File packZip, ResourcePackSource packSource)
m_247526_(File p_251105_, C_63_ arg1)
public CompletableFuture<Void>
a(ecg$c arg0)
loadBundledResourcePack(LevelStorageSource$LevelStorageAccess arg0)
method_43339(class_32$class_5143 arg0)
loadServerPack(LevelStorage$Session session)
m_247400_(C_2785_$C_2786_ arg0)