Class CreateWorldScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.worldselection.CreateWorldScreen
- All Implemented Interfaces:
- ContainerEventHandler,- GuiEventListener,- Renderable,- TabOrderedElement
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescription(package private) static final record(package private) class(package private) class(package private) classNested classes/interfaces inherited from class net.minecraft.client.gui.screens.ScreenScreen.NarratableSearchResult
- 
Field SummaryFieldsModifier and TypeFieldDescription(package private) static final Componentprivate GridLayout(package private) static final Componentprivate static final intstatic final ResourceLocation(package private) static final Componentprivate static final intstatic final ResourceLocationprivate static final intprivate final Screenstatic final ResourceLocationprivate static final org.slf4j.Logger(package private) static final Componentprivate final DirectoryValidatorprivate static final Componentprivate booleanprivate static final intprivate final TabManagerprivate TabNavigationBarprivate static final Stringprivate Pathprivate PackRepository(package private) final WorldCreationUiStateprivate static final intFields inherited from class net.minecraft.client.gui.screens.ScreenBACKGROUND_LOCATION, font, height, minecraft, renderables, screenExecutor, title, widthFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListenerDOUBLE_CLICK_THRESHOLD_MS
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprivateCreateWorldScreen(Minecraft p_276053_, Screen p_276049_, WorldCreationContext p_276047_, Optional<ResourceKey<WorldPreset>> p_276013_, OptionalLong p_276031_) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected <T extends GuiEventListener & Renderable & NarratableEntry>
 TaddRenderableWidget(T p_170199_) protected <T extends GuiEventListener & NarratableEntry>
 TaddWidget(T p_100948_) private voidapplyNewPackConfig(PackRepository p_270272_, WorldDataConfiguration p_270573_, Consumer<WorldDataConfiguration> p_270552_) private static voidcopyBetweenDirs(Path p_100913_, Path p_100914_, Path p_100915_) private static WorldLoader.InitConfigcreateDefaultLoadConfig(PackRepository p_251829_, WorldDataConfiguration p_251555_) static CreateWorldScreencreateFromExisting(Minecraft p_276017_, Screen p_276029_, LevelSettings p_276055_, WorldCreationContext p_276028_, Path p_276040_) private LevelSettingscreateLevelSettings(boolean p_205448_) private voidcreateNewWorld(PrimaryLevelData.SpecialWorldProperty p_250577_, LayeredRegistryAccess<RegistryLayer> p_249152_, com.mojang.serialization.Lifecycle p_249994_) static PathcreateTempDataPackDirFromExistingWorld(Path p_100907_, Minecraft p_100908_) private com.mojang.datafixers.util.Pair<Path,PackRepository> private Pathprotected voidinit()booleankeyPressed(int p_100875_, int p_100876_, int p_100877_) voidonClose()private voidonCreate()(package private) void(package private) voidopenExperimentsScreen(WorldDataConfiguration p_270214_) static voidvoidprivate static voidqueueLoadScreen(Minecraft p_232900_, Component p_232901_) private voidvoidrender(GuiGraphics p_282137_, int p_283640_, int p_281243_, float p_282743_) voidrenderDirtBackground(GuiGraphics p_281950_) voidprivate voidtryApplyNewDataPacks(PackRepository p_270299_, boolean p_270896_, Consumer<WorldDataConfiguration> p_270760_) Methods inherited from class net.minecraft.client.gui.screens.Screenadded, addRenderableOnly, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearWidgets, findNarratableWidget, getBackgroundMusic, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, narrationEnabled, onFilesDrop, rebuildWidgets, removed, removeWidget, renderBackground, renderTransparentBackground, renderWithTooltip, resize, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, tick, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandlergetFocused, isDragging, setDragging, setFocusedMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandlercharTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, magicalSpecialHackyFocus, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListenermouseMovedMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElementgetTabOrderGroup
- 
Field Details- 
GROUP_BOTTOMprivate static final int GROUP_BOTTOM- See Also:
 
- 
TAB_COLUMN_WIDTHprivate static final int TAB_COLUMN_WIDTH- See Also:
 
- 
FOOTER_HEIGHTprivate static final int FOOTER_HEIGHT- See Also:
 
- 
LOGGERprivate static final org.slf4j.Logger LOGGER
- 
TEMP_WORLD_PREFIX- See Also:
 
- 
GAME_MODEL_LABEL
- 
NAME_LABEL
- 
EXPERIMENTS_LABEL
- 
ALLOW_CHEATS_INFO
- 
PREPARING_WORLD_DATA
- 
HORIZONTAL_BUTTON_SPACINGprivate static final int HORIZONTAL_BUTTON_SPACING- See Also:
 
- 
VERTICAL_BUTTON_SPACINGprivate static final int VERTICAL_BUTTON_SPACING- See Also:
 
- 
HEADER_SEPERATOR
- 
FOOTER_SEPERATOR
- 
LIGHT_DIRT_BACKGROUND
- 
uiState
- 
tabManager
- 
recreatedprivate boolean recreated
- 
packValidator
- 
lastScreen
- 
tempDataPackDir
- 
tempDataPackRepository
- 
bottomButtons
 
- 
- 
Constructor Details- 
CreateWorldScreenprivate CreateWorldScreen(Minecraft p_276053_, @Nullable Screen p_276049_, WorldCreationContext p_276047_, Optional<ResourceKey<WorldPreset>> p_276013_, OptionalLong p_276031_) 
 
- 
- 
Method Details- 
openFresh
- 
createFromExistingpublic static CreateWorldScreen createFromExisting(Minecraft p_276017_, @Nullable Screen p_276029_, LevelSettings p_276055_, WorldCreationContext p_276028_, @Nullable Path p_276040_) 
- 
getUiState
- 
initprotected void init()
- 
repositionElementspublic void repositionElements()- Overrides:
- repositionElementsin class- Screen
 
- 
queueLoadScreen
- 
onCreateprivate void onCreate()
- 
createNewWorldprivate void createNewWorld(PrimaryLevelData.SpecialWorldProperty p_250577_, LayeredRegistryAccess<RegistryLayer> p_249152_, com.mojang.serialization.Lifecycle p_249994_) 
- 
createLevelSettings
- 
keyPressedpublic boolean keyPressed(int p_100875_, int p_100876_, int p_100877_) - Specified by:
- keyPressedin interface- ContainerEventHandler
- Specified by:
- keyPressedin interface- GuiEventListener
- Overrides:
- keyPressedin class- Screen
 
- 
onClosepublic void onClose()
- 
popScreenpublic void popScreen()
- 
render- Specified by:
- renderin interface- Renderable
- Overrides:
- renderin class- Screen
 
- 
renderDirtBackground- Overrides:
- renderDirtBackgroundin class- Screen
 
- 
addWidget
- 
addRenderableWidgetprotected <T extends GuiEventListener & Renderable & NarratableEntry> T addRenderableWidget(T p_170199_) - Overrides:
- addRenderableWidgetin class- Screen
 
- 
getTempDataPackDir
- 
openExperimentsScreen
- 
openDataPackSelectionScreen
- 
tryApplyNewDataPacksprivate void tryApplyNewDataPacks(PackRepository p_270299_, boolean p_270896_, Consumer<WorldDataConfiguration> p_270760_) 
- 
applyNewPackConfigprivate void applyNewPackConfig(PackRepository p_270272_, WorldDataConfiguration p_270573_, Consumer<WorldDataConfiguration> p_270552_) 
- 
createDefaultLoadConfigprivate static WorldLoader.InitConfig createDefaultLoadConfig(PackRepository p_251829_, WorldDataConfiguration p_251555_) 
- 
removeTempDataPackDirprivate void removeTempDataPackDir()
- 
copyBetweenDirs
- 
createNewWorldDirectory
- 
createTempDataPackDirFromExistingWorld
- 
getDataPackSelectionSettings@Nullable private com.mojang.datafixers.util.Pair<Path,PackRepository> getDataPackSelectionSettings(WorldDataConfiguration p_268328_) 
 
-