Package net.minecraft.client.gui.screen
Class PresetsScreen
java.lang.Object
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.PresetsScreen
- All Implemented Interfaces:
- Drawable,- Element,- Navigable,- ParentElement
- Mappings:
- Namespace - Name - official - eun- intermediary - net/minecraft/class_430- named - net/minecraft/client/gui/screen/PresetsScreen
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class net.minecraft.client.gui.screen.ScreenScreen.SelectedElementNarrationData
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final RegistryKey<Biome>private static final int(package private) FlatChunkGeneratorConfig(package private) TextFieldWidgetprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate Text(package private) static final Loggerprivate final CustomizeFlatLevelScreenprivate ButtonWidgetprivate Textstatic final TextFields inherited from class net.minecraft.client.gui.screen.Screenclient, executor, height, OPTIONS_BACKGROUND_TEXTURE, textRenderer, title, widthFields inherited from interface net.minecraft.client.gui.ElementMAX_DOUBLE_CLICK_INTERVAL
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()(package private) static Stringprotected voidinit()Called when a screen should be initialized.booleanmouseScrolled(double mouseX, double mouseY, double amount) Callback for when a mouse button scroll event has been captured.private static @Nullable FlatChunkGeneratorLayerparseLayerString(RegistryEntryLookup<Block> blockLookup, String layer, int layerStartHeight) Parse a string like"60*minecraft:stone"to aFlatChunkGeneratorLayer.private static List<FlatChunkGeneratorLayer>parsePresetLayersString(RegistryEntryLookup<Block> blockLookup, String layers) Parse a string like"minecraft:bedrock,3*minecraft:dirt,minecraft:grass_block"to a list ofFlatChunkGeneratorLayer.static FlatChunkGeneratorConfigparsePresetString(RegistryEntryLookup<Block> blockLookup, RegistryEntryLookup<Biome> biomeLookup, RegistryEntryLookup<StructureSet> structureSetLookup, RegistryEntryLookup<PlacedFeature> placedFeatureLookup, String preset, FlatChunkGeneratorConfig config) voidrender(DrawContext context, int mouseX, int mouseY, float delta) voidresize(MinecraftClient client, int width, int height) voidtick()voidupdateSelectButton(boolean hasSelected) Methods inherited from class net.minecraft.client.gui.screen.ScreenaddDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, applyNarratorModeChangeDelay, children, clearAndInit, clearChildren, filesDragged, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, hide, init, initTabNavigation, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, narrateScreenIfNarrationEnabled, onDisplayed, remove, removed, renderBackground, renderBackgroundTexture, renderWithTooltip, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, shouldCloseOnEsc, shouldPause, switchFocus, updateNarrator, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.AbstractParentElementgetFocused, isDragging, setDragging, setFocusedMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.ElementmouseMovedMethods inherited from interface net.minecraft.client.gui.navigation.NavigablegetNavigationOrderMethods inherited from interface net.minecraft.client.gui.ParentElementcharTyped, focusOn, getFocusedPath, getNavigationPath, hoveredElement, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, setFocused
- 
Field Details- 
LOGGER- Mappings:
- Namespace - Name - Mixin selector - official - b- Leun;b:Lorg/slf4j/Logger;- intermediary - field_25043- Lnet/minecraft/class_430;field_25043:Lorg/slf4j/Logger;- named - LOGGER- Lnet/minecraft/client/gui/screen/PresetsScreen;LOGGER:Lorg/slf4j/Logger;
 
- 
ICON_TEXTURE_SIZEprivate static final int ICON_TEXTURE_SIZE- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - c- Leun;c:I- intermediary - field_32263- Lnet/minecraft/class_430;field_32263:I- named - ICON_TEXTURE_SIZE- Lnet/minecraft/client/gui/screen/PresetsScreen;ICON_TEXTURE_SIZE:I
 
- 
ICON_SIZEprivate static final int ICON_SIZE- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - k- Leun;k:I- intermediary - field_32264- Lnet/minecraft/class_430;field_32264:I- named - ICON_SIZE- Lnet/minecraft/client/gui/screen/PresetsScreen;ICON_SIZE:I
 
- 
BUTTON_HEIGHTprivate static final int BUTTON_HEIGHT- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - l- Leun;l:I- intermediary - field_32265- Lnet/minecraft/class_430;field_32265:I- named - BUTTON_HEIGHT- Lnet/minecraft/client/gui/screen/PresetsScreen;BUTTON_HEIGHT:I
 
- 
ICON_BACKGROUND_OFFSET_Xprivate static final int ICON_BACKGROUND_OFFSET_X- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - m- Leun;m:I- intermediary - field_32266- Lnet/minecraft/class_430;field_32266:I- named - ICON_BACKGROUND_OFFSET_X- Lnet/minecraft/client/gui/screen/PresetsScreen;ICON_BACKGROUND_OFFSET_X:I
 
- 
ICON_BACKGROUND_OFFSET_Yprivate static final int ICON_BACKGROUND_OFFSET_Y- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - n- Leun;n:I- intermediary - field_32267- Lnet/minecraft/class_430;field_32267:I- named - ICON_BACKGROUND_OFFSET_Y- Lnet/minecraft/client/gui/screen/PresetsScreen;ICON_BACKGROUND_OFFSET_Y:I
 
- 
ICON_OFFSET_Xprivate static final int ICON_OFFSET_X- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - o- Leun;o:I- intermediary - field_32268- Lnet/minecraft/class_430;field_32268:I- named - ICON_OFFSET_X- Lnet/minecraft/client/gui/screen/PresetsScreen;ICON_OFFSET_X:I
 
- 
ICON_OFFSET_Yprivate static final int ICON_OFFSET_Y- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - p- Leun;p:I- intermediary - field_32269- Lnet/minecraft/class_430;field_32269:I- named - ICON_OFFSET_Y- Lnet/minecraft/client/gui/screen/PresetsScreen;ICON_OFFSET_Y:I
 
- 
BIOME_KEY- Mappings:
- Namespace - Name - Mixin selector - official - q- Leun;q:Lacp;- intermediary - field_27985- Lnet/minecraft/class_430;field_27985:Lnet/minecraft/class_5321;- named - BIOME_KEY- Lnet/minecraft/client/gui/screen/PresetsScreen;BIOME_KEY:Lnet/minecraft/registry/RegistryKey;
 
- 
UNKNOWN_PRESET_TEXT- Mappings:
- Namespace - Name - Mixin selector - official - a- Leun;a:Lsw;- intermediary - field_37908- Lnet/minecraft/class_430;field_37908:Lnet/minecraft/class_2561;- named - UNKNOWN_PRESET_TEXT- Lnet/minecraft/client/gui/screen/PresetsScreen;UNKNOWN_PRESET_TEXT:Lnet/minecraft/text/Text;
 
- 
parent- Mappings:
- Namespace - Name - Mixin selector - official - r- Leun;r:Letn;- intermediary - field_2519- Lnet/minecraft/class_430;field_2519:Lnet/minecraft/class_413;- named - parent- Lnet/minecraft/client/gui/screen/PresetsScreen;parent:Lnet/minecraft/client/gui/screen/CustomizeFlatLevelScreen;
 
- 
listText- Mappings:
- Namespace - Name - Mixin selector - official - t- Leun;t:Lsw;- intermediary - field_2524- Lnet/minecraft/class_430;field_2524:Lnet/minecraft/class_2561;- named - listText- Lnet/minecraft/client/gui/screen/PresetsScreen;listText:Lnet/minecraft/text/Text;
 
- 
listWidget- Mappings:
- Namespace - Name - Mixin selector - official - u- Leun;u:Leun$a;- intermediary - field_2521- Lnet/minecraft/class_430;field_2521:Lnet/minecraft/class_430$class_4196;- named - listWidget- Lnet/minecraft/client/gui/screen/PresetsScreen;listWidget:Lnet/minecraft/client/gui/screen/PresetsScreen$SuperflatPresetsListWidget;
 
- 
selectPresetButton- Mappings:
- Namespace - Name - Mixin selector - official - v- Leun;v:Lepi;- intermediary - field_2525- Lnet/minecraft/class_430;field_2525:Lnet/minecraft/class_4185;- named - selectPresetButton- Lnet/minecraft/client/gui/screen/PresetsScreen;selectPresetButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
 
- 
customPresetFieldTextFieldWidget customPresetField- Mappings:
- Namespace - Name - Mixin selector - official - w- Leun;w:Lepr;- intermediary - field_2523- Lnet/minecraft/class_430;field_2523:Lnet/minecraft/class_342;- named - customPresetField- Lnet/minecraft/client/gui/screen/PresetsScreen;customPresetField:Lnet/minecraft/client/gui/widget/TextFieldWidget;
 
- 
configFlatChunkGeneratorConfig config- Mappings:
- Namespace - Name - Mixin selector - official - x- Leun;x:Ldqd;- intermediary - field_25044- Lnet/minecraft/class_430;field_25044:Lnet/minecraft/class_3232;- named - config- Lnet/minecraft/client/gui/screen/PresetsScreen;config:Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;
 
 
- 
- 
Constructor Details- 
PresetsScreen- Mappings:
- Namespace - Name - Mixin selector - official - <init>- Leun;<init>(Letn;)V- intermediary - <init>- Lnet/minecraft/class_430;<init>(Lnet/minecraft/class_413;)V- named - <init>- Lnet/minecraft/client/gui/screen/PresetsScreen;<init>(Lnet/minecraft/client/gui/screen/CustomizeFlatLevelScreen;)V
 
 
- 
- 
Method Details- 
parseLayerString@Nullable private static @Nullable FlatChunkGeneratorLayer parseLayerString(RegistryEntryLookup<Block> blockLookup, String layer, int layerStartHeight) Parse a string like"60*minecraft:stone"to aFlatChunkGeneratorLayer.- Mappings:
- Namespace - Name - Mixin selector - official - a- Leun;a(Lhf;Ljava/lang/String;I)Ldqa;- intermediary - method_29059- Lnet/minecraft/class_430;method_29059(Lnet/minecraft/class_7871;Ljava/lang/String;I)Lnet/minecraft/class_3229;- named - parseLayerString- Lnet/minecraft/client/gui/screen/PresetsScreen;parseLayerString(Lnet/minecraft/registry/RegistryEntryLookup;Ljava/lang/String;I)Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorLayer;
 
- 
parsePresetLayersStringprivate static List<FlatChunkGeneratorLayer> parsePresetLayersString(RegistryEntryLookup<Block> blockLookup, String layers) Parse a string like"minecraft:bedrock,3*minecraft:dirt,minecraft:grass_block"to a list ofFlatChunkGeneratorLayer.- Mappings:
- Namespace - Name - Mixin selector - official - a- Leun;a(Lhf;Ljava/lang/String;)Ljava/util/List;- intermediary - method_29058- Lnet/minecraft/class_430;method_29058(Lnet/minecraft/class_7871;Ljava/lang/String;)Ljava/util/List;- named - parsePresetLayersString- Lnet/minecraft/client/gui/screen/PresetsScreen;parsePresetLayersString(Lnet/minecraft/registry/RegistryEntryLookup;Ljava/lang/String;)Ljava/util/List;
 
- 
parsePresetStringpublic static FlatChunkGeneratorConfig parsePresetString(RegistryEntryLookup<Block> blockLookup, RegistryEntryLookup<Biome> biomeLookup, RegistryEntryLookup<StructureSet> structureSetLookup, RegistryEntryLookup<PlacedFeature> placedFeatureLookup, String preset, FlatChunkGeneratorConfig config) - Mappings:
- Namespace - Name - Mixin selector - official - a- Leun;a(Lhf;Lhf;Lhf;Lhf;Ljava/lang/String;Ldqd;)Ldqd;- intermediary - method_29060- Lnet/minecraft/class_430;method_29060(Lnet/minecraft/class_7871;Lnet/minecraft/class_7871;Lnet/minecraft/class_7871;Lnet/minecraft/class_7871;Ljava/lang/String;Lnet/minecraft/class_3232;)Lnet/minecraft/class_3232;- named - parsePresetString- Lnet/minecraft/client/gui/screen/PresetsScreen;parsePresetString(Lnet/minecraft/registry/RegistryEntryLookup;Lnet/minecraft/registry/RegistryEntryLookup;Lnet/minecraft/registry/RegistryEntryLookup;Lnet/minecraft/registry/RegistryEntryLookup;Ljava/lang/String;Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;)Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;
 
- 
getGeneratorConfigString- Mappings:
- Namespace - Name - Mixin selector - official - a- Leun;a(Ldqd;)Ljava/lang/String;- intermediary - method_29062- Lnet/minecraft/class_430;method_29062(Lnet/minecraft/class_3232;)Ljava/lang/String;- named - getGeneratorConfigString- Lnet/minecraft/client/gui/screen/PresetsScreen;getGeneratorConfigString(Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;)Ljava/lang/String;
 
- 
initprotected void init()Called when a screen should be initialized.This method is called when this screen is opened or resized. This should call Screen.setInitialFocus(net.minecraft.client.gui.Element)to set the element that is initially focused.
- 
mouseScrolledpublic boolean mouseScrolled(double mouseX, double mouseY, double amount) Callback for when a mouse button scroll event has been captured.- Parameters:
- mouseX- the X coordinate of the mouse
- mouseY- the Y coordinate of the mouse
- amount- value is- < 0if scrolled down,- > 0if scrolled up
- Returns:
- trueto indicate that the event handling is successful/valid
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Leqt;a(DDD)Z- intermediary - method_25401- Lnet/minecraft/class_364;method_25401(DDD)Z- named - mouseScrolled- Lnet/minecraft/client/gui/Element;mouseScrolled(DDD)Z
 
- 
resize
- 
closepublic void close()
- 
render- Specified by:
- renderin interface- Drawable
- Overrides:
- renderin class- Screen
- Mappings:
- Namespace - Name - Mixin selector - official - a- Leqh;a(Leox;IIF)V- intermediary - method_25394- Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)V- named - render- Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)V
 
- 
tickpublic void tick()
- 
updateSelectButtonpublic void updateSelectButton(boolean hasSelected) - Mappings:
- Namespace - Name - Mixin selector - official - c- Leun;c(Z)V- intermediary - method_20102- Lnet/minecraft/class_430;method_20102(Z)V- named - updateSelectButton- Lnet/minecraft/client/gui/screen/PresetsScreen;updateSelectButton(Z)V
 
 
-