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 final ReentrantLock
private final Screen
private static final org.slf4j.Logger
private final RealmsMainScreen
private final RealmsServer
Fields inherited from class com.mojang.realmsclient.util.task.LongRunningTask
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
-
LOGGER
private static final org.slf4j.Logger LOGGER -
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
-