Package net.minecraft.client.gui.screen
Class PresetsScreen
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.PresetsScreen
- All Implemented Interfaces:
Drawable,Element,ParentElement
- Mappings:
Namespace Name official eoointermediary net/minecraft/class_430named net/minecraft/client/gui/screen/PresetsScreen
-
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 static final intprivate Text(package private) static final Loggerprivate final CustomizeFlatLevelScreenprivate ButtonWidgetprivate Textstatic final TextFields inherited from class net.minecraft.client.gui.screen.Screen
client, height, itemRenderer, passEvents, textRenderer, title, widthFields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTUREFields 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 amount) Callback for when a mouse button scroll event has been captured.private static @Nullable FlatChunkGeneratorLayerparseLayerString(RegistryEntryLookup<Block> registryEntryLookup, String string, int int2) Parse a string like"60*minecraft:stone"to aFlatChunkGeneratorLayer.private static List<FlatChunkGeneratorLayer>parsePresetLayersString(RegistryEntryLookup<Block> registryEntryLookup, String string) Parse a string like"minecraft:bedrock,3*minecraft:dirt,minecraft:grass_block"to a list ofFlatChunkGeneratorLayer.static FlatChunkGeneratorConfigparsePresetString(RegistryEntryLookup<Block> registryEntryLookup, RegistryEntryLookup<Biome> registryEntryLookup2, RegistryEntryLookup<StructureSet> registryEntryLookup3, RegistryEntryLookup<PlacedFeature> registryEntryLookup4, String string, FlatChunkGeneratorConfig flatChunkGeneratorConfig) voidremoved()voidrender(MatrixStack matrices, 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.Screen
addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, applyNarratorModeChangeDelay, children, clearAndInit, clearChildren, filesDragged, findSelectedElementData, getNarratedTitle, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hide, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, method_47412, method_47413, method_47414, method_47415, narrateScreenIfNarrationEnabled, remove, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, renderTooltip, shouldCloseOnEsc, shouldPause, updateNarrator, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.DrawableHelper
disableScissor, drawCenteredText, drawCenteredText, drawCenteredTextWithShadow, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, drawWithOutline, drawWithShadow, enableScissor, fill, fillGradient, fillGradient, fillGradient, getZOffset, setZOffsetMethods 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
mouseMovedMethods inherited from interface net.minecraft.client.gui.ParentElement
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseClicked, mouseDragged, mouseReleased, setInitialFocus
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official bLeoo;b:Lorg/slf4j/Logger;intermediary field_25043Lnet/minecraft/class_430;field_25043:Lorg/slf4j/Logger;named LOGGERLnet/minecraft/client/gui/screen/PresetsScreen;LOGGER:Lorg/slf4j/Logger;
-
ICON_TEXTURE_SIZE
private static final int ICON_TEXTURE_SIZE- See Also:
- Mappings:
Namespace Name Mixin selector official cLeoo;c:Iintermediary field_32263Lnet/minecraft/class_430;field_32263:Inamed ICON_TEXTURE_SIZELnet/minecraft/client/gui/screen/PresetsScreen;ICON_TEXTURE_SIZE:I
-
ICON_SIZE
private static final int ICON_SIZE- See Also:
- Mappings:
Namespace Name Mixin selector official nLeoo;n:Iintermediary field_32264Lnet/minecraft/class_430;field_32264:Inamed ICON_SIZELnet/minecraft/client/gui/screen/PresetsScreen;ICON_SIZE:I
-
BUTTON_HEIGHT
private static final int BUTTON_HEIGHT- See Also:
- Mappings:
Namespace Name Mixin selector official oLeoo;o:Iintermediary field_32265Lnet/minecraft/class_430;field_32265:Inamed BUTTON_HEIGHTLnet/minecraft/client/gui/screen/PresetsScreen;BUTTON_HEIGHT:I
-
ICON_BACKGROUND_OFFSET_X
private static final int ICON_BACKGROUND_OFFSET_X- See Also:
- Mappings:
Namespace Name Mixin selector official pLeoo;p:Iintermediary field_32266Lnet/minecraft/class_430;field_32266:Inamed ICON_BACKGROUND_OFFSET_XLnet/minecraft/client/gui/screen/PresetsScreen;ICON_BACKGROUND_OFFSET_X:I
-
ICON_BACKGROUND_OFFSET_Y
private static final int ICON_BACKGROUND_OFFSET_Y- See Also:
- Mappings:
Namespace Name Mixin selector official qLeoo;q:Iintermediary field_32267Lnet/minecraft/class_430;field_32267:Inamed ICON_BACKGROUND_OFFSET_YLnet/minecraft/client/gui/screen/PresetsScreen;ICON_BACKGROUND_OFFSET_Y:I
-
ICON_OFFSET_X
private static final int ICON_OFFSET_X- See Also:
- Mappings:
Namespace Name Mixin selector official rLeoo;r:Iintermediary field_32268Lnet/minecraft/class_430;field_32268:Inamed ICON_OFFSET_XLnet/minecraft/client/gui/screen/PresetsScreen;ICON_OFFSET_X:I
-
ICON_OFFSET_Y
private static final int ICON_OFFSET_Y- See Also:
- Mappings:
Namespace Name Mixin selector official sLeoo;s:Iintermediary field_32269Lnet/minecraft/class_430;field_32269:Inamed ICON_OFFSET_YLnet/minecraft/client/gui/screen/PresetsScreen;ICON_OFFSET_Y:I
-
BIOME_KEY
- Mappings:
Namespace Name Mixin selector official tLeoo;t:Lacd;intermediary field_27985Lnet/minecraft/class_430;field_27985:Lnet/minecraft/class_5321;named BIOME_KEYLnet/minecraft/client/gui/screen/PresetsScreen;BIOME_KEY:Lnet/minecraft/util/registry/RegistryKey;
-
UNKNOWN_PRESET_TEXT
- Mappings:
Namespace Name Mixin selector official aLeoo;a:Lsq;intermediary field_37908Lnet/minecraft/class_430;field_37908:Lnet/minecraft/class_2561;named UNKNOWN_PRESET_TEXTLnet/minecraft/client/gui/screen/PresetsScreen;UNKNOWN_PRESET_TEXT:Lnet/minecraft/text/Text;
-
parent
- Mappings:
Namespace Name Mixin selector official uLeoo;u:Lenq;intermediary field_2519Lnet/minecraft/class_430;field_2519:Lnet/minecraft/class_413;named parentLnet/minecraft/client/gui/screen/PresetsScreen;parent:Lnet/minecraft/client/gui/screen/CustomizeFlatLevelScreen;
-
listText
- Mappings:
Namespace Name Mixin selector official wLeoo;w:Lsq;intermediary field_2524Lnet/minecraft/class_430;field_2524:Lnet/minecraft/class_2561;named listTextLnet/minecraft/client/gui/screen/PresetsScreen;listText:Lnet/minecraft/text/Text;
-
listWidget
- Mappings:
Namespace Name Mixin selector official xLeoo;x:Leoo$a;intermediary field_2521Lnet/minecraft/class_430;field_2521:Lnet/minecraft/class_430$class_4196;named listWidgetLnet/minecraft/client/gui/screen/PresetsScreen;listWidget:Lnet/minecraft/client/gui/screen/PresetsScreen$SuperflatPresetsListWidget;
-
selectPresetButton
- Mappings:
Namespace Name Mixin selector official yLeoo;y:Lekp;intermediary field_2525Lnet/minecraft/class_430;field_2525:Lnet/minecraft/class_4185;named selectPresetButtonLnet/minecraft/client/gui/screen/PresetsScreen;selectPresetButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
-
customPresetField
TextFieldWidget customPresetField- Mappings:
Namespace Name Mixin selector official zLeoo;z:Leky;intermediary field_2523Lnet/minecraft/class_430;field_2523:Lnet/minecraft/class_342;named customPresetFieldLnet/minecraft/client/gui/screen/PresetsScreen;customPresetField:Lnet/minecraft/client/gui/widget/TextFieldWidget;
-
config
FlatChunkGeneratorConfig config- Mappings:
Namespace Name Mixin selector official ALeoo;A:Ldmh;intermediary field_25044Lnet/minecraft/class_430;field_25044:Lnet/minecraft/class_3232;named configLnet/minecraft/client/gui/screen/PresetsScreen;config:Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;
-
-
Constructor Details
-
PresetsScreen
- Mappings:
Namespace Name Mixin selector official <init>Leoo;<init>(Lenq;)Vintermediary <init>Lnet/minecraft/class_430;<init>(Lnet/minecraft/class_413;)Vnamed <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> registryEntryLookup, String string, int int2) Parse a string like"60*minecraft:stone"to aFlatChunkGeneratorLayer.- Mappings:
Namespace Name Mixin selector official aLeoo;a(Lha;Ljava/lang/String;I)Ldme;intermediary method_29059Lnet/minecraft/class_430;method_29059(Lnet/minecraft/class_7871;Ljava/lang/String;I)Lnet/minecraft/class_3229;named parseLayerStringLnet/minecraft/client/gui/screen/PresetsScreen;parseLayerString(Lnet/minecraft/util/registry/RegistryEntryLookup;Ljava/lang/String;I)Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorLayer;
-
parsePresetLayersString
private static List<FlatChunkGeneratorLayer> parsePresetLayersString(RegistryEntryLookup<Block> registryEntryLookup, String string) Parse a string like"minecraft:bedrock,3*minecraft:dirt,minecraft:grass_block"to a list ofFlatChunkGeneratorLayer.- Mappings:
Namespace Name Mixin selector official aLeoo;a(Lha;Ljava/lang/String;)Ljava/util/List;intermediary method_29058Lnet/minecraft/class_430;method_29058(Lnet/minecraft/class_7871;Ljava/lang/String;)Ljava/util/List;named parsePresetLayersStringLnet/minecraft/client/gui/screen/PresetsScreen;parsePresetLayersString(Lnet/minecraft/util/registry/RegistryEntryLookup;Ljava/lang/String;)Ljava/util/List;
-
parsePresetString
public static FlatChunkGeneratorConfig parsePresetString(RegistryEntryLookup<Block> registryEntryLookup, RegistryEntryLookup<Biome> registryEntryLookup2, RegistryEntryLookup<StructureSet> registryEntryLookup3, RegistryEntryLookup<PlacedFeature> registryEntryLookup4, String string, FlatChunkGeneratorConfig flatChunkGeneratorConfig) - Mappings:
Namespace Name Mixin selector official aLeoo;a(Lha;Lha;Lha;Lha;Ljava/lang/String;Ldmh;)Ldmh;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;named parsePresetStringLnet/minecraft/client/gui/screen/PresetsScreen;parsePresetString(Lnet/minecraft/util/registry/RegistryEntryLookup;Lnet/minecraft/util/registry/RegistryEntryLookup;Lnet/minecraft/util/registry/RegistryEntryLookup;Lnet/minecraft/util/registry/RegistryEntryLookup;Ljava/lang/String;Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;)Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;
-
getGeneratorConfigString
- Mappings:
Namespace Name Mixin selector official aLeoo;a(Ldmh;)Ljava/lang/String;intermediary method_29062Lnet/minecraft/class_430;method_29062(Lnet/minecraft/class_3232;)Ljava/lang/String;named getGeneratorConfigStringLnet/minecraft/client/gui/screen/PresetsScreen;getGeneratorConfigString(Lnet/minecraft/world/gen/chunk/FlatChunkGeneratorConfig;)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 amount) Callback for when a mouse button scroll event has been captured.- Parameters:
mouseX- the X coordinate of the mousemouseY- the Y coordinate of the mouseamount- 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 aLelw;a(DDD)Zintermediary method_25401Lnet/minecraft/class_364;method_25401(DDD)Znamed mouseScrolledLnet/minecraft/client/gui/Element;mouseScrolled(DDD)Z
-
resize
-
close
public void close() -
removed
public void removed() -
render
- Specified by:
renderin interfaceDrawable- Overrides:
renderin classScreen- Mappings:
Namespace Name Mixin selector official aLelo;a(Leds;IIF)Vintermediary method_25394Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_4587;IIF)Vnamed renderLnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-
tick
public void tick() -
updateSelectButton
public void updateSelectButton(boolean hasSelected) - Mappings:
Namespace Name Mixin selector official cLeoo;c(Z)Vintermediary method_20102Lnet/minecraft/class_430;method_20102(Z)Vnamed updateSelectButtonLnet/minecraft/client/gui/screen/PresetsScreen;updateSelectButton(Z)V
-