Class WorldGenSettingsComponent
java.lang.Object
net.minecraft.client.gui.screens.worldselection.WorldGenSettingsComponent
- All Implemented Interfaces:
Widget
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Component
private MultiLineLabel
private CycleButton<Boolean>
private static final Component
private Button
private Button
private CycleButton<Boolean>
private Font
private Button
private static final org.slf4j.Logger
private static final Component
private Optional<WorldPreset>
private RegistryAccess.Frozen
private OptionalLong
private EditBox
private static final Component
private WorldGenSettings
private CycleButton<WorldPreset>
private int
-
Constructor Summary
ConstructorDescriptionWorldGenSettingsComponent
(RegistryAccess.Frozen p_205452_, WorldGenSettings p_205453_, Optional<WorldPreset> p_205454_, OptionalLong p_205455_) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
importSettings
(RegistryAccess.Frozen p_205469_, WorldGenSettings p_205470_) void
init
(CreateWorldScreen p_101430_, Minecraft p_101431_, Font p_101432_) boolean
isDebug()
makeSettings
(boolean p_101455_) void
private void
selectWorldTypeButton
(boolean p_170290_) void
setVisibility
(boolean p_170288_) void
void
void
tick()
private static String
toString
(OptionalLong p_101448_) (package private) void
updateDataPacks
(WorldStem p_205472_) void
updateSettings
(WorldGenSettings p_101405_)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
CUSTOM_WORLD_DESCRIPTION
-
AMPLIFIED_HELP_TEXT
-
MAP_FEATURES_INFO
-
SELECT_FILE_PROMPT
-
amplifiedWorldInfo
-
font
-
width
private int width -
seedEdit
-
featuresButton
-
bonusItemsButton
-
typeButton
-
customWorldDummyButton
-
customizeTypeButton
-
importSettingsButton
-
registryHolder
-
settings
-
preset
-
seed
-
-
Constructor Details
-
WorldGenSettingsComponent
public WorldGenSettingsComponent(RegistryAccess.Frozen p_205452_, WorldGenSettings p_205453_, Optional<WorldPreset> p_205454_, OptionalLong p_205455_)
-
-
Method Details
-
init
-
importSettings
-
tick
public void tick() -
render
-
updateSettings
-
toString
-
makeSettings
-
isDebug
public boolean isDebug() -
setVisibility
public void setVisibility(boolean p_170288_) -
selectWorldTypeButton
private void selectWorldTypeButton(boolean p_170290_) -
registryHolder
-
updateDataPacks
-
switchToHardcore
public void switchToHardcore() -
switchOutOfHardcode
public void switchOutOfHardcode()
-