Class ServerPackManager
java.lang.Object
net.minecraft.client.resources.server.ServerPackManager
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static enum
(package private) static enum
static enum
(package private) static enum
(package private) static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate final PackDownloader
(package private) final PackLoadFeedback
(package private) final List<ServerPackManager.ServerPackData>
private final PackReloadConfig
private final Runnable
-
Constructor Summary
ConstructorDescriptionServerPackManager
(PackDownloader p_314651_, PackLoadFeedback p_314441_, PackReloadConfig p_314471_, Runnable p_314453_, ServerPackManager.PackPromptStatus p_314476_) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
acceptPack
(ServerPackManager.ServerPackData p_314599_) void
private void
private ServerPackManager.ServerPackData
findPackInfo
(UUID p_314517_) private void
markExistingPacksAsRemoved
(UUID p_314529_) private void
onDownload
(Collection<ServerPackManager.ServerPackData> p_314562_, DownloadQueue.BatchResult p_314549_) void
popAll()
void
void
pushLocalPack
(UUID p_314448_, Path p_314520_) private void
pushNewPack
(UUID p_314541_, ServerPackManager.ServerPackData p_314473_) void
(package private) void
void
void
void
tick()
private void
private boolean
-
Field Details
-
downloader
-
packLoadFeedback
-
reloadConfig
-
updateRequest
-
packPromptStatus
-
packs
-
-
Constructor Details
-
ServerPackManager
public ServerPackManager(PackDownloader p_314651_, PackLoadFeedback p_314441_, PackReloadConfig p_314471_, Runnable p_314453_, ServerPackManager.PackPromptStatus p_314476_)
-
-
Method Details
-
registerForUpdate
void registerForUpdate() -
markExistingPacksAsRemoved
-
pushPack
-
pushLocalPack
-
pushNewPack
-
acceptPack
-
findPackInfo
-
popPack
-
popAll
public void popAll() -
allowServerPacks
public void allowServerPacks() -
rejectServerPacks
public void rejectServerPacks() -
resetPromptStatus
public void resetPromptStatus() -
tick
public void tick() -
cleanupRemovedPacks
private void cleanupRemovedPacks() -
onDownload
private void onDownload(Collection<ServerPackManager.ServerPackData> p_314562_, DownloadQueue.BatchResult p_314549_) -
updateDownloads
private boolean updateDownloads() -
triggerReloadIfNeeded
private void triggerReloadIfNeeded()
-