Class LongRunningTask

java.lang.Object
net.minecraft.client.realms.task.LongRunningTask
All Implemented Interfaces:
Runnable, Errable
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 Details

  • Constructor Details

    • LongRunningTask

      public LongRunningTask()
  • Method Details

    • pause

      protected static void pause​(int seconds)
      Moved from RealmsTasks in 20w10a.
    • setScreen

      public static void setScreen​(Screen screen)
      Moved from Realms in 20w10a.
    • setScreen

      public void setScreen​(RealmsLongRunningMcoTaskScreen longRunningMcoTaskScreen)
    • error

      public void error​(Text text)
      Specified by:
      error in interface Errable
    • setTitle

      public void setTitle​(Text text)
    • aborted

      public boolean aborted()
    • tick

      public void tick()
    • init

      public void init()
    • abortTask

      public void abortTask()