net.minecraft.client.resource.server

public class ServerResourcePackManager

net.minecraft.client.resources.server.ServerPackManager
net.minecraft.class_9044
net.minecraft.client.resource.server.ServerResourcePackManager

Field summary

Modifier and TypeField
private final DownloadQueuer
downloader
field_47629
queuer
private final PackStateChangeCallback
packLoadFeedback
field_47630
stateChangeCallback
private final ReloadScheduler
reloadConfig
field_47631
reloadScheduler
private final Runnable
updateRequest
field_47632
packChangeCallback
private ServerResourcePackManager$AcceptanceStatus
packPromptStatus
field_47633
acceptanceStatus
private final List<ServerResourcePackManager$PackEntry>
packs
field_47634
packs

Constructor summary

ModifierConstructor
public (DownloadQueuer queuer, PackStateChangeCallback stateChangeCallback, ReloadScheduler reloadScheduler, Runnable packChangeCallback, ServerResourcePackManager$AcceptanceStatus acceptanceStatus)

Method summary

Modifier and TypeMethod
private void
registerForUpdate()
method_55567()
onPackChanged()
private void
markExistingPacksAsRemoved(UUID id)
method_55562(UUID arg0)
markReplaced(UUID id)
public void
pushPack(UUID id, URL url, com.google.common.hash.HashCode hash)
method_55558(UUID arg0, URL arg1, com.google.common.hash.HashCode arg2)
addResourcePack(UUID id, URL url, com.google.common.hash.HashCode hashCode)
public void
pushLocalPack(UUID id, Path path)
method_55559(UUID arg0, Path arg1)
addResourcePack(UUID id, Path path)
private void
pushNewPack(UUID id, ServerPackManager$ServerPackData pack)
method_55557(UUID arg0, class_9044$class_9049 arg1)
onAdd(UUID id, ServerResourcePackManager$PackEntry pack)
private void
acceptPack(ServerPackManager$ServerPackData pack)
method_55553(class_9044$class_9049 arg0)
accept(ServerResourcePackManager$PackEntry pack)
private ServerResourcePackManager$PackEntry
findPackInfo(UUID id)
method_55564(UUID arg0)
get(UUID id)
public void
popPack(UUID id)
method_55556(UUID arg0)
remove(UUID id)
public void
popAll()
method_55552()
removeAll()
public void
allowServerPacks()
method_55560()
acceptAll()
public void
rejectServerPacks()
method_55563()
declineAll()
public void
resetPromptStatus()
method_55565()
resetAcceptanceStatus()
public void
tick()
method_55566()
update()
private void
cleanupRemovedPacks()
method_55568()
removeInactivePacks()
private void
onDownload(Collection<ServerPackManager$ServerPackData> data, DownloadQueue$BatchResult result)
method_55554(Collection<class_9044$class_9049> arg0, class_9028$class_9030 arg1)
onDownload(Collection<ServerResourcePackManager$PackEntry> packs, Downloader$DownloadResult result)
private boolean
updateDownloads()
method_55569()
enqueueDownloads()
private void
triggerReloadIfNeeded()
method_55570()
applyDownloadedPacks()
private void
lambda$updateDownloads$0(List arg0, DownloadQueue$BatchResult arg1)
method_55555(List arg0, class_9028$class_9030 arg1)
method_55555(List arg0, Downloader$DownloadResult result)
private boolean
lambda$cleanupRemovedPacks$0(ServerPackManager$ServerPackData arg0)
method_55561(class_9044$class_9049 arg0)
method_55561(ServerResourcePackManager$PackEntry pack)