Package net.minecraft.client.gui.screens
Class PresetFlatWorldScreen
java.lang.Object
net.minecraft.client.gui.GuiComponent
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 classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
Screen.DeferredTooltipRendering, Screen.NarratableSearchResult
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final ResourceKey<Biome>
(package private) EditBox
private Component
(package private) static final org.slf4j.Logger
private final CreateFlatWorldScreen
private 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
private static final int
private static final int
static final Component
Fields inherited from class net.minecraft.client.gui.screens.Screen
font, height, itemRenderer, minecraft, passEvents, renderables, title, width
Fields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, LIGHT_DIRT_BACKGROUND, STATS_ICON_LOCATION
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic FlatLevelGeneratorSettings
fromString
(HolderGetter<Block> p_259084_, HolderGetter<Biome> p_259583_, HolderGetter<StructureSet> p_259610_, HolderGetter<PlacedFeature> p_259243_, String p_259508_, FlatLevelGeneratorSettings p_259417_) private static FlatLayerInfo
getLayerInfoFromString
(HolderGetter<Block> p_259695_, String p_259185_, int p_259723_) private static List<FlatLayerInfo>
getLayersInfoFromString
(HolderGetter<Block> p_259080_, String p_260301_) protected void
init()
boolean
mouseScrolled
(double p_96381_, double p_96382_, double p_96383_) void
onClose()
void
void
(package private) static String
save
(FlatLevelGeneratorSettings p_205394_) void
tick()
void
updateButtonValidity
(boolean p_96450_) Methods inherited from class net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearWidgets, findNarratableWidget, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, narrationEnabled, onFilesDrop, rebuildWidgets, removed, removeWidget, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderWithTooltip, repositionElements, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenError
Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blit, blitNineSliced, blitNineSliced, blitNineSliced, blitOutlineBlack, blitRepeating, disableScissor, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, enableScissor, fill, fill, fillGradient, fillGradient, fillGradient, hLine, renderOutline, 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.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, magicalSpecialHackyFocus, 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
-
LOGGER
static final org.slf4j.Logger LOGGER -
SLOT_TEX_SIZE
private static final int SLOT_TEX_SIZE- See Also:
-
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
-
listText
-
list
-
selectButton
-
export
EditBox export -
settings
FlatLevelGeneratorSettings settings
-
-
Constructor Details
-
PresetFlatWorldScreen
-
-
Method Details
-
getLayerInfoFromString
@Nullable private static FlatLayerInfo getLayerInfoFromString(HolderGetter<Block> p_259695_, String p_259185_, int p_259723_) -
getLayersInfoFromString
private static List<FlatLayerInfo> getLayersInfoFromString(HolderGetter<Block> p_259080_, String p_260301_) -
fromString
public static FlatLevelGeneratorSettings fromString(HolderGetter<Block> p_259084_, HolderGetter<Biome> p_259583_, HolderGetter<StructureSet> p_259610_, HolderGetter<PlacedFeature> p_259243_, String p_259508_, FlatLevelGeneratorSettings p_259417_) -
save
-
init
protected void init() -
mouseScrolled
public boolean mouseScrolled(double p_96381_, double p_96382_, double p_96383_) -
resize
-
onClose
public void onClose() -
render
- Specified by:
render
in interfaceRenderable
- Overrides:
render
in classScreen
-
tick
public void tick() -
updateButtonValidity
public void updateButtonValidity(boolean p_96450_)
-