Class WorldGenSettingsComponent
java.lang.Object
net.minecraft.client.gui.screens.worldselection.WorldGenSettingsComponent
- All Implemented Interfaces:
Widget
-
Field Summary
Modifier and TypeFieldDescriptionprivate static Component
private MultiLineLabel
private CycleButton<Boolean>
private static Component
private Button
private Button
private CycleButton<Boolean>
private Font
private Button
private static org.apache.logging.log4j.Logger
private static Component
private Optional<WorldPreset>
private RegistryAccess.RegistryHolder
private OptionalLong
private EditBox
private static Component
private WorldGenSettings
private CycleButton<WorldPreset>
private int
-
Constructor Summary
ConstructorDescriptionWorldGenSettingsComponent(RegistryAccess.RegistryHolder p_101399_, WorldGenSettings p_101400_, Optional<WorldPreset> p_101401_, OptionalLong p_101402_)
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
importSettings(RegistryAccess.RegistryHolder p_101443_, WorldGenSettings p_101444_)
void
init(CreateWorldScreen p_101430_, Minecraft p_101431_, Font p_101432_)
boolean
isDebug()
makeSettings(boolean p_101455_)
private static OptionalLong
private OptionalLong
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(ServerResources p_101453_)
void
updateSettings(WorldGenSettings p_101405_)
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.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.RegistryHolder p_101399_, WorldGenSettings p_101400_, Optional<WorldPreset> p_101401_, OptionalLong p_101402_)
-
-
Method Details
-
init
-
importSettings
-
tick
public void tick() -
render
-
updateSettings
-
toString
-
parseLong
-
makeSettings
-
parseSeed
-
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()
-