Class MoreOptionsDialog
java.lang.Object
net.minecraft.client.gui.screen.world.MoreOptionsDialog
- All Implemented Interfaces:
Drawable
,TickableElement
@Environment(CLIENT) public class MoreOptionsDialog extends Object implements TickableElement, Drawable
-
Field Summary
Fields Modifier and Type Field Description private static Text
AMPLIFIED_INFO_TEXT
private CyclingButtonWidget<Boolean>
bonusItemsButton
private static Text
CUSTOM_TEXT
private ButtonWidget
customizeTypeButton
private class_5489
field_26605
private static Text
field_28000
private ButtonWidget
field_28001
private GeneratorOptions
generatorOptions
private Optional<GeneratorType>
generatorType
private ButtonWidget
importOptionsButton
private static Logger
LOGGER
private static Text
MAP_FEATURES_INFO_TEXT
private CyclingButtonWidget<Boolean>
mapFeaturesButton
private CyclingButtonWidget<GeneratorType>
mapTypeButton
private int
parentWidth
private DynamicRegistryManager.Impl
registryManager
private OptionalLong
seed
private TextFieldWidget
seedTextField
private TextRenderer
textRenderer
-
Constructor Summary
Constructors Constructor Description MoreOptionsDialog(DynamicRegistryManager.Impl registryManager, GeneratorOptions generatorOptions, Optional<GeneratorType> generatorType, OptionalLong seed)
-
Method Summary
Modifier and Type Method Description GeneratorOptions
getGeneratorOptions(boolean hardcore)
DynamicRegistryManager.Impl
getRegistryManager()
private OptionalLong
getSeed()
private void
importOptions(DynamicRegistryManager.Impl registryManager, GeneratorOptions generatorOptions)
void
init(CreateWorldScreen parent, MinecraftClient client, TextRenderer textRenderer)
boolean
isDebugWorld()
(package private) void
loadDatapacks(ServerResourceManager serverResourceManager)
void
method_32682()
private void
method_32683(boolean bool)
void
method_32684()
void
render(MatrixStack matrices, int mouseX, int mouseY, float delta)
protected void
setGeneratorOptions(GeneratorOptions generatorOptions)
void
setVisible(boolean visible)
void
tick()
private static String
toSeedText(OptionalLong seed)
private static OptionalLong
tryParseLong(String string)
-
Field Details
-
LOGGER
-
CUSTOM_TEXT
-
AMPLIFIED_INFO_TEXT
-
MAP_FEATURES_INFO_TEXT
-
field_28000
-
field_26605
-
textRenderer
-
parentWidth
private int parentWidth -
seedTextField
-
mapFeaturesButton
-
bonusItemsButton
-
mapTypeButton
-
field_28001
-
customizeTypeButton
-
importOptionsButton
-
registryManager
-
generatorOptions
-
generatorType
-
seed
-
-
Constructor Details
-
MoreOptionsDialog
public MoreOptionsDialog(DynamicRegistryManager.Impl registryManager, GeneratorOptions generatorOptions, Optional<GeneratorType> generatorType, OptionalLong seed)
-
-
Method Details
-
init
-
importOptions
private void importOptions(DynamicRegistryManager.Impl registryManager, GeneratorOptions generatorOptions) -
tick
public void tick()- Specified by:
tick
in interfaceTickableElement
-
render
-
setGeneratorOptions
-
toSeedText
-
tryParseLong
-
getGeneratorOptions
-
getSeed
-
isDebugWorld
public boolean isDebugWorld() -
setVisible
public void setVisible(boolean visible) -
method_32683
private void method_32683(boolean bool) -
getRegistryManager
-
loadDatapacks
-
method_32682
public void method_32682() -
method_32684
public void method_32684()
-