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
,Widget
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
(package private) class
Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult
-
Field Summary
Modifier and TypeFieldDescriptionprivate static ResourceKey<Biome>
(package private) EditBox
private Component
private static org.apache.logging.log4j.Logger
(package private) CreateFlatWorldScreen
(package private) static List<PresetFlatWorldScreen.PresetInfo>
private Button
(package private) FlatLevelGeneratorSettings
private Component
private static int
private static int
private static int
private static int
private static int
private static int
private static int
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, STATS_ICON_LOCATION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic FlatLevelGeneratorSettings
fromString(Registry<Biome> p_96407_, String p_96408_, FlatLevelGeneratorSettings p_96409_)
private static FlatLayerInfo
getLayerInfoFromString(String p_96414_, int p_96415_)
private static List<FlatLayerInfo>
getLayersInfoFromString(String p_96446_)
protected void
init()
boolean
mouseScrolled(double p_96381_, double p_96382_, double p_96383_)
void
onClose()
private static void
preset(Component p_96425_, ItemLike p_96426_, ResourceKey<Biome> p_96427_, List<StructureFeature<?>> p_96428_, boolean p_96429_, boolean p_96430_, boolean p_96431_, FlatLayerInfo... p_96432_)
void
removed()
void
void
(package private) static String
save(Registry<Biome> p_96440_, FlatLevelGeneratorSettings p_96441_)
void
tick()
void
updateButtonValidity(boolean p_96450_)
Methods inherited from class net.minecraft.client.gui.screens.Screen
addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, children, clearWidgets, findNarratableWidget, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, narrationEnabled, onFilesDrop, removeWidget, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderComponentToolTip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderToolTip, sendMessage, sendMessage, shouldCloseOnEsc, 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, blitOutlineBlack, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, fill, fillGradient, 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.components.events.ContainerEventHandler
changeFocus, charTyped, getChildAt, keyReleased, magicalSpecialHackyFocus, mouseClicked, mouseDragged, mouseReleased, setInitialFocus
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
SLOT_TEX_SIZE
private static final int SLOT_TEX_SIZE- See Also:
- Constant Field Values
-
SLOT_BG_SIZE
private static final int SLOT_BG_SIZE- See Also:
- Constant Field Values
-
SLOT_STAT_HEIGHT
private static final int SLOT_STAT_HEIGHT- See Also:
- Constant Field Values
-
SLOT_BG_X
private static final int SLOT_BG_X- See Also:
- Constant Field Values
-
SLOT_BG_Y
private static final int SLOT_BG_Y- See Also:
- Constant Field Values
-
SLOT_FG_X
private static final int SLOT_FG_X- See Also:
- Constant Field Values
-
SLOT_FG_Y
private static final int SLOT_FG_Y- See Also:
- Constant Field Values
-
PRESETS
-
DEFAULT_BIOME
-
parent
-
listText
-
list
-
selectButton
-
export
EditBox export -
settings
FlatLevelGeneratorSettings settings
-
-
Constructor Details
-
PresetFlatWorldScreen
-
-
Method Details
-
getLayerInfoFromString
-
getLayersInfoFromString
-
fromString
public static FlatLevelGeneratorSettings fromString(Registry<Biome> p_96407_, String p_96408_, FlatLevelGeneratorSettings p_96409_) -
save
-
init
protected void init() -
mouseScrolled
public boolean mouseScrolled(double p_96381_, double p_96382_, double p_96383_) -
resize
-
onClose
public void onClose() -
removed
public void removed() -
render
-
tick
public void tick() -
updateButtonValidity
public void updateButtonValidity(boolean p_96450_) -
preset
private static void preset(Component p_96425_, ItemLike p_96426_, ResourceKey<Biome> p_96427_, List<StructureFeature<?>> p_96428_, boolean p_96429_, boolean p_96430_, boolean p_96431_, FlatLayerInfo... p_96432_)
-