Package net.minecraft.client.gui.screen
Class CreateWorldScreen
java.lang.Object
net.minecraft.client.gui.AbstractGui
net.minecraft.client.gui.FocusableGui
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.CreateWorldScreen
- All Implemented Interfaces:
IGuiEventListener
,INestedGuiEventHandler
,IRenderable
,IScreen
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
(package private) static enum
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private static final ITextComponent
private Button
private boolean
private Button
protected DatapackCodec
private Button
private Button
private boolean
private Difficulty
private static final ITextComponent
private CreateWorldScreen.GameMode
private ITextComponent
private ITextComponent
private GameRules
private Button
boolean
private String
private final Screen
private static final org.apache.logging.log4j.Logger
private Button
private Button
private static final ITextComponent
private TextFieldWidget
private CreateWorldScreen.GameMode
private static final ITextComponent
private String
private static final ITextComponent
private static final ITextComponent
private Difficulty
private Path
private ResourcePackList
final WorldOptionsScreen
Fields inherited from class net.minecraft.client.gui.screen.Screen
buttons, children, font, height, itemRenderer, minecraft, passEvents, title, width
Fields inherited from class net.minecraft.client.gui.AbstractGui
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
-
Constructor Summary
ModifierConstructorDescriptionprivate
CreateWorldScreen
(Screen p_i242063_1_, DatapackCodec p_i242063_2_, WorldOptionsScreen p_i242063_3_) CreateWorldScreen
(Screen p_i242064_1_, WorldSettings p_i242064_2_, DimensionGeneratorSettings p_i242064_3_, Path p_i242064_4_, DatapackCodec p_i242064_5_, DynamicRegistries.Impl p_i242064_6_) -
Method Summary
Modifier and TypeMethodDescriptionprotected <T extends Widget>
TaddButton
(T p_230480_1_) protected <T extends IGuiEventListener>
TaddWidget
(T p_230481_1_) private void
private static void
copyBetweenDirs
(Path p_238945_0_, Path p_238945_1_, Path p_238945_2_) private boolean
static CreateWorldScreen
static Path
createTempDataPackDirFromExistingWorld
(Path p_238943_0_, Minecraft p_238943_1_) private com.mojang.datafixers.util.Pair<File,
ResourcePackList> protected Path
protected void
init()
boolean
keyPressed
(int p_231046_1_, int p_231046_2_, int p_231046_3_) void
onClose()
private void
onCreate()
private void
void
void
removed()
private void
void
render
(MatrixStack p_230430_1_, int p_230430_2_, int p_230430_3_, float p_230430_4_) private void
setDisplayOptions
(boolean p_146316_1_) private void
setGameMode
(CreateWorldScreen.GameMode p_228200_1_) void
tick()
private void
private void
tryApplyNewDataPacks
(ResourcePackList p_241621_1_) void
private void
private void
Methods inherited from class net.minecraft.client.gui.screen.Screen
children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, onFilesDrop, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderToolTip, renderWrappedToolTip, resize, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenError
Methods inherited from class net.minecraft.client.gui.FocusableGui
getFocused, isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.AbstractGui
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, 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.IGuiEventListener
mouseMoved
Methods inherited from interface net.minecraft.client.gui.INestedGuiEventHandler
changeFocus, charTyped, getChildAt, keyReleased, magicalSpecialHackyFocus, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
GAME_MODEL_LABEL
-
SEED_LABEL
-
SEED_INFO
-
NAME_LABEL
-
OUTPUT_DIR_INFO
-
COMMANDS_INFO
-
lastScreen
-
nameEdit
-
resultFolder
-
gameMode
-
oldGameMode
-
selectedDifficulty
-
effectiveDifficulty
-
commands
private boolean commands -
commandsChanged
private boolean commandsChanged -
hardCore
public boolean hardCore -
dataPacks
-
tempDataPackDir
-
tempDataPackRepository
-
displayOptions
private boolean displayOptions -
createButton
-
modeButton
-
difficultyButton
-
moreOptionsButton
-
gameRulesButton
-
dataPacksButton
-
commandsButton
-
gameModeHelp1
-
gameModeHelp2
-
initName
-
gameRules
-
worldGenSettingsComponent
-
-
Constructor Details
-
CreateWorldScreen
public CreateWorldScreen(@Nullable Screen p_i242064_1_, WorldSettings p_i242064_2_, DimensionGeneratorSettings p_i242064_3_, @Nullable Path p_i242064_4_, DatapackCodec p_i242064_5_, DynamicRegistries.Impl p_i242064_6_) -
CreateWorldScreen
private CreateWorldScreen(@Nullable Screen p_i242063_1_, DatapackCodec p_i242063_2_, WorldOptionsScreen p_i242063_3_)
-
-
Method Details
-
create
-
tick
public void tick() -
init
protected void init() -
updateGameModeHelp
private void updateGameModeHelp() -
updateResultFolder
private void updateResultFolder() -
removed
public void removed() -
onCreate
private void onCreate() -
toggleDisplayOptions
private void toggleDisplayOptions() -
setGameMode
-
updateDisplayOptions
public void updateDisplayOptions() -
setDisplayOptions
private void setDisplayOptions(boolean p_146316_1_) -
keyPressed
public boolean keyPressed(int p_231046_1_, int p_231046_2_, int p_231046_3_) - Specified by:
keyPressed
in interfaceIGuiEventListener
- Specified by:
keyPressed
in interfaceINestedGuiEventHandler
- Overrides:
keyPressed
in classScreen
-
onClose
public void onClose() -
popScreen
public void popScreen() -
cleanupTempResources
private void cleanupTempResources() -
render
- Specified by:
render
in interfaceIRenderable
- Overrides:
render
in classScreen
-
addWidget
-
addButton
-
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,ResourcePackList> getDataPackSelectionSettings()
-