Class DownloadedPackSource
java.lang.Object
net.minecraft.client.resources.server.DownloadedPackSource
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
Modifier and TypeFieldDescriptionprivate final DownloadQueue
private static final RepositorySource
private static final PackLoadFeedback
(package private) static final org.slf4j.Logger
(package private) final ServerPackManager
(package private) final Minecraft
(package private) PackLoadFeedback
private int
private RepositorySource
private PackSource
private PackReloadConfig.Callbacks
private static final Component
private static final Pattern
-
Constructor Summary
ConstructorDescriptionDownloadedPackSource
(Minecraft p_314574_, Path p_314635_, GameConfig.UserData p_314528_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
close()
void
void
configureForServerControl
(Connection p_314502_, ServerPackManager.PackPromptStatus p_314463_) private static RepositorySource
configureSource
(List<Pack> p_314416_) private PackDownloader
createDownloader
(DownloadQueue p_314570_, Executor p_314421_, User p_314576_, Proxy p_314551_) (package private) HttpUtil.DownloadProgressListener
createDownloadNotifier
(int p_314632_) private static PackLoadFeedback
createPackResponseSender
(Connection p_314519_) private PackReloadConfig
private Runnable
createUpdateScheduler
(Executor p_314595_) loadRequestedPacks
(List<PackReloadConfig.IdAndPath> p_314642_) void
void
void
void
popAll()
void
void
pushLocalPack
(UUID p_314510_, Path p_314417_) void
void
private void
startReload
(PackReloadConfig.Callbacks p_314628_) private static com.google.common.hash.HashCode
tryParseSha1Hash
(String p_314590_) waitForPackFeedback
(UUID p_314539_)
-
Field Details
-
SERVER_NAME
-
SHA1
-
LOGGER
static final org.slf4j.Logger LOGGER -
EMPTY_SOURCE
-
LOG_ONLY_FEEDBACK
-
minecraft
-
packSource
-
pendingReload
-
manager
-
downloadQueue
-
packType
-
packFeedback
PackLoadFeedback packFeedback -
packIdSerialNumber
private int packIdSerialNumber
-
-
Constructor Details
-
DownloadedPackSource
-
-
Method Details
-
createDownloadNotifier
-
createDownloader
private PackDownloader createDownloader(DownloadQueue p_314570_, Executor p_314421_, User p_314576_, Proxy p_314551_) -
createUpdateScheduler
-
createReloadConfig
-
loadRequestedPacks
-
createRepositorySource
-
configureSource
-
startReload
-
onRecovery
public void onRecovery() -
onRecoveryFailure
public void onRecoveryFailure() -
onReloadSuccess
public void onReloadSuccess() -
tryParseSha1Hash
@Nullable private static com.google.common.hash.HashCode tryParseSha1Hash(@Nullable String p_314590_) -
pushPack
-
pushLocalPack
-
popPack
-
popAll
public void popAll() -
createPackResponseSender
-
configureForServerControl
public void configureForServerControl(Connection p_314502_, ServerPackManager.PackPromptStatus p_314463_) -
configureForLocalWorld
public void configureForLocalWorld() -
allowServerPacks
public void allowServerPacks() -
rejectServerPacks
public void rejectServerPacks() -
waitForPackFeedback
-
cleanupAfterDisconnect
public void cleanupAfterDisconnect() -
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
-