Class GetServerDetailsTask
java.lang.Object
com.mojang.realmsclient.util.task.LongRunningTask
com.mojang.realmsclient.util.task.GetServerDetailsTask
- All Implemented Interfaces:
ErrorCallback
,Runnable
-
Field Summary
Modifier and TypeFieldDescriptionprivate ReentrantLock
private Screen
private RealmsMainScreen
private RealmsServer
Fields inherited from class com.mojang.realmsclient.util.task.LongRunningTask
LOGGER, longRunningMcoTaskScreen, NUMBER_OF_RETRIES
-
Constructor Summary
ConstructorDescriptionGetServerDetailsTask(RealmsMainScreen p_90332_, Screen p_90333_, RealmsServer p_90334_, ReentrantLock p_90335_)
-
Method Summary
Modifier and TypeMethodDescriptionconnectScreen(RealmsServerAddress p_167638_)
private RealmsServerAddress
private RealmsLongConfirmationScreen
resourcePackDownloadConfirmationScreen(RealmsServerAddress p_167640_, Function<RealmsServerAddress,Screen> p_167641_)
void
run()
private CompletableFuture<?>
scheduleResourcePackDownload(RealmsServerAddress p_167652_)
Methods inherited from class com.mojang.realmsclient.util.task.LongRunningTask
aborted, abortTask, error, init, pause, setScreen, setScreen, setTitle, tick
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.mojang.realmsclient.gui.ErrorCallback
error
-
Field Details
-
server
-
lastScreen
-
mainScreen
-
connectLock
-
-
Constructor Details
-
GetServerDetailsTask
public GetServerDetailsTask(RealmsMainScreen p_90332_, Screen p_90333_, RealmsServer p_90334_, ReentrantLock p_90335_)
-
-
Method Details
-
run
public void run() -
fetchServerAddress
private RealmsServerAddress fetchServerAddress() throws RealmsServiceException, TimeoutException, CancellationException -
connectScreen
-
resourcePackDownloadConfirmationScreen
private RealmsLongConfirmationScreen resourcePackDownloadConfirmationScreen(RealmsServerAddress p_167640_, Function<RealmsServerAddress,Screen> p_167641_) -
scheduleResourcePackDownload
-