Package net.minecraft.client.gui.screens
Class PresetFlatWorldScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.PresetFlatWorldScreen
- All Implemented Interfaces:
ContainerEventHandler
,GuiEventListener
,Renderable
,TabOrderedElement
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
Screen.DeferredTooltipRendering, Screen.NarratableSearchResult
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ResourceKey
<Biome> (package private) EditBox
private Component
(package private) static final org.slf4j.Logger
private final CreateFlatWorldScreen
The parent GUIprivate Button
(package private) FlatLevelGeneratorSettings
private Component
private static final int
private static final int
private static final int
private static final int
private static final int
(package private) static final ResourceLocation
private static final int
static final Component
Fields inherited from class net.minecraft.client.gui.screens.Screen
CUBE_MAP, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, PANORAMA, renderables, screenExecutor, title, width
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FlatLevelGeneratorSettings
fromString
(HolderGetter<Block> blockGetter, HolderGetter<Biome> biomeGetter, HolderGetter<StructureSet> structureSetGetter, HolderGetter<PlacedFeature> placedFeatureGetter, String settings, FlatLevelGeneratorSettings layerGenerationSettings) private static FlatLayerInfo
getLayerInfoFromString
(HolderGetter<Block> blockGetter, String layerInfo, int currentHeight) private static List
<FlatLayerInfo> getLayersInfoFromString
(HolderGetter<Block> blockGetter, String layerInfo) protected void
init()
boolean
mouseScrolled
(double mouseX, double mouseY, double scrollX, double scrollY) void
onClose()
void
render
(GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick) Renders the graphical user interface (GUI) element.void
(package private) static String
save
(FlatLevelGeneratorSettings levelGeneratorSettings) void
updateButtonValidity
(boolean valid) Methods inherited from class net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearFocus, clearTooltipForNextRenderPass, clearWidgets, findNarratableWidget, getBackgroundMusic, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, onFilesDrop, rebuildWidgets, removed, removeWidget, renderBackground, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltip, repositionElements, setInitialFocus, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, tick, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatus, wrapScreenError
Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocused
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.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, nextFocusPath, setFocused
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
SLOT_SPRITE
-
LOGGER
static final org.slf4j.Logger LOGGER -
SLOT_BG_SIZE
private static final int SLOT_BG_SIZE- See Also:
-
SLOT_STAT_HEIGHT
private static final int SLOT_STAT_HEIGHT- See Also:
-
SLOT_BG_X
private static final int SLOT_BG_X- See Also:
-
SLOT_BG_Y
private static final int SLOT_BG_Y- See Also:
-
SLOT_FG_X
private static final int SLOT_FG_X- See Also:
-
SLOT_FG_Y
private static final int SLOT_FG_Y- See Also:
-
DEFAULT_BIOME
-
UNKNOWN_PRESET
-
parent
The parent GUI -
listText
-
list
-
selectButton
-
export
EditBox export -
settings
FlatLevelGeneratorSettings settings
-
-
Constructor Details
-
PresetFlatWorldScreen
-
-
Method Details
-
getLayerInfoFromString
@Nullable private static FlatLayerInfo getLayerInfoFromString(HolderGetter<Block> blockGetter, String layerInfo, int currentHeight) -
getLayersInfoFromString
private static List<FlatLayerInfo> getLayersInfoFromString(HolderGetter<Block> blockGetter, String layerInfo) -
fromString
public static FlatLevelGeneratorSettings fromString(HolderGetter<Block> blockGetter, HolderGetter<Biome> biomeGetter, HolderGetter<StructureSet> structureSetGetter, HolderGetter<PlacedFeature> placedFeatureGetter, String settings, FlatLevelGeneratorSettings layerGenerationSettings) -
save
-
init
protected void init() -
mouseScrolled
public boolean mouseScrolled(double mouseX, double mouseY, double scrollX, double scrollY) -
resize
-
onClose
public void onClose() -
render
Renders the graphical user interface (GUI) element.- Specified by:
render
in interfaceRenderable
- Overrides:
render
in classScreen
- Parameters:
guiGraphics
- the GuiGraphics object used for rendering.mouseX
- the x-coordinate of the mouse cursor.mouseY
- the y-coordinate of the mouse cursor.partialTick
- the partial tick time.
-
updateButtonValidity
public void updateButtonValidity(boolean valid)
-