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 class
(package private) static class
Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private static Component
private CycleButton<Boolean>
private boolean
private Button
protected DataPackConfig
private Button
private Difficulty
private CycleButton<Difficulty>
private static Component
private Component
private Component
private GameRules
private Button
boolean
private String
private Screen
private static org.apache.logging.log4j.Logger
private Button
private static Component
private EditBox
private static Component
(package private) String
private static Component
private static Component
private static 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
-
Constructor Summary
ModifierConstructorDescriptionprivate
CreateWorldScreen(Screen p_100861_, DataPackConfig p_100862_, WorldGenSettingsComponent p_100863_)
CreateWorldScreen(Screen p_100865_, LevelSettings p_100866_, WorldGenSettings p_100867_, Path p_100868_, DataPackConfig p_100869_, RegistryAccess.RegistryHolder p_100870_)
-
Method Summary
Modifier and TypeMethodDescriptionprotected <T extends GuiEventListener & Widget & NarratableEntry>
TaddRenderableWidget(T p_170199_)
protected <T extends GuiEventListener & NarratableEntry>
TaddWidget(T p_100948_)
private void
private static void
copyBetweenDirs(Path p_100913_, Path p_100914_, Path p_100915_)
private boolean
static CreateWorldScreen
static Path
createTempDataPackDirFromExistingWorld(Path p_100907_, Minecraft p_100908_)
private com.mojang.datafixers.util.Pair<File,PackRepository>
private Difficulty
protected Path
protected void
init()
boolean
keyPressed(int p_100875_, int p_100876_, int p_100877_)
void
onClose()
private void
onCreate()
private void
void
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, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, narrationEnabled, onFilesDrop, removeWidget, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderComponentToolTip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderToolTip, resize, sendMessage, sendMessage, 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, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, 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.apache.logging.log4j.Logger LOGGER -
TEMP_WORLD_PREFIX
- See Also:
- Constant Field Values
-
GAME_MODEL_LABEL
-
SEED_LABEL
-
SEED_INFO
-
NAME_LABEL
-
OUTPUT_DIR_INFO
-
COMMANDS_INFO
-
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
public CreateWorldScreen(@Nullable Screen p_100865_, LevelSettings p_100866_, WorldGenSettings p_100867_, @Nullable Path p_100868_, DataPackConfig p_100869_, RegistryAccess.RegistryHolder p_100870_) -
CreateWorldScreen
private CreateWorldScreen(@Nullable Screen p_100861_, DataPackConfig p_100862_, WorldGenSettingsComponent p_100863_)
-
-
Method Details
-
create
-
tick
public void tick() -
init
protected void init() -
getEffectiveDifficulty
-
updateGameModeHelp
private void updateGameModeHelp() -
updateResultFolder
private void updateResultFolder() -
removed
public void removed() -
onCreate
private void onCreate() -
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() -
cleanupTempResources
private void cleanupTempResources() -
render
-
addWidget
-
addRenderableWidget
protected <T extends GuiEventListener & Widget & NarratableEntry> T addRenderableWidget(T p_170199_)- Overrides:
addRenderableWidget
in classScreen
-
getTempDataPackDir
-
openDataPackSelectionScreen
private void openDataPackSelectionScreen() -
tryApplyNewDataPacks
-
removeTempDataPackDir
private void removeTempDataPackDir() -
copyBetweenDirs
-
copyTempDataPackDirToNewWorld
private boolean copyTempDataPackDirToNewWorld() -
createTempDataPackDirFromExistingWorld
-
getDataPackSelectionSettings
@Nullable private com.mojang.datafixers.util.Pair<File,PackRepository> getDataPackSelectionSettings()
-