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 classFlatPresetsScreen.LayerItem(package private) classFlatPresetsScreen.SlotList
-
Field Summary
Fields Modifier and Type Field Description private TextFieldWidgetexportprivate FlatPresetsScreen.SlotListlistprivate ITextComponentlistTextprivate static org.apache.logging.log4j.LoggerLOGGERprivate CreateFlatWorldScreenparentprivate static java.util.List<FlatPresetsScreen.LayerItem>PRESETSprivate ButtonselectButtonprivate FlatGenerationSettingssettingsprivate ITextComponentshareText-
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 FlatGenerationSettingsfromString(Registry<Biome> p_243299_0_, java.lang.String p_243299_1_, FlatGenerationSettings p_243299_2_)private static FlatLayerInfogetLayerInfoFromString(java.lang.String p_238638_0_, int p_238638_1_)private static java.util.List<FlatLayerInfo>getLayersInfoFromString(java.lang.String p_238637_0_)protected voidinit()booleanmouseScrolled(double p_231043_1_, double p_231043_3_, double p_231043_5_)voidonClose()private static voidpreset(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_)voidremoved()voidrender(MatrixStack p_230430_1_, int p_230430_2_, int p_230430_3_, float p_230430_4_)voidresize(Minecraft p_231152_1_, int p_231152_2_, int p_231152_3_)private static java.lang.Stringsave(Registry<Biome> p_243303_0_, FlatGenerationSettings p_243303_1_)voidtick()voidupdateButtonValidity(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:
renderin interfaceIRenderable- Overrides:
renderin 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_)
-
-