Class GetServerDetailsTask
java.lang.Object
com.mojang.realmsclient.util.task.LongRunningTask
com.mojang.realmsclient.util.task.GetServerDetailsTask
- All Implemented Interfaces:
Runnable
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Component
private final Screen
private static final org.slf4j.Logger
private final RealmsServer
private static final Component
Fields inherited from class com.mojang.realmsclient.util.task.LongRunningTask
NUMBER_OF_RETRIES
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconnectScreen
(RealmsServerAddress p_167638_) private RealmsServerAddress
private static UUID
generatePackId
(RealmsServer p_311215_) getTitle()
private RealmsLongConfirmationScreen
resourcePackDownloadConfirmationScreen
(RealmsServerAddress p_167640_, UUID p_309510_, Function<RealmsServerAddress, Screen> p_167641_) void
run()
private CompletableFuture<?>
scheduleResourcePackDownload
(RealmsServerAddress p_167652_, UUID p_312305_)
-
Field Details
-
APPLYING_PACK_TEXT
-
LOGGER
private static final org.slf4j.Logger LOGGER -
TITLE
-
server
-
lastScreen
-
-
Constructor Details
-
GetServerDetailsTask
-
-
Method Details
-
run
public void run() -
generatePackId
-
getTitle
- Specified by:
getTitle
in classLongRunningTask
-
fetchServerAddress
private RealmsServerAddress fetchServerAddress() throws RealmsServiceException, TimeoutException, CancellationException -
connectScreen
-
resourcePackDownloadConfirmationScreen
private RealmsLongConfirmationScreen resourcePackDownloadConfirmationScreen(RealmsServerAddress p_167640_, UUID p_309510_, Function<RealmsServerAddress, Screen> p_167641_) -
scheduleResourcePackDownload
private CompletableFuture<?> scheduleResourcePackDownload(RealmsServerAddress p_167652_, UUID p_312305_)
-