Class CreateWorldScreen

    • Field Detail

      • LOGGER

        private static final org.apache.logging.log4j.Logger LOGGER
      • GAME_MODEL_LABEL

        private static final ITextComponent GAME_MODEL_LABEL
      • OUTPUT_DIR_INFO

        private static final ITextComponent OUTPUT_DIR_INFO
      • lastScreen

        private final Screen lastScreen
      • resultFolder

        private java.lang.String resultFolder
      • selectedDifficulty

        private Difficulty selectedDifficulty
      • effectiveDifficulty

        private Difficulty effectiveDifficulty
      • commands

        private boolean commands
      • commandsChanged

        private boolean commandsChanged
      • hardCore

        public boolean hardCore
      • tempDataPackDir

        @Nullable
        private java.nio.file.Path tempDataPackDir
      • tempDataPackRepository

        @Nullable
        private ResourcePackList tempDataPackRepository
      • displayOptions

        private boolean displayOptions
      • createButton

        private Button createButton
      • modeButton

        private Button modeButton
      • difficultyButton

        private Button difficultyButton
      • moreOptionsButton

        private Button moreOptionsButton
      • gameRulesButton

        private Button gameRulesButton
      • dataPacksButton

        private Button dataPacksButton
      • commandsButton

        private Button commandsButton
      • initName

        private java.lang.String initName
    • Method Detail

      • init

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

        private void updateGameModeHelp()
      • updateResultFolder

        private void updateResultFolder()
      • removed

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

        private void onCreate()
      • toggleDisplayOptions

        private void toggleDisplayOptions()
      • updateDisplayOptions

        public void updateDisplayOptions()
      • setDisplayOptions

        private void setDisplayOptions​(boolean p_146316_1_)
      • onClose

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

        public void popScreen()
      • cleanupTempResources

        private void cleanupTempResources()
      • addButton

        protected <T extends Widget> T addButton​(T p_230480_1_)
        Overrides:
        addButton in class Screen
      • getTempDataPackDir

        @Nullable
        protected java.nio.file.Path getTempDataPackDir()
      • openDataPackSelectionScreen

        private void openDataPackSelectionScreen()
      • tryApplyNewDataPacks

        private void tryApplyNewDataPacks​(ResourcePackList p_241621_1_)
      • removeTempDataPackDir

        private void removeTempDataPackDir()
      • copyBetweenDirs

        private static void copyBetweenDirs​(java.nio.file.Path p_238945_0_,
                                            java.nio.file.Path p_238945_1_,
                                            java.nio.file.Path p_238945_2_)
      • copyTempDataPackDirToNewWorld

        private boolean copyTempDataPackDirToNewWorld()
      • createTempDataPackDirFromExistingWorld

        @Nullable
        public static java.nio.file.Path createTempDataPackDirFromExistingWorld​(java.nio.file.Path p_238943_0_,
                                                                                Minecraft p_238943_1_)
      • getDataPackSelectionSettings

        @Nullable
        private com.mojang.datafixers.util.Pair<java.io.File,​ResourcePackList> getDataPackSelectionSettings()