@Environment(value=CLIENT) public class MoreOptionsDialog extends Object implements TickableElement, Drawable
| Modifier and Type | Field and Description |
|---|---|
private static Text |
AMPLIFIED_INFO_TEXT |
ButtonWidget |
bonusItemsButton |
private static Text |
CUSTOM_TEXT |
private ButtonWidget |
customizeTypeButton |
private class_5489 |
field_26605 |
private GeneratorOptions |
generatorOptions |
private Optional<GeneratorType> |
generatorType |
private ButtonWidget |
importOptionsButton |
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 |
seed |
private TextFieldWidget |
seedTextField |
private TextRenderer |
textRenderer |
| Constructor and Description |
|---|
MoreOptionsDialog(DynamicRegistryManager.Impl registryManager,
GeneratorOptions generatorOptions,
Optional<GeneratorType> generatorType,
OptionalLong seed) |
| Modifier and Type | Method and 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) |
protected void |
setGeneratorOptions(GeneratorOptions generatorOptions) |
void |
setVisible(boolean visible) |
void |
tick() |
private static String |
toSeedText(OptionalLong seed) |
private static OptionalLong |
tryParseLong(String string) |
private static final Logger LOGGER
private static final Text CUSTOM_TEXT
private static final Text AMPLIFIED_INFO_TEXT
private static final Text MAP_FEATURES_INFO_TEXT
private class_5489 field_26605
private TextRenderer textRenderer
private int parentWidth
private TextFieldWidget seedTextField
private ButtonWidget mapFeaturesButton
public ButtonWidget bonusItemsButton
private ButtonWidget mapTypeButton
private ButtonWidget customizeTypeButton
private ButtonWidget importOptionsButton
private DynamicRegistryManager.Impl registryManager
private GeneratorOptions generatorOptions
private Optional<GeneratorType> generatorType
private OptionalLong seed
public MoreOptionsDialog(DynamicRegistryManager.Impl registryManager, GeneratorOptions generatorOptions, Optional<GeneratorType> generatorType, OptionalLong seed)
public void init(CreateWorldScreen parent, MinecraftClient client, TextRenderer textRenderer)
private void importOptions(DynamicRegistryManager.Impl registryManager, GeneratorOptions generatorOptions)
public void tick()
tick in interface TickableElementpublic void render(MatrixStack matrices, int mouseX, int mouseY, float delta)
protected void setGeneratorOptions(GeneratorOptions generatorOptions)
private static String toSeedText(OptionalLong seed)
private static OptionalLong tryParseLong(String string)
public GeneratorOptions getGeneratorOptions(boolean hardcore)
private OptionalLong getSeed()
public boolean isDebugWorld()
public void setVisible(boolean visible)
public DynamicRegistryManager.Impl getRegistryManager()
void loadDatapacks(ServerResourceManager serverResourceManager)