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) EditBoxprivate Component(package private) static final org.slf4j.Loggerprivate final CreateFlatWorldScreenprivate Button(package private) FlatLevelGeneratorSettingsprivate Componentprivate static final intprivate static final intprivate static final intprivate static final intprivate static final int(package private) static final ResourceLocationprivate static final intstatic final ComponentFields 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, widthFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FlatLevelGeneratorSettingsfromString(HolderGetter<Block> p_259084_, HolderGetter<Biome> p_259583_, HolderGetter<StructureSet> p_259610_, HolderGetter<PlacedFeature> p_259243_, String p_259508_, FlatLevelGeneratorSettings p_259417_) private static FlatLayerInfogetLayerInfoFromString(HolderGetter<Block> p_259695_, String p_259185_, int p_259723_) private static List<FlatLayerInfo> getLayersInfoFromString(HolderGetter<Block> p_259080_, String p_260301_) protected voidinit()booleanmouseScrolled(double p_96381_, double p_96382_, double p_96383_, double p_294944_) voidonClose()voidrender(GuiGraphics p_282713_, int p_281914_, int p_283700_, float p_283598_) Neo: mixins targeting this method won't fire for container screens asAbstractContainerScreen.render(net.minecraft.client.gui.GuiGraphics, int, int, float)replicates this method in place of a super call to insert an eventvoid(package private) static Stringsave(FlatLevelGeneratorSettings p_205394_) voidupdateButtonValidity(boolean p_96450_) 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, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, nextFocusPath, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMovedMethods 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
-
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_, double p_294944_) -
resize
-
onClose
public void onClose() -
render
Description copied from class:ScreenNeo: mixins targeting this method won't fire for container screens asAbstractContainerScreen.render(net.minecraft.client.gui.GuiGraphics, int, int, float)replicates this method in place of a super call to insert an event- Specified by:
renderin interfaceRenderable- Overrides:
renderin classScreen
-
updateButtonValidity
public void updateButtonValidity(boolean p_96450_)
-