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_313039_, PackLoadFeedback p_311463_, PackReloadConfig p_312595_, Runnable p_310909_, ServerPackManager.PackPromptStatus p_311512_) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
acceptPack
(ServerPackManager.ServerPackData p_309901_) void
private void
private ServerPackManager.ServerPackData
findPackInfo
(UUID p_312512_) private void
markExistingPacksAsRemoved
(UUID p_309694_) private void
onDownload
(Collection<ServerPackManager.ServerPackData> p_311905_, DownloadQueue.BatchResult p_312404_) void
popAll()
void
void
pushLocalPack
(UUID p_312688_, Path p_312014_) private void
pushNewPack
(UUID p_312820_, ServerPackManager.ServerPackData p_310310_) 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_313039_, PackLoadFeedback p_311463_, PackReloadConfig p_312595_, Runnable p_310909_, ServerPackManager.PackPromptStatus p_311512_)
-
-
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_311905_, DownloadQueue.BatchResult p_312404_) -
updateDownloads
private boolean updateDownloads() -
triggerReloadIfNeeded
private void triggerReloadIfNeeded()
-