Class CreateWorldScreen
java.lang.Object
net.minecraft.client.gui.GuiComponent
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
,Widget
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static enum
Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private static final Component
private CycleButton<Boolean>
private boolean
private Button
protected DataPackConfig
private Button
private Difficulty
private CycleButton<Difficulty>
private static final Component
private Component
private Component
private GameRules
private Button
boolean
private String
private final Screen
private static final org.slf4j.Logger
private Button
private static final Component
private EditBox
private static final Component
private static final Component
(package private) String
private static final Component
private static final Component
private static final String
private Path
private PackRepository
private boolean
Fields inherited from class net.minecraft.client.gui.screens.Screen
font, height, itemRenderer, minecraft, passEvents, renderables, title, width
Fields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
ModifierConstructorDescriptionprivate
CreateWorldScreen
(Screen p_100861_, DataPackConfig p_100862_, WorldGenSettingsComponent p_100863_) -
Method Summary
Modifier and TypeMethodDescriptionprotected <T extends GuiEventListener & Widget & NarratableEntry>
TaddRenderableWidget
(T p_170199_) protected <T extends GuiEventListener & NarratableEntry>
TaddWidget
(T p_100948_) private static void
copyBetweenDirs
(Path p_100913_, Path p_100914_, Path p_100915_) private static WorldLoader.InitConfig
createDefaultLoadConfig
(PackRepository p_232873_, DataPackConfig p_232874_) static CreateWorldScreen
createFromExisting
(Screen p_205427_, WorldStem p_205428_, Path p_205429_) private LevelSettings
createLevelSettings
(boolean p_205448_) private void
static Path
createTempDataPackDirFromExistingWorld
(Path p_100907_, Minecraft p_100908_) private com.mojang.datafixers.util.Pair<File,
PackRepository> private Difficulty
private Path
protected void
init()
boolean
keyPressed
(int p_100875_, int p_100876_, int p_100877_) void
onClose()
private void
onCreate()
private void
static void
void
private static void
queueLoadScreen
(Minecraft p_232900_, Component p_232901_) void
void
removed()
private void
void
private void
setGameMode
(CreateWorldScreen.SelectedGameMode p_100901_) private void
setWorldGenSettingsVisible
(boolean p_170197_) void
tick()
private void
private void
tryApplyNewDataPacks
(PackRepository p_100879_) private void
private void
Methods inherited from class net.minecraft.client.gui.screens.Screen
addRenderableOnly, afterKeyboardAction, afterMouseAction, afterMouseMove, children, clearWidgets, findNarratableWidget, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, narrationEnabled, onFilesDrop, rebuildWidgets, removeWidget, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, resize, shouldCloseOnEsc, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenError
Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blitOutlineBlack, disableScissor, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, enableScissor, fill, fillGradient, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
changeFocus, charTyped, getChildAt, keyReleased, magicalSpecialHackyFocus, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
TEMP_WORLD_PREFIX
- See Also:
-
GAME_MODEL_LABEL
-
SEED_LABEL
-
SEED_INFO
-
NAME_LABEL
-
OUTPUT_DIR_INFO
-
COMMANDS_INFO
-
PREPARING_WORLD_DATA
-
lastScreen
-
nameEdit
-
resultFolder
String resultFolder -
gameMode
-
oldGameMode
-
difficulty
-
commands
private boolean commands -
commandsChanged
private boolean commandsChanged -
hardCore
public boolean hardCore -
dataPacks
-
tempDataPackDir
-
tempDataPackRepository
-
worldGenSettingsVisible
private boolean worldGenSettingsVisible -
createButton
-
modeButton
-
difficultyButton
-
moreOptionsButton
-
gameRulesButton
-
dataPacksButton
-
commandsButton
-
gameModeHelp1
-
gameModeHelp2
-
initName
-
gameRules
-
worldGenSettingsComponent
-
-
Constructor Details
-
CreateWorldScreen
private CreateWorldScreen(@Nullable Screen p_100861_, DataPackConfig p_100862_, WorldGenSettingsComponent p_100863_)
-
-
Method Details
-
openFresh
-
createFromExisting
public static CreateWorldScreen createFromExisting(@Nullable Screen p_205427_, WorldStem p_205428_, @Nullable Path p_205429_) -
tick
public void tick() -
init
protected void init() -
getEffectiveDifficulty
-
updateGameModeHelp
private void updateGameModeHelp() -
updateResultFolder
private void updateResultFolder() -
removed
public void removed() -
queueLoadScreen
-
onCreate
private void onCreate() -
createNewWorld
private void createNewWorld() -
createLevelSettings
-
toggleWorldGenSettingsVisibility
private void toggleWorldGenSettingsVisibility() -
setGameMode
-
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 interfaceContainerEventHandler
- Specified by:
keyPressed
in interfaceGuiEventListener
- Overrides:
keyPressed
in classScreen
-
onClose
public void onClose() -
popScreen
public void popScreen() -
render
-
addWidget
-
addRenderableWidget
protected <T extends GuiEventListener & Widget & NarratableEntry> T addRenderableWidget(T p_170199_) - Overrides:
addRenderableWidget
in classScreen
-
getTempDataPackDir
-
openDataPackSelectionScreen
private void openDataPackSelectionScreen() -
tryApplyNewDataPacks
-
createDefaultLoadConfig
private static WorldLoader.InitConfig createDefaultLoadConfig(PackRepository p_232873_, DataPackConfig p_232874_) -
removeTempDataPackDir
private void removeTempDataPackDir() -
copyBetweenDirs
-
createNewWorldDirectory
-
createTempDataPackDirFromExistingWorld
-
getDataPackSelectionSettings
@Nullable private com.mojang.datafixers.util.Pair<File,PackRepository> getDataPackSelectionSettings()
-