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<Holder<WorldPreset>>
private OptionalLong
private EditBox
private static final Component
private WorldCreationContext
private CycleButton<Holder<WorldPreset>>
private int
-
Constructor Summary
ConstructorDescriptionWorldGenSettingsComponent
(WorldCreationContext p_233011_, Optional<ResourceKey<WorldPreset>> p_233012_, OptionalLong p_233013_) -
Method Summary
Modifier and TypeMethodDescriptioncreateFinalSettings
(boolean p_233067_) private static Component
describePreset
(Holder<WorldPreset> p_233086_) private static Optional<Holder<WorldPreset>>
findPreset
(WorldCreationContext p_233048_, Optional<ResourceKey<WorldPreset>> p_233049_) private static Optional<List<Holder<WorldPreset>>>
getNonEmptyList
(Registry<WorldPreset> p_233060_, TagKey<WorldPreset> p_233061_) private void
importSettings
(WorldGenSettings p_233017_) void
init
(CreateWorldScreen p_101430_, Minecraft p_101431_, Font p_101432_) private static boolean
isAmplified
(Holder<WorldPreset> p_233051_) boolean
isDebug()
void
private void
selectWorldTypeButton
(boolean p_170290_) settings()
void
setVisibility
(boolean p_170288_) void
void
void
tick()
private static String
toString
(OptionalLong p_101448_) (package private) void
updateSettings
(WorldCreationContext p_233043_) (package private) void
updateSettings
(WorldCreationContext.SimpleUpdater p_233039_) (package private) void
updateSettings
(WorldCreationContext.Updater p_233041_)
-
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
-
settings
-
preset
-
seed
-
-
Constructor Details
-
WorldGenSettingsComponent
public WorldGenSettingsComponent(WorldCreationContext p_233011_, Optional<ResourceKey<WorldPreset>> p_233012_, OptionalLong p_233013_)
-
-
Method Details
-
findPreset
private static Optional<Holder<WorldPreset>> findPreset(WorldCreationContext p_233048_, Optional<ResourceKey<WorldPreset>> p_233049_) -
init
-
getNonEmptyList
private static Optional<List<Holder<WorldPreset>>> getNonEmptyList(Registry<WorldPreset> p_233060_, TagKey<WorldPreset> p_233061_) -
isAmplified
-
describePreset
-
importSettings
-
tick
public void tick() -
render
-
updateSettings
-
updateSettings
-
updateSettings
-
toString
-
createFinalSettings
-
isDebug
public boolean isDebug() -
setVisibility
public void setVisibility(boolean p_170288_) -
selectWorldTypeButton
private void selectWorldTypeButton(boolean p_170290_) -
settings
-
registryHolder
-
switchToHardcore
public void switchToHardcore() -
switchOutOfHardcode
public void switchOutOfHardcode()
-