Package net.minecraft.client.gui.screen
Class FlatPresetsScreen
- java.lang.Object
-
- net.minecraft.client.gui.AbstractGui
-
- net.minecraft.client.gui.FocusableGui
-
- net.minecraft.client.gui.screen.Screen
-
- net.minecraft.client.gui.screen.FlatPresetsScreen
-
- All Implemented Interfaces:
IGuiEventListener
,INestedGuiEventHandler
,IRenderable
,IScreen
public class FlatPresetsScreen extends Screen
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
FlatPresetsScreen.LayerItem
(package private) class
FlatPresetsScreen.SlotList
-
Field Summary
Fields Modifier and Type Field Description private TextFieldWidget
export
private FlatPresetsScreen.SlotList
list
private ITextComponent
listText
private static org.apache.logging.log4j.Logger
LOGGER
private CreateFlatWorldScreen
parent
private static java.util.List<FlatPresetsScreen.LayerItem>
PRESETS
private Button
selectButton
private FlatGenerationSettings
settings
private ITextComponent
shareText
-
Fields inherited from class net.minecraft.client.gui.screen.Screen
buttons, children, font, height, itemRenderer, minecraft, passEvents, title, width
-
Fields inherited from class net.minecraft.client.gui.AbstractGui
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
-
-
Constructor Summary
Constructors Constructor Description FlatPresetsScreen(CreateFlatWorldScreen p_i46318_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FlatGenerationSettings
fromString(Registry<Biome> p_243299_0_, java.lang.String p_243299_1_, FlatGenerationSettings p_243299_2_)
private static FlatLayerInfo
getLayerInfoFromString(java.lang.String p_238638_0_, int p_238638_1_)
private static java.util.List<FlatLayerInfo>
getLayersInfoFromString(java.lang.String p_238637_0_)
protected void
init()
boolean
mouseScrolled(double p_231043_1_, double p_231043_3_, double p_231043_5_)
void
onClose()
private static void
preset(ITextComponent p_238640_0_, IItemProvider p_238640_1_, RegistryKey<Biome> p_238640_2_, java.util.List<Structure<?>> p_238640_3_, boolean p_238640_4_, boolean p_238640_5_, boolean p_238640_6_, FlatLayerInfo... p_238640_7_)
void
removed()
void
render(MatrixStack p_230430_1_, int p_230430_2_, int p_230430_3_, float p_230430_4_)
void
resize(Minecraft p_231152_1_, int p_231152_2_, int p_231152_3_)
private static java.lang.String
save(Registry<Biome> p_243303_0_, FlatGenerationSettings p_243303_1_)
void
tick()
void
updateButtonValidity(boolean p_213074_1_)
-
Methods inherited from class net.minecraft.client.gui.screen.Screen
addButton, addWidget, children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, onFilesDrop, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderToolTip, renderWrappedToolTip, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenError
-
Methods inherited from class net.minecraft.client.gui.FocusableGui
getFocused, isDragging, setDragging, setFocused
-
Methods inherited from class net.minecraft.client.gui.AbstractGui
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraft.client.gui.IGuiEventListener
mouseMoved
-
Methods inherited from interface net.minecraft.client.gui.INestedGuiEventHandler
changeFocus, charTyped, getChildAt, keyReleased, magicalSpecialHackyFocus, mouseClicked, mouseDragged, mouseReleased, setInitialFocus
-
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
PRESETS
private static final java.util.List<FlatPresetsScreen.LayerItem> PRESETS
-
parent
private final CreateFlatWorldScreen parent
-
shareText
private ITextComponent shareText
-
listText
private ITextComponent listText
-
list
private FlatPresetsScreen.SlotList list
-
selectButton
private Button selectButton
-
export
private TextFieldWidget export
-
settings
private FlatGenerationSettings settings
-
-
Constructor Detail
-
FlatPresetsScreen
public FlatPresetsScreen(CreateFlatWorldScreen p_i46318_1_)
-
-
Method Detail
-
getLayerInfoFromString
@Nullable private static FlatLayerInfo getLayerInfoFromString(java.lang.String p_238638_0_, int p_238638_1_)
-
getLayersInfoFromString
private static java.util.List<FlatLayerInfo> getLayersInfoFromString(java.lang.String p_238637_0_)
-
fromString
public static FlatGenerationSettings fromString(Registry<Biome> p_243299_0_, java.lang.String p_243299_1_, FlatGenerationSettings p_243299_2_)
-
save
private static java.lang.String save(Registry<Biome> p_243303_0_, FlatGenerationSettings p_243303_1_)
-
mouseScrolled
public boolean mouseScrolled(double p_231043_1_, double p_231043_3_, double p_231043_5_)
-
resize
public void resize(Minecraft p_231152_1_, int p_231152_2_, int p_231152_3_)
-
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
- Overrides:
render
in classScreen
-
updateButtonValidity
public void updateButtonValidity(boolean p_213074_1_)
-
preset
private static void preset(ITextComponent p_238640_0_, IItemProvider p_238640_1_, RegistryKey<Biome> p_238640_2_, java.util.List<Structure<?>> p_238640_3_, boolean p_238640_4_, boolean p_238640_5_, boolean p_238640_6_, FlatLayerInfo... p_238640_7_)
-
-