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
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
(package private) class
-
Field Summary
Modifier and TypeFieldDescriptionprivate TextFieldWidget
private FlatPresetsScreen.SlotList
private ITextComponent
private static final org.apache.logging.log4j.Logger
private final CreateFlatWorldScreen
private static final List<FlatPresetsScreen.LayerItem>
private Button
private FlatGenerationSettings
private ITextComponent
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
-
Method Summary
Modifier and TypeMethodDescriptionstatic FlatGenerationSettings
fromString
(Registry<Biome> p_243299_0_, String p_243299_1_, FlatGenerationSettings p_243299_2_) private static FlatLayerInfo
getLayerInfoFromString
(String p_238638_0_, int p_238638_1_) private static List<FlatLayerInfo>
getLayersInfoFromString
(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_, 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
private static 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 Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
PRESETS
-
parent
-
listText
-
list
-
selectButton
-
export
-
settings
-
-
Constructor Details
-
FlatPresetsScreen
-
-
Method Details
-
getLayerInfoFromString
-
getLayersInfoFromString
-
fromString
public static FlatGenerationSettings fromString(Registry<Biome> p_243299_0_, String p_243299_1_, FlatGenerationSettings p_243299_2_) -
save
-
init
protected void init() -
mouseScrolled
public boolean mouseScrolled(double p_231043_1_, double p_231043_3_, double p_231043_5_) -
resize
-
onClose
public void onClose() -
removed
public void removed() -
render
- Specified by:
render
in interfaceIRenderable
- Overrides:
render
in classScreen
-
tick
public void tick() -
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_, List<Structure<?>> p_238640_3_, boolean p_238640_4_, boolean p_238640_5_, boolean p_238640_6_, FlatLayerInfo... p_238640_7_)
-