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
ButtonWidget
bonusItemsButton
private static Text
CUSTOM_TEXT
private ButtonWidget
customizeTypeButton
private MultilineText
generatorInfoText
private GeneratorOptions
generatorOptions
private Optional<GeneratorType>
generatorType
private ButtonWidget
importSettingsButton
private static Logger
LOGGER
private static Text
MAP_FEATURES_INFO_TEXT
private ButtonWidget
mapFeaturesButton
private ButtonWidget
mapTypeButton
private int
parentWidth
private DynamicRegistryManager.Impl
registryManager
private OptionalLong
seedText
private TextFieldWidget
seedTextField
private TextRenderer
textRenderer
-
Constructor Summary
Constructors Constructor Description MoreOptionsDialog(DynamicRegistryManager.Impl registryManager, GeneratorOptions generatorOptions, Optional<GeneratorType> generatorType, OptionalLong seedText)
-
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
render(MatrixStack matrices, int mouseX, int mouseY, float delta)
private static String
seedToString(OptionalLong seed)
protected void
setGeneratorOptions(GeneratorOptions generatorOptions)
void
setVisible(boolean visible)
void
tick()
private static OptionalLong
tryParseLong(String string)
-
Field Details
-
LOGGER
-
CUSTOM_TEXT
-
AMPLIFIED_INFO_TEXT
-
MAP_FEATURES_INFO_TEXT
-
generatorInfoText
-
textRenderer
-
parentWidth
private int parentWidth -
seedTextField
-
mapFeaturesButton
-
bonusItemsButton
-
mapTypeButton
-
customizeTypeButton
-
importSettingsButton
-
registryManager
-
generatorOptions
-
generatorType
-
seedText
-
-
Constructor Details
-
MoreOptionsDialog
public MoreOptionsDialog(DynamicRegistryManager.Impl registryManager, GeneratorOptions generatorOptions, Optional<GeneratorType> generatorType, OptionalLong seedText)
-
-
Method Details
-
init
-
importOptions
private void importOptions(DynamicRegistryManager.Impl registryManager, GeneratorOptions generatorOptions) -
tick
public void tick()- Specified by:
tick
in interfaceTickableElement
-
render
-
setGeneratorOptions
-
seedToString
-
tryParseLong
-
getGeneratorOptions
-
getSeed
-
isDebugWorld
public boolean isDebugWorld() -
setVisible
public void setVisible(boolean visible) -
getRegistryManager
-
loadDatapacks
-