Class PresetsScreen
java.lang.Object
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.world.PresetsScreen
- All Implemented Interfaces:
Drawable,Element,Navigable,ParentElement
- Mappings:
Namespace Name named net/minecraft/client/gui/screen/world/PresetsScreenintermediary net/minecraft/class_430official fzm
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData -
Field Summary
FieldsModifier 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 Text(package private) static final Loggerprivate final CustomizeFlatLevelScreenprivate ButtonWidgetprivate Text(package private) static final Identifierstatic final TextFields inherited from class net.minecraft.client.gui.screen.Screen
client, executor, FOOTER_SEPARATOR_TEXTURE, HEADER_SEPARATOR_TEXTURE, height, INWORLD_FOOTER_SEPARATOR_TEXTURE, INWORLD_HEADER_SEPARATOR_TEXTURE, MENU_BACKGROUND_TEXTURE, narratorToggleButton, PANORAMA_RENDERER, ROTATING_PANORAMA_RENDERER, textRenderer, title, widthFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()(package private) static Stringprotected voidinit()Called when a screen should be initialized.booleanmouseScrolled(double mouseX, double mouseY, double horizontalAmount, double verticalAmount) 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 deltaTicks) voidresize(MinecraftClient client, int width, int height) voidupdateSelectButton(boolean hasSelected) Methods inherited from class net.minecraft.client.gui.screen.Screen
addCrashReportSection, addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyBlur, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, blur, children, clearAndInit, clearChildren, clearTooltip, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getTextRenderer, getTitle, getTooltipFromItem, getUsageNarrationText, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, narrateScreenIfNarrationEnabled, onDisplayed, onFilesDropped, refreshNarrator, refreshWidgetPositions, remove, removed, renderBackground, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderPanoramaBackground, renderWithTooltip, setInitialFocus, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, shouldCloseOnEsc, shouldHideStatusEffectHud, shouldPause, switchFocus, tick, updateNarratorMethods inherited from class net.minecraft.client.gui.AbstractParentElement
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.Element
getBorder, mouseMovedMethods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrderMethods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, getFocusedPath, getNavigationPath, hoveredElement, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, setFocused
-
Field Details
-
SLOT_TEXTURE
- Mappings:
Namespace Name Mixin selector named SLOT_TEXTURELnet/minecraft/client/gui/screen/world/PresetsScreen;SLOT_TEXTURE:Lnet/minecraft/util/Identifier;intermediary field_45417Lnet/minecraft/class_430;field_45417:Lnet/minecraft/class_2960;official bLfzm;b:Lalr;
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/client/gui/screen/world/PresetsScreen;LOGGER:Lorg/slf4j/Logger;intermediary field_25043Lnet/minecraft/class_430;field_25043:Lorg/slf4j/Logger;official cLfzm;c:Lorg/slf4j/Logger;
-
ICON_SIZE
private static final int ICON_SIZE- See Also:
- Mappings:
Namespace Name Mixin selector named ICON_SIZELnet/minecraft/client/gui/screen/world/PresetsScreen;ICON_SIZE:Iintermediary field_32264Lnet/minecraft/class_430;field_32264:Iofficial dLfzm;d:I
-
BUTTON_HEIGHT
private static final int BUTTON_HEIGHT- See Also:
- Mappings:
Namespace Name Mixin selector named BUTTON_HEIGHTLnet/minecraft/client/gui/screen/world/PresetsScreen;BUTTON_HEIGHT:Iintermediary field_32265Lnet/minecraft/class_430;field_32265:Iofficial sLfzm;s:I
-
ICON_BACKGROUND_OFFSET_X
private static final int ICON_BACKGROUND_OFFSET_X- See Also:
- Mappings:
Namespace Name Mixin selector named ICON_BACKGROUND_OFFSET_XLnet/minecraft/client/gui/screen/world/PresetsScreen;ICON_BACKGROUND_OFFSET_X:Iintermediary field_32266Lnet/minecraft/class_430;field_32266:Iofficial uLfzm;u:I
-
ICON_BACKGROUND_OFFSET_Y
private static final int ICON_BACKGROUND_OFFSET_Y- See Also:
- Mappings:
Namespace Name Mixin selector named ICON_BACKGROUND_OFFSET_YLnet/minecraft/client/gui/screen/world/PresetsScreen;ICON_BACKGROUND_OFFSET_Y:Iintermediary field_32267Lnet/minecraft/class_430;field_32267:Iofficial vLfzm;v:I
-
ICON_OFFSET_X
private static final int ICON_OFFSET_X- See Also:
- Mappings:
Namespace Name Mixin selector named ICON_OFFSET_XLnet/minecraft/client/gui/screen/world/PresetsScreen;ICON_OFFSET_X:Iintermediary field_32268Lnet/minecraft/class_430;field_32268:Iofficial wLfzm;w:I
-
ICON_OFFSET_Y
private static final int ICON_OFFSET_Y- See Also:
- Mappings:
Namespace Name Mixin selector named ICON_OFFSET_YLnet/minecraft/client/gui/screen/world/PresetsScreen;ICON_OFFSET_Y:Iintermediary field_32269Lnet/minecraft/class_430;field_32269:Iofficial xLfzm;x:I
-
BIOME_KEY
- Mappings:
Namespace Name Mixin selector named BIOME_KEYLnet/minecraft/client/gui/screen/world/PresetsScreen;BIOME_KEY:Lnet/minecraft/registry/RegistryKey;intermediary field_27985Lnet/minecraft/class_430;field_27985:Lnet/minecraft/class_5321;official yLfzm;y:Lalq;
-
UNKNOWN_PRESET_TEXT
- Mappings:
Namespace Name Mixin selector named UNKNOWN_PRESET_TEXTLnet/minecraft/client/gui/screen/world/PresetsScreen;UNKNOWN_PRESET_TEXT:Lnet/minecraft/text/Text;intermediary field_37908Lnet/minecraft/class_430;field_37908:Lnet/minecraft/class_2561;official aLfzm;a:Lxg;
-
parent
- Mappings:
Namespace Name Mixin selector named parentLnet/minecraft/client/gui/screen/world/PresetsScreen;parent:Lnet/minecraft/client/gui/screen/world/CustomizeFlatLevelScreen;intermediary field_2519Lnet/minecraft/class_430;field_2519:Lnet/minecraft/class_413;official zLfzm;z:Lfyr;
-
listText
- Mappings:
Namespace Name Mixin selector named listTextLnet/minecraft/client/gui/screen/world/PresetsScreen;listText:Lnet/minecraft/text/Text;intermediary field_2524Lnet/minecraft/class_430;field_2524:Lnet/minecraft/class_2561;official BLfzm;B:Lxg;
-
listWidget
- Mappings:
Namespace Name Mixin selector named listWidgetLnet/minecraft/client/gui/screen/world/PresetsScreen;listWidget:Lnet/minecraft/client/gui/screen/world/PresetsScreen$SuperflatPresetsListWidget;intermediary field_2521Lnet/minecraft/class_430;field_2521:Lnet/minecraft/class_430$class_4196;official CLfzm;C:Lfzm$a;
-
selectPresetButton
- Mappings:
Namespace Name Mixin selector named selectPresetButtonLnet/minecraft/client/gui/screen/world/PresetsScreen;selectPresetButton:Lnet/minecraft/client/gui/widget/ButtonWidget;intermediary field_2525Lnet/minecraft/class_430;field_2525:Lnet/minecraft/class_4185;official DLfzm;D:Lfty;
-
customPresetField
TextFieldWidget customPresetField- Mappings:
Namespace Name Mixin selector named customPresetFieldLnet/minecraft/client/gui/screen/world/PresetsScreen;customPresetField:Lnet/minecraft/client/gui/widget/TextFieldWidget;intermediary field_2523Lnet/minecraft/class_430;field_2523:Lnet/minecraft/class_342;official ELfzm;E:Lfuh;
-
config
FlatChunkGeneratorConfig config- Mappings:
Namespace Name Mixin selector named configLnet/minecraft/client/gui/screen/world/PresetsScreen;config:Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;intermediary field_25044Lnet/minecraft/class_430;field_25044:Lnet/minecraft/class_3232;official FLfzm;F:Leqq;
-
-
Constructor Details
-
PresetsScreen
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/gui/screen/world/PresetsScreen;<init>(Lnet/minecraft/client/gui/screen/world/CustomizeFlatLevelScreen;)Vintermediary <init>Lnet/minecraft/class_430;<init>(Lnet/minecraft/class_413;)Vofficial <init>Lfzm;<init>(Lfyr;)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 named parseLayerStringLnet/minecraft/client/gui/screen/world/PresetsScreen;parseLayerString(Lnet/minecraft/registry/RegistryEntryLookup;Ljava/lang/String;I)Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorLayer;intermediary method_29059Lnet/minecraft/class_430;method_29059(Lnet/minecraft/class_7871;Ljava/lang/String;I)Lnet/minecraft/class_3229;official aLfzm;a(Ljh;Ljava/lang/String;I)Leqn;
-
parsePresetLayersString
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.- Mappings:
Namespace Name Mixin selector named parsePresetLayersStringLnet/minecraft/client/gui/screen/world/PresetsScreen;parsePresetLayersString(Lnet/minecraft/registry/RegistryEntryLookup;Ljava/lang/String;)Ljava/util/List;intermediary method_29058Lnet/minecraft/class_430;method_29058(Lnet/minecraft/class_7871;Ljava/lang/String;)Ljava/util/List;official aLfzm;a(Ljh;Ljava/lang/String;)Ljava/util/List;
-
parsePresetString
public static FlatChunkGeneratorConfig parsePresetString(RegistryEntryLookup<Block> blockLookup, RegistryEntryLookup<Biome> biomeLookup, RegistryEntryLookup<StructureSet> structureSetLookup, RegistryEntryLookup<PlacedFeature> placedFeatureLookup, String preset, FlatChunkGeneratorConfig config) - Mappings:
Namespace Name Mixin selector named parsePresetStringLnet/minecraft/client/gui/screen/world/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;intermediary method_29060Lnet/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;official aLfzm;a(Ljh;Ljh;Ljh;Ljh;Ljava/lang/String;Leqq;)Leqq;
-
getGeneratorConfigString
- Mappings:
Namespace Name Mixin selector named getGeneratorConfigStringLnet/minecraft/client/gui/screen/world/PresetsScreen;getGeneratorConfigString(Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;)Ljava/lang/String;intermediary method_29062Lnet/minecraft/class_430;method_29062(Lnet/minecraft/class_3232;)Ljava/lang/String;official aLfzm;a(Leqq;)Ljava/lang/String;
-
init
protected void init()Called when a screen should be initialized.This method is called when this screen is opened or resized.
-
mouseScrolled
public boolean mouseScrolled(double mouseX, double mouseY, double horizontalAmount, double verticalAmount) Callback for when a mouse button scroll event has been captured.- Parameters:
mouseX- the X coordinate of the mousemouseY- the Y coordinate of the mousehorizontalAmount- the horizontal scroll amountverticalAmount- the vertical scroll amount- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector named mouseScrolledLnet/minecraft/client/gui/Element;mouseScrolled(DDDD)Zintermediary method_25401Lnet/minecraft/class_364;method_25401(DDDD)Zofficial aLfvv;a(DDDD)Z
-
resize
-
close
public void close() -
render
- Specified by:
renderin interfaceDrawable- Overrides:
renderin classScreen- Mappings:
Namespace Name Mixin selector named renderLnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)Vintermediary method_25394Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)Vofficial aLfvb;a(Lftk;IIF)V
-
updateSelectButton
public void updateSelectButton(boolean hasSelected) - Mappings:
Namespace Name Mixin selector named updateSelectButtonLnet/minecraft/client/gui/screen/world/PresetsScreen;updateSelectButton(Z)Vintermediary method_20102Lnet/minecraft/class_430;method_20102(Z)Vofficial cLfzm;c(Z)V
-