Package net.minecraft.client.gui.screen
Class WorldOptionsScreen
- java.lang.Object
-
- net.minecraft.client.gui.screen.WorldOptionsScreen
-
- All Implemented Interfaces:
IRenderable
,IScreen
public class WorldOptionsScreen extends java.lang.Object implements IScreen, IRenderable
-
-
Field Summary
Fields Modifier and Type Field Description private static ITextComponent
AMPLIFIED_HELP_TEXT
private IBidiRenderer
amplifiedWorldInfo
Button
bonusItemsButton
private static ITextComponent
CUSTOM_WORLD_DESCRIPTION
private Button
customizeTypeButton
private Button
featuresButton
private FontRenderer
font
private Button
importSettingsButton
private static org.apache.logging.log4j.Logger
LOGGER
private static ITextComponent
MAP_FEATURES_INFO
private java.util.Optional<BiomeGeneratorTypeScreens>
preset
private DynamicRegistries.Impl
registryHolder
private java.util.OptionalLong
seed
private TextFieldWidget
seedEdit
private DimensionGeneratorSettings
settings
private Button
typeButton
private int
width
-
Constructor Summary
Constructors Constructor Description WorldOptionsScreen(DynamicRegistries.Impl p_i242065_1_, DimensionGeneratorSettings p_i242065_2_, java.util.Optional<BiomeGeneratorTypeScreens> p_i242065_3_, java.util.OptionalLong p_i242065_4_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
importSettings(DynamicRegistries.Impl p_239052_1_, DimensionGeneratorSettings p_239052_2_)
void
init(CreateWorldScreen p_239048_1_, Minecraft p_239048_2_, FontRenderer p_239048_3_)
boolean
isDebug()
DimensionGeneratorSettings
makeSettings(boolean p_239054_1_)
private static java.util.OptionalLong
parseLong(java.lang.String p_239053_0_)
private java.util.OptionalLong
parseSeed()
DynamicRegistries.Impl
registryHolder()
void
render(MatrixStack p_230430_1_, int p_230430_2_, int p_230430_3_, float p_230430_4_)
void
setDisplayOptions(boolean p_239059_1_)
void
tick()
private static java.lang.String
toString(java.util.OptionalLong p_243445_0_)
(package private) void
updateDataPacks(DataPackRegistries p_243447_1_)
void
updateSettings(DimensionGeneratorSettings p_239043_1_)
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
CUSTOM_WORLD_DESCRIPTION
private static final ITextComponent CUSTOM_WORLD_DESCRIPTION
-
AMPLIFIED_HELP_TEXT
private static final ITextComponent AMPLIFIED_HELP_TEXT
-
MAP_FEATURES_INFO
private static final ITextComponent MAP_FEATURES_INFO
-
amplifiedWorldInfo
private IBidiRenderer amplifiedWorldInfo
-
font
private FontRenderer font
-
width
private int width
-
seedEdit
private TextFieldWidget seedEdit
-
featuresButton
private Button featuresButton
-
bonusItemsButton
public Button bonusItemsButton
-
typeButton
private Button typeButton
-
customizeTypeButton
private Button customizeTypeButton
-
importSettingsButton
private Button importSettingsButton
-
registryHolder
private DynamicRegistries.Impl registryHolder
-
settings
private DimensionGeneratorSettings settings
-
preset
private java.util.Optional<BiomeGeneratorTypeScreens> preset
-
seed
private java.util.OptionalLong seed
-
-
Constructor Detail
-
WorldOptionsScreen
public WorldOptionsScreen(DynamicRegistries.Impl p_i242065_1_, DimensionGeneratorSettings p_i242065_2_, java.util.Optional<BiomeGeneratorTypeScreens> p_i242065_3_, java.util.OptionalLong p_i242065_4_)
-
-
Method Detail
-
init
public void init(CreateWorldScreen p_239048_1_, Minecraft p_239048_2_, FontRenderer p_239048_3_)
-
importSettings
private void importSettings(DynamicRegistries.Impl p_239052_1_, DimensionGeneratorSettings p_239052_2_)
-
render
public void render(MatrixStack p_230430_1_, int p_230430_2_, int p_230430_3_, float p_230430_4_)
- Specified by:
render
in interfaceIRenderable
-
updateSettings
public void updateSettings(DimensionGeneratorSettings p_239043_1_)
-
toString
private static java.lang.String toString(java.util.OptionalLong p_243445_0_)
-
parseLong
private static java.util.OptionalLong parseLong(java.lang.String p_239053_0_)
-
makeSettings
public DimensionGeneratorSettings makeSettings(boolean p_239054_1_)
-
parseSeed
private java.util.OptionalLong parseSeed()
-
isDebug
public boolean isDebug()
-
setDisplayOptions
public void setDisplayOptions(boolean p_239059_1_)
-
registryHolder
public DynamicRegistries.Impl registryHolder()
-
updateDataPacks
void updateDataPacks(DataPackRegistries p_243447_1_)
-
-