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_310367_, Path p_311926_, GameConfig.UserData p_313017_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
close()
void
void
configureForServerControl
(Connection p_310083_, ServerPackManager.PackPromptStatus p_309566_) private static RepositorySource
configureSource
(List<Pack> p_310649_) private PackDownloader
createDownloader
(DownloadQueue p_310017_, Executor p_312902_, User p_312845_, Proxy p_312022_) (package private) HttpUtil.DownloadProgressListener
createDownloadNotifier
(int p_313003_) private static PackLoadFeedback
createPackResponseSender
(Connection p_312565_) private PackReloadConfig
private Runnable
createUpdateScheduler
(Executor p_312638_) loadRequestedPacks
(List<PackReloadConfig.IdAndPath> p_313161_) void
void
void
void
popAll()
void
void
pushLocalPack
(UUID p_310453_, Path p_312255_) void
void
private void
startReload
(PackReloadConfig.Callbacks p_310818_) private static com.google.common.hash.HashCode
tryParseSha1Hash
(String p_312783_) waitForPackFeedback
(UUID p_309645_)
-
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_310017_, Executor p_312902_, User p_312845_, Proxy p_312022_) -
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_312783_) -
pushPack
-
pushLocalPack
-
popPack
-
popAll
public void popAll() -
createPackResponseSender
-
configureForServerControl
public void configureForServerControl(Connection p_310083_, ServerPackManager.PackPromptStatus p_309566_) -
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
-