Package net.minecraft.client.realms.task
Class LongRunningTask
java.lang.Object
net.minecraft.client.realms.task.LongRunningTask
- Direct Known Subclasses:
CloseServerTask
,DownloadTask
,OpenServerTask
,RealmsConnectTask
,RealmsGetServerDetailsTask
,ResettingWorldTask
,RestoreTask
,SwitchMinigameTask
,SwitchSlotTask
,WorldCreationTask
@Environment(CLIENT) public abstract class LongRunningTask extends Object implements Errable, Runnable
-
Field Summary
Fields Modifier and Type Field Description static Logger
LOGGER
protected RealmsLongRunningMcoTaskScreen
longRunningMcoTaskScreen
-
Constructor Summary
Constructors Constructor Description LongRunningTask()
-
Method Summary
Modifier and Type Method Description boolean
aborted()
void
abortTask()
void
error(Text text)
void
init()
protected static void
pause(int seconds)
Moved from RealmsTasks in 20w10a.static void
setScreen(Screen screen)
Moved from Realms in 20w10a.void
setScreen(RealmsLongRunningMcoTaskScreen longRunningMcoTaskScreen)
void
setTitle(Text text)
void
tick()
-
Field Details
-
LOGGER
-
longRunningMcoTaskScreen
-
-
Constructor Details
-
LongRunningTask
public LongRunningTask()
-
-
Method Details
-
pause
protected static void pause(int seconds)Moved from RealmsTasks in 20w10a. -
setScreen
Moved from Realms in 20w10a. -
setScreen
-
error
-
setTitle
-
aborted
public boolean aborted() -
tick
public void tick() -
init
public void init() -
abortTask
public void abortTask()
-