net.minecraft.client.gui.screen.world

public class CreateWorldScreen

extends Screen

All mapped superinterfaces:

ParentElement, Element, Navigable, Drawable

net.minecraft.client.gui.screens.worldselection.CreateWorldScreen
net.minecraft.class_525
net.minecraft.client.gui.screen.world.CreateWorldScreen

Field summary

Modifier and TypeField
private static final int
GROUP_BOTTOM
field_42165
field_42165
private static final int
TAB_COLUMN_WIDTH
field_42166
field_42166
private static final org.slf4j.Logger
LOGGER
field_25480
LOGGER
private static final String
TEMP_WORLD_PREFIX
field_32434
TEMP_DIR_PREFIX
private static final Text
GAME_MODEL_LABEL
field_25898
GAME_MODE_TEXT
private static final Text
NAME_LABEL
field_26600
ENTER_NAME_TEXT
private static final Text
EXPERIMENTS_LABEL
field_42501
EXPERIMENTS_TEXT
private static final Text
ALLOW_COMMANDS_INFO
field_42169
ALLOW_COMMANDS_INFO_TEXT
private static final Text
PREPARING_WORLD_DATA
field_37911
PREPARING_TEXT
private static final int
HORIZONTAL_BUTTON_SPACING
field_42170
field_42170
private static final int
VERTICAL_BUTTON_SPACING
field_42171
field_42171
public static final Identifier
TAB_HEADER_BACKGROUND
field_49902
TAB_HEADER_BACKGROUND_TEXTURE
private final ThreePartsLayoutWidget
layout
field_49557
layout
private final WorldCreator
uiState
field_42172
worldCreator
private final TabManager
tabManager
field_42173
tabManager
private boolean
recreated
field_42502
recreated
private final SymlinkFinder
packValidator
field_45568
symlinkFinder
private final CreateWorldCallback
createWorldCallback
field_54390
callback
private final Runnable
onClose
field_62186
onClosed
private Path
tempDataPackDir
field_25477
dataPackTempDir
private ResourcePackManager
tempDataPackRepository
field_25792
packManager
private TabNavigationWidget
tabNavigationBar
field_42164
tabNavigation

Constructor summary

ModifierConstructor
private (MinecraftClient client, Runnable onClosed, GeneratorOptionsHolder generatorOptionsHolder, Optional<RegistryKey<WorldPreset>> defaultWorldType, OptionalLong seed, CreateWorldCallback callback)

Method summary

Modifier and TypeMethod
public static void
openFresh(Minecraft minecraft, Runnable onClose)
method_31130(class_310 arg0, Runnable arg1)
show(MinecraftClient client, Runnable onClosed)
public static void
openFresh(Minecraft minecraft, Runnable onClose, CreateWorldCallback createWorld)
method_64368(class_310 arg0, Runnable arg1, class_10241 arg2)
show(MinecraftClient client, Runnable onClosed, CreateWorldCallback callback)
public static void
testWorld(Minecraft minecraft, Runnable onClose)
method_64248(class_310 arg0, Runnable arg1)
showTestWorld(MinecraftClient client, Runnable onClosed)
private static void
openCreateWorldScreen(Minecraft minecraft, Runnable onClose, Function<WorldLoader$DataLoadContext, WorldGenSettings> worldGenSettings, WorldCreationContextMapper worldCreationContext, ResourceKey<WorldPreset> worldPreset, CreateWorldCallback createWorld)
method_64244(class_310 arg0, Runnable arg1, Function<class_7237$class_7660, class_7726> arg2, class_10221 arg3, class_5321<class_7145> arg4, class_10241 arg5)
show(MinecraftClient client, Runnable onClosed, Function<SaveLoading$LoadContextSupplierContext, WorldGenSettings> settingsSupplier, GeneratorOptionsFactory generatorOptionsFactory, RegistryKey<WorldPreset> presetKey, CreateWorldCallback callback)
public static CreateWorldScreen
createFromExisting(Minecraft minecraft, Runnable onClose, LevelSettings levelSettings, WorldCreationContext worldCreationContext, Path newDataPackDir)
method_40212(class_310 arg0, Runnable arg1, class_1940 arg2, class_7193 arg3, Path arg4)
create(MinecraftClient client, Runnable onClosed, LevelInfo levelInfo, GeneratorOptionsHolder generatorOptionsHolder, Path dataPackTempDir)
public WorldCreator
getUiState()
method_48657()
getWorldCreator()
protected void
init()
method_25426()
init()
protected void
setInitialFocus()
method_56131()
setInitialFocus()
public void
repositionElements()
method_48640()
refreshWidgetPositions()
private static void
queueLoadScreen(Minecraft minecraft, Component message)
method_41852(class_310 arg0, class_2561 arg1)
showMessage(MinecraftClient client, Text text)
private void
onCreate()
method_2736()
createLevel()
private void
createWorldAndCleanup(LayeredRegistryAccess<RegistryLayer> finalLayers, PrimaryLevelData worldData)
method_64370(class_7780<class_7659> arg0, class_31 arg1)
createAndClearTempDir(CombinedDynamicRegistries<ServerDynamicRegistryType> combinedDynamicRegistries, LevelProperties levelProperties)
private boolean
createNewWorld(LayeredRegistryAccess<RegistryLayer> finalLayers, WorldData worldData)
method_41847(class_7780<class_7659> arg0, class_5219 arg1)
startServer(CombinedDynamicRegistries<ServerDynamicRegistryType> combinedDynamicRegistries, SaveProperties saveProperties)
private LevelInfo
createLevelSettings(boolean isDebug)
method_40213(boolean arg0)
createLevelInfo(boolean debugWorld)
public boolean
keyPressed(KeyEvent event)
method_25404(class_11908 arg0)
keyPressed(KeyInput arg0)
public void
onClose()
method_25419()
close()
public void
popScreen()
method_30297()
onCloseScreen()
public void
render(GuiGraphics graphics, int mouseX, int mouseY, float a)
method_25394(class_332 arg0, int arg1, int arg2, float arg3)
render(DrawContext arg0, int arg1, int arg2, float arg3)
protected void
renderMenuBackground(GuiGraphics graphics)
method_57735(class_332 arg0)
renderDarkening(DrawContext arg0)
private Path
getOrCreateTempDataPackDir()
method_29693()
getOrCreateDataPackTempDir()
private void
openExperimentsScreen(WorldDataConfiguration dataConfiguration)
method_49010(class_7712 arg0)
openExperimentsScreen(DataConfiguration dataConfiguration)
private void
openDataPackSelectionScreen(WorldDataConfiguration dataConfiguration)
method_29694(class_7712 arg0)
openPackScreen(DataConfiguration dataConfiguration)
private void
tryApplyNewDataPacks(PackRepository packRepository, boolean isDataPackScreen, Consumer<WorldDataConfiguration> onAbort)
method_29682(class_3283 arg0, boolean arg1, Consumer<class_7712> arg2)
applyDataPacks(ResourcePackManager dataPackManager, boolean fromPackScreen, Consumer<DataConfiguration> configurationSetter)
private void
applyNewPackConfig(PackRepository packRepository, WorldDataConfiguration newConfig, Consumer<WorldDataConfiguration> onAbort)
method_45679(class_3283 arg0, class_7712 arg1, Consumer<class_7712> arg2)
validateDataPacks(ResourcePackManager dataPackManager, DataConfiguration dataConfiguration, Consumer<DataConfiguration> configurationSetter)
private static SaveLoading$ServerConfig
createDefaultLoadConfig(PackRepository packRepository, WorldDataConfiguration config)
method_41849(class_3283 arg0, class_7712 arg1)
createServerConfig(ResourcePackManager dataPackManager, DataConfiguration dataConfiguration)
private void
removeTempDataPackDir()
method_29695()
clearDataPackTempDir()
private static void
copyBetweenDirs(Path sourceDir, Path targetDir, Path sourcePath)
method_29687(Path arg0, Path arg1, Path arg2)
copyDataPack(Path srcFolder, Path destFolder, Path dataPackFile)
private static Optional<LevelStorage$Session>
createNewWorldDirectory(Minecraft minecraft, String worldFolder, Path tempDataPackDir)
method_41848(class_310 arg0, String arg1, Path arg2)
createSession(MinecraftClient client, String worldDirectoryName, Path dataPackTempDir)
public static Path
createTempDataPackDirFromExistingWorld(Path sourcePackDir, Minecraft minecraft)
method_29685(Path arg0, class_310 arg1)
copyDataPack(Path srcFolder, MinecraftClient client)
private com.mojang.datafixers.util.Pair<Path, ResourcePackManager>
getDataPackSelectionSettings(WorldDataConfiguration dataConfiguration)
method_30296(class_7712 arg0)
getScannedPack(DataConfiguration dataConfiguration)
private static void
lambda$createTempDataPackDirFromExistingWorld$30(org.apache.commons.lang3.mutable.MutableObject arg0, Path arg1, Path arg2)
method_29688(org.apache.commons.lang3.mutable.MutableObject arg0, Path arg1, Path arg2)
method_29688(org.apache.commons.lang3.mutable.MutableObject arg0, Path arg1, Path dataPackFile)
private static boolean
lambda$createTempDataPackDirFromExistingWorld$29(Path arg0, Path arg1)
method_29686(Path arg0, Path arg1)
method_29686(Path arg0, Path dataPackFile)
private static void
lambda$createNewWorldDirectory$28(Path arg0, Path arg1, Path arg2)
method_64373(Path arg0, Path arg1, Path arg2)
method_64373(Path arg0, Path arg1, Path path)
private static boolean
lambda$createNewWorldDirectory$27(Path arg0, Path arg1)
method_64372(Path arg0, Path arg1)
method_64372(Path arg0, Path path)
private static void
lambda$removeTempDataPackDir$26(Path arg0)
method_29689(Path arg0)
method_29689(Path path)
private Object
lambda$applyNewPackConfig$25(Consumer arg0, Void arg1, Throwable arg2)
method_49629(Consumer arg0, Void arg1, Throwable arg2)
method_49629(Consumer arg0, Void arg1, Throwable throwable)
private void
lambda$applyNewPackConfig$24(Consumer arg0, boolean arg1)
method_48654(Consumer arg0, boolean arg1)
method_48654(Consumer arg0, boolean confirmed)
private static GeneratorOptionsHolder
lambda$applyNewPackConfig$23(WorldCreationContext arg0)
method_59841(class_7193 arg0)
method_59841(GeneratorOptionsHolder generatorOptionsHolder)
private static GeneratorOptionsHolder
lambda$applyNewPackConfig$22(CloseableResourceManager arg0, ReloadableServerResources arg1, LayeredRegistryAccess arg2, DataPackReloadCookie arg3)
method_45681(class_6860 arg0, class_5350 arg1, class_7780 arg2, class_7749 arg3)
method_45681(LifecycledResourceManager resourceManager, DataPackContents dataPackContents, CombinedDynamicRegistries combinedDynamicRegistries, WorldCreationSettings context)
private SaveLoading$LoadContext
lambda$applyNewPackConfig$21(WorldLoader$DataLoadContext arg0)
method_45678(class_7237$class_7660 arg0)
method_45678(SaveLoading$LoadContextSupplierContext context)
private static IllegalStateException
lambda$applyNewPackConfig$20(String arg0)
method_58746(String arg0)
method_58746(String error)
private static com.mojang.serialization.DataResult
lambda$applyNewPackConfig$19(com.mojang.serialization.DynamicOps arg0, com.google.gson.JsonElement arg1)
method_45682(com.mojang.serialization.DynamicOps arg0, com.google.gson.JsonElement arg1)
method_45682(com.mojang.serialization.DynamicOps arg0, com.google.gson.JsonElement json)
private void
lambda$tryApplyNewDataPacks$18(PackRepository arg0, WorldDataConfiguration arg1, Consumer arg2, boolean arg3)
method_48643(class_3283 arg0, class_7712 arg1, Consumer arg2, boolean arg3)
method_48643(ResourcePackManager arg0, DataConfiguration arg1, Consumer arg2, boolean confirmed)
private static boolean
lambda$tryApplyNewDataPacks$17(List arg0, String arg1)
method_29983(List arg0, String arg1)
method_29983(List arg0, String name)
private void
lambda$openDataPackSelectionScreen$16(PackRepository arg0)
method_49009(class_3283 arg0)
method_49009(ResourcePackManager resourcePackManager)
private void
lambda$openExperimentsScreen$15(PackRepository arg0)
method_49011(class_3283 arg0)
method_49011(ResourcePackManager resourcePackManager)
private void
lambda$onCreate$14(LayeredRegistryAccess arg0, PrimaryLevelData arg1)
method_64374(class_7780 arg0, class_31 arg1)
method_64374(CombinedDynamicRegistries arg0, LevelProperties arg1)
private void
lambda$init$13(AbstractWidget arg0)
method_48644(class_339 arg0)
method_48644(ClickableWidget child)
private void
lambda$init$12(Button arg0)
method_19921(class_4185 arg0)
method_19921(ButtonWidget button)
private void
lambda$init$11(Button arg0)
method_19922(class_4185 arg0)
method_19922(ButtonWidget button)
private static boolean
lambda$createFromExisting$10(CreateWorldScreen arg0, LayeredRegistryAccess arg1, PrimaryLevelData arg2, Path arg3)
method_64369(class_525 arg0, class_7780 arg1, class_31 arg2, Path arg3)
method_64369(CreateWorldScreen screen, CombinedDynamicRegistries combinedDynamicRegistries, LevelProperties levelProperties, Path dataPackTempDir)
private static GeneratorOptionsHolder
lambda$openCreateWorldScreen$9(WorldCreationContextMapper arg0, CloseableResourceManager arg1, ReloadableServerResources arg2, LayeredRegistryAccess arg3, DataPackReloadCookie arg4)
method_64245(class_10221 arg0, class_6860 arg1, class_5350 arg2, class_7780 arg3, class_7749 arg4)
method_64245(GeneratorOptionsFactory arg0, LifecycledResourceManager resourceManager, DataPackContents dataPackContents, CombinedDynamicRegistries dynamicRegistries, WorldCreationSettings settings)
private static SaveLoading$LoadContext
lambda$openCreateWorldScreen$8(Function arg0, WorldLoader$DataLoadContext arg1)
method_64246(Function arg0, class_7237$class_7660 arg1)
method_64246(Function arg0, SaveLoading$LoadContextSupplierContext context)
private static boolean
lambda$testWorld$7(CreateWorldScreen arg0, LayeredRegistryAccess arg1, PrimaryLevelData arg2, Path arg3)
method_64371(class_525 arg0, class_7780 arg1, class_31 arg2, Path arg3)
method_64371(CreateWorldScreen screen, CombinedDynamicRegistries combinedDynamicRegistries, LevelProperties levelProperties, Path dataPackTempDir)
private static WorldGenSettings
lambda$testWorld$6(WorldLoader$DataLoadContext arg0)
method_64247(class_7237$class_7660 arg0)
method_64247(SaveLoading$LoadContextSupplierContext context)
private static GeneratorOptionsHolder
lambda$testWorld$5(ReloadableServerResources arg0, LayeredRegistryAccess arg1, DataPackReloadCookie arg2)
method_64243(class_5350 arg0, class_7780 arg1, class_7749 arg2)
method_64243(DataPackContents dataPackContents, CombinedDynamicRegistries dynamicRegistries, WorldCreationSettings settings)
private static WorldGenSettings
lambda$openFresh$4(WorldLoader$DataLoadContext arg0)
method_45686(class_7237$class_7660 arg0)
method_45686(SaveLoading$LoadContextSupplierContext context)
private static GeneratorOptionsHolder
lambda$openFresh$3(ReloadableServerResources arg0, LayeredRegistryAccess arg1, DataPackReloadCookie arg2)
method_41851(class_5350 arg0, class_7780 arg1, class_7749 arg2)
method_41851(DataPackContents dataPackContents, CombinedDynamicRegistries dynamicRegistries, WorldCreationSettings settings)
private static boolean
lambda$openFresh$2(CreateWorldScreen arg0, LayeredRegistryAccess arg1, PrimaryLevelData arg2, Path arg3)
method_64375(class_525 arg0, class_7780 arg1, class_31 arg2, Path arg3)
method_64375(CreateWorldScreen screen, CombinedDynamicRegistries combinedDynamicRegistries, LevelProperties levelProperties, Path dataPackTempDir)
private static void
lambda$new$1(CreateWorldScreen arg0, GuiEventListener arg1)
method_48650(class_525 arg0, class_364 arg1)
method_48650(CreateWorldScreen arg0, Element child)
private static void
lambda$new$0(CreateWorldScreen arg0, GuiEventListener arg1)
method_65519(class_525 arg0, class_364 arg1)
method_65519(CreateWorldScreen arg0, Element clickableWidget)
static TextRenderer
access$000(CreateWorldScreen arg0)
method_48646(class_525 arg0)
method_48646(CreateWorldScreen arg0)
static void
access$100(CreateWorldScreen arg0, GuiEventListener arg1)
method_48649(class_525 arg0, class_364 arg1)
method_48649(CreateWorldScreen arg0, Element arg1)
static TextRenderer
access$200(CreateWorldScreen arg0)
method_48647(class_525 arg0)
method_48647(CreateWorldScreen arg0)
static TextRenderer
access$300(CreateWorldScreen arg0)
method_48651(class_525 arg0)
method_48651(CreateWorldScreen arg0)
static TextRenderer
access$400(CreateWorldScreen arg0)
method_48652(class_525 arg0)
method_48652(CreateWorldScreen arg0)
static MinecraftClient
access$500(CreateWorldScreen arg0)
method_48653(class_525 arg0)
method_48653(CreateWorldScreen arg0)
static MinecraftClient
access$600(CreateWorldScreen arg0)
method_48655(class_525 arg0)
method_48655(CreateWorldScreen arg0)
static MinecraftClient
access$700(CreateWorldScreen arg0)
method_48656(class_525 arg0)
method_48656(CreateWorldScreen arg0)