@Environment(value=CLIENT) public abstract class LongRunningTask extends Object implements Errable, Runnable
Modifier and Type | Field and Description |
---|---|
static Logger |
LOGGER |
protected RealmsLongRunningMcoTaskScreen |
longRunningMcoTaskScreen |
Constructor and Description |
---|
LongRunningTask() |
Modifier and Type | Method and Description |
---|---|
boolean |
aborted() |
void |
abortTask() |
void |
error(Text text) |
void |
init() |
protected static void |
pause(int seconds)
Moved from RealmsTasks in 20w10a.
|
void |
setScreen(RealmsLongRunningMcoTaskScreen longRunningMcoTaskScreen) |
static void |
setScreen(Screen screen)
Moved from Realms in 20w10a.
|
void |
setTitle(Text text) |
void |
tick() |
public static final Logger LOGGER
protected RealmsLongRunningMcoTaskScreen longRunningMcoTaskScreen
protected static void pause(int seconds)
public static void setScreen(Screen screen)
public void setScreen(RealmsLongRunningMcoTaskScreen longRunningMcoTaskScreen)
public void setTitle(Text text)
public boolean aborted()
public void tick()
public void init()
public void abortTask()