Class CreateWorldScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Widget

public class CreateWorldScreen extends Screen
  • Field Details

  • Constructor Details

  • Method Details

    • createFresh

      public static CreateWorldScreen createFresh(@Nullable Screen p_205425_)
    • createFromExisting

      public static CreateWorldScreen createFromExisting(@Nullable Screen p_205427_, WorldStem p_205428_, @Nullable Path p_205429_)
    • tick

      public void tick()
      Overrides:
      tick in class Screen
    • init

      protected void init()
      Overrides:
      init in class Screen
    • getEffectiveDifficulty

      private Difficulty getEffectiveDifficulty()
    • updateGameModeHelp

      private void updateGameModeHelp()
    • updateResultFolder

      private void updateResultFolder()
    • removed

      public void removed()
      Overrides:
      removed in class Screen
    • onCreate

      private void onCreate()
    • createLevelSettings

      private LevelSettings createLevelSettings(boolean p_205448_)
    • toggleWorldGenSettingsVisibility

      private void toggleWorldGenSettingsVisibility()
    • setGameMode

      private void setGameMode(CreateWorldScreen.SelectedGameMode p_100901_)
    • refreshWorldGenSettingsVisibility

      public void refreshWorldGenSettingsVisibility()
    • setWorldGenSettingsVisible

      private void setWorldGenSettingsVisible(boolean p_170197_)
    • keyPressed

      public boolean keyPressed(int p_100875_, int p_100876_, int p_100877_)
      Specified by:
      keyPressed in interface ContainerEventHandler
      Specified by:
      keyPressed in interface GuiEventListener
      Overrides:
      keyPressed in class Screen
    • onClose

      public void onClose()
      Overrides:
      onClose in class Screen
    • popScreen

      public void popScreen()
    • cleanupTempResources

      private void cleanupTempResources()
    • render

      public void render(PoseStack p_100890_, int p_100891_, int p_100892_, float p_100893_)
      Specified by:
      render in interface Widget
      Overrides:
      render in class Screen
    • addWidget

      protected <T extends GuiEventListener & NarratableEntry> T addWidget(T p_100948_)
      Overrides:
      addWidget in class Screen
    • addRenderableWidget

      protected <T extends GuiEventListener & Widget & NarratableEntry> T addRenderableWidget(T p_170199_)
      Overrides:
      addRenderableWidget in class Screen
    • getTempDataPackDir

      @Nullable protected Path getTempDataPackDir()
    • openDataPackSelectionScreen

      private void openDataPackSelectionScreen()
    • tryApplyNewDataPacks

      private void tryApplyNewDataPacks(PackRepository p_100879_)
    • removeTempDataPackDir

      private void removeTempDataPackDir()
    • copyBetweenDirs

      private static void copyBetweenDirs(Path p_100913_, Path p_100914_, Path p_100915_)
    • copyTempDataPackDirToNewWorld

      private boolean copyTempDataPackDirToNewWorld()
    • createTempDataPackDirFromExistingWorld

      @Nullable public static Path createTempDataPackDirFromExistingWorld(Path p_100907_, Minecraft p_100908_)
    • getDataPackSelectionSettings

      @Nullable private com.mojang.datafixers.util.Pair<File,PackRepository> getDataPackSelectionSettings()