Package net.minecraft.client.gui.screen
Class GameMenuScreen
java.lang.Object
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.GameMenuScreen
- All Implemented Interfaces:
Drawable,Element,Navigable,ParentElement
- Mappings:
Namespace Name named net/minecraft/client/gui/screen/GameMenuScreenintermediary net/minecraft/class_433official geh
-
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 Textprivate static final intprivate static final Identifierprivate @Nullable ButtonWidgetprivate static final Textprivate static final Tooltipprivate static final Textprivate static final intprivate static final intprivate static final intprivate static final Textprivate static final Textprivate static final Textprivate static final Textprivate static final Textprivate static final Textprivate static final Textprivate static final Textprivate final booleanprivate static final Textprivate static final intFields inherited from class net.minecraft.client.gui.screen.Screen
client, executor, field_60460, FOOTER_SEPARATOR_TEXTURE, HEADER_SEPARATOR_TEXTURE, height, INWORLD_FOOTER_SEPARATOR_TEXTURE, INWORLD_HEADER_SEPARATOR_TEXTURE, MENU_BACKGROUND_TEXTURE, narratorToggleButton, textRenderer, title, widthFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static voidaddFeedbackAndBugsButtons(Screen parentScreen, GridWidget.Adder gridAdder) private ButtonWidgetcreateButton(Text text, Supplier<Screen> screenSupplier) private static ButtonWidgetcreateUrlButton(Screen parent, Text text, URI uri) private voidprotected voidinit()Called when a screen should be initialized.private voidprivate Optional<? extends RegistryEntry<Dialog>> private voidmethod_71841(MinecraftClient minecraftClient, RegistryEntry<Dialog> registryEntry, GridWidget.Adder adder) voidrender(DrawContext context, int mouseX, int mouseY, float deltaTicks) voidrenderBackground(DrawContext context, int mouseX, int mouseY, float deltaTicks) Renders the background of this screen.booleanbooleanvoidtick()Methods inherited from class net.minecraft.client.gui.screen.Screen
addCrashReportSection, addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyBlur, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, blur, children, clearAndInit, clearChildren, close, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getTextRenderer, getTitle, getTooltipFromItem, getUsageNarrationText, handleClickEvent, handleClickEvent, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, method_71843, method_71844, narrateScreenIfNarrationEnabled, onDisplayed, onFilesDropped, refreshNarrator, refreshWidgetPositions, remove, removed, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderPanoramaBackground, renderWithTooltip, resize, setInitialFocus, setInitialFocus, setWidgetAlpha, shouldCloseOnEsc, shouldHideStatusEffectHud, shouldPause, switchFocus, 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, mouseScrolled, setFocused
-
Field Details
-
DRAFT_REPORT_ICON_TEXTURE
- Mappings:
Namespace Name Mixin selector named DRAFT_REPORT_ICON_TEXTURELnet/minecraft/client/gui/screen/GameMenuScreen;DRAFT_REPORT_ICON_TEXTURE:Lnet/minecraft/util/Identifier;intermediary field_45416Lnet/minecraft/class_433;field_45416:Lnet/minecraft/class_2960;official aLgeh;a:Lamc;
-
GRID_COLUMNS
private static final int GRID_COLUMNS- See Also:
- Mappings:
Namespace Name Mixin selector named GRID_COLUMNSLnet/minecraft/client/gui/screen/GameMenuScreen;GRID_COLUMNS:Iintermediary field_41616Lnet/minecraft/class_433;field_41616:Iofficial bLgeh;b:I
-
BUTTONS_TOP_MARGIN
private static final int BUTTONS_TOP_MARGIN- See Also:
- Mappings:
Namespace Name Mixin selector named BUTTONS_TOP_MARGINLnet/minecraft/client/gui/screen/GameMenuScreen;BUTTONS_TOP_MARGIN:Iintermediary field_41617Lnet/minecraft/class_433;field_41617:Iofficial cLgeh;c:I
-
GRID_MARGIN
private static final int GRID_MARGIN- See Also:
- Mappings:
Namespace Name Mixin selector named GRID_MARGINLnet/minecraft/client/gui/screen/GameMenuScreen;GRID_MARGIN:Iintermediary field_41618Lnet/minecraft/class_433;field_41618:Iofficial dLgeh;d:I
-
WIDE_BUTTON_WIDTH
private static final int WIDE_BUTTON_WIDTH- See Also:
- Mappings:
Namespace Name Mixin selector named WIDE_BUTTON_WIDTHLnet/minecraft/client/gui/screen/GameMenuScreen;WIDE_BUTTON_WIDTH:Iintermediary field_41619Lnet/minecraft/class_433;field_41619:Iofficial rLgeh;r:I
-
NORMAL_BUTTON_WIDTH
private static final int NORMAL_BUTTON_WIDTH- See Also:
- Mappings:
Namespace Name Mixin selector named NORMAL_BUTTON_WIDTHLnet/minecraft/client/gui/screen/GameMenuScreen;NORMAL_BUTTON_WIDTH:Iintermediary field_41620Lnet/minecraft/class_433;field_41620:Iofficial sLgeh;s:I
-
RETURN_TO_GAME_TEXT
- Mappings:
Namespace Name Mixin selector named RETURN_TO_GAME_TEXTLnet/minecraft/client/gui/screen/GameMenuScreen;RETURN_TO_GAME_TEXT:Lnet/minecraft/text/Text;intermediary field_41621Lnet/minecraft/class_433;field_41621:Lnet/minecraft/class_2561;official uLgeh;u:Lxm;
-
ADVANCEMENTS_TEXT
- Mappings:
Namespace Name Mixin selector named ADVANCEMENTS_TEXTLnet/minecraft/client/gui/screen/GameMenuScreen;ADVANCEMENTS_TEXT:Lnet/minecraft/text/Text;intermediary field_41622Lnet/minecraft/class_433;field_41622:Lnet/minecraft/class_2561;official vLgeh;v:Lxm;
-
STATS_TEXT
- Mappings:
Namespace Name Mixin selector named STATS_TEXTLnet/minecraft/client/gui/screen/GameMenuScreen;STATS_TEXT:Lnet/minecraft/text/Text;intermediary field_41623Lnet/minecraft/class_433;field_41623:Lnet/minecraft/class_2561;official wLgeh;w:Lxm;
-
SEND_FEEDBACK_TEXT
- Mappings:
Namespace Name Mixin selector named SEND_FEEDBACK_TEXTLnet/minecraft/client/gui/screen/GameMenuScreen;SEND_FEEDBACK_TEXT:Lnet/minecraft/text/Text;intermediary field_41624Lnet/minecraft/class_433;field_41624:Lnet/minecraft/class_2561;official xLgeh;x:Lxm;
-
REPORT_BUGS_TEXT
- Mappings:
Namespace Name Mixin selector named REPORT_BUGS_TEXTLnet/minecraft/client/gui/screen/GameMenuScreen;REPORT_BUGS_TEXT:Lnet/minecraft/text/Text;intermediary field_41625Lnet/minecraft/class_433;field_41625:Lnet/minecraft/class_2561;official yLgeh;y:Lxm;
-
FEEDBACK_TEXT
- Mappings:
Namespace Name Mixin selector named FEEDBACK_TEXTLnet/minecraft/client/gui/screen/GameMenuScreen;FEEDBACK_TEXT:Lnet/minecraft/text/Text;intermediary field_52133Lnet/minecraft/class_433;field_52133:Lnet/minecraft/class_2561;official zLgeh;z:Lxm;
-
OPTIONS_TEXT
- Mappings:
Namespace Name Mixin selector named OPTIONS_TEXTLnet/minecraft/client/gui/screen/GameMenuScreen;OPTIONS_TEXT:Lnet/minecraft/text/Text;intermediary field_41626Lnet/minecraft/class_433;field_41626:Lnet/minecraft/class_2561;official ALgeh;A:Lxm;
-
SHARE_TO_LAN_TEXT
- Mappings:
Namespace Name Mixin selector named SHARE_TO_LAN_TEXTLnet/minecraft/client/gui/screen/GameMenuScreen;SHARE_TO_LAN_TEXT:Lnet/minecraft/text/Text;intermediary field_41627Lnet/minecraft/class_433;field_41627:Lnet/minecraft/class_2561;official BLgeh;B:Lxm;
-
PLAYER_REPORTING_TEXT
- Mappings:
Namespace Name Mixin selector named PLAYER_REPORTING_TEXTLnet/minecraft/client/gui/screen/GameMenuScreen;PLAYER_REPORTING_TEXT:Lnet/minecraft/text/Text;intermediary field_41628Lnet/minecraft/class_433;field_41628:Lnet/minecraft/class_2561;official CLgeh;C:Lxm;
-
SAVING_LEVEL_TEXT
- Mappings:
Namespace Name Mixin selector named SAVING_LEVEL_TEXTLnet/minecraft/client/gui/screen/GameMenuScreen;SAVING_LEVEL_TEXT:Lnet/minecraft/text/Text;intermediary field_41613Lnet/minecraft/class_433;field_41613:Lnet/minecraft/class_2561;official DLgeh;D:Lxm;
-
GAME_TEXT
- Mappings:
Namespace Name Mixin selector named GAME_TEXTLnet/minecraft/client/gui/screen/GameMenuScreen;GAME_TEXT:Lnet/minecraft/text/Text;intermediary field_41614Lnet/minecraft/class_433;field_41614:Lnet/minecraft/class_2561;official ELgeh;E:Lxm;
-
PAUSED_TEXT
- Mappings:
Namespace Name Mixin selector named PAUSED_TEXTLnet/minecraft/client/gui/screen/GameMenuScreen;PAUSED_TEXT:Lnet/minecraft/text/Text;intermediary field_41615Lnet/minecraft/class_433;field_41615:Lnet/minecraft/class_2561;official FLgeh;F:Lxm;
-
field_60753
- Mappings:
Namespace Name Mixin selector named field_60753Lnet/minecraft/client/gui/screen/GameMenuScreen;field_60753:Lnet/minecraft/client/gui/tooltip/Tooltip;intermediary field_60753Lnet/minecraft/class_433;field_60753:Lnet/minecraft/class_7919;official GLgeh;G:Lfyx;
-
showMenu
private final boolean showMenu- Mappings:
Namespace Name Mixin selector named showMenuLnet/minecraft/client/gui/screen/GameMenuScreen;showMenu:Zintermediary field_19319Lnet/minecraft/class_433;field_19319:Zofficial HLgeh;H:Z
-
exitButton
- Mappings:
Namespace Name Mixin selector named exitButtonLnet/minecraft/client/gui/screen/GameMenuScreen;exitButton:Lnet/minecraft/client/gui/widget/ButtonWidget;intermediary field_40792Lnet/minecraft/class_433;field_40792:Lnet/minecraft/class_4185;official ILgeh;I:Lfxk;
-
-
Constructor Details
-
GameMenuScreen
public GameMenuScreen(boolean showMenu) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/gui/screen/GameMenuScreen;<init>(Z)Vintermediary <init>Lnet/minecraft/class_433;<init>(Z)Vofficial <init>Lgeh;<init>(Z)V
-
-
Method Details
-
shouldShowMenu
public boolean shouldShowMenu()- Mappings:
Namespace Name Mixin selector named shouldShowMenuLnet/minecraft/client/gui/screen/GameMenuScreen;shouldShowMenu()Zintermediary method_53558Lnet/minecraft/class_433;method_53558()Zofficial lLgeh;l()Z
-
init
protected void init()Called when a screen should be initialized.This method is called when this screen is opened or resized.
-
initWidgets
private void initWidgets()- Mappings:
Namespace Name Mixin selector named initWidgetsLnet/minecraft/client/gui/screen/GameMenuScreen;initWidgets()Vintermediary method_20543Lnet/minecraft/class_433;method_20543()Vofficial nLgeh;n()V
-
method_71838
- Mappings:
Namespace Name Mixin selector named method_71838Lnet/minecraft/client/gui/screen/GameMenuScreen;method_71838()Ljava/util/Optional;intermediary method_71838Lnet/minecraft/class_433;method_71838()Ljava/util/Optional;official ELgeh;E()Ljava/util/Optional;
-
addFeedbackAndBugsButtons
- Mappings:
Namespace Name Mixin selector named addFeedbackAndBugsButtonsLnet/minecraft/client/gui/screen/GameMenuScreen;addFeedbackAndBugsButtons(Lnet/minecraft/client/gui/screen/Screen;Lnet/minecraft/client/gui/widget/GridWidget$Adder;)Vintermediary method_60873Lnet/minecraft/class_433;method_60873(Lnet/minecraft/class_437;Lnet/minecraft/class_7845$class_7939;)Vofficial aLgeh;a(Lgem;Lgbe$b;)V
-
method_71841
private void method_71841(MinecraftClient minecraftClient, RegistryEntry<Dialog> registryEntry, GridWidget.Adder adder) - Mappings:
Namespace Name Mixin selector named method_71841Lnet/minecraft/client/gui/screen/GameMenuScreen;method_71841(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/client/gui/widget/GridWidget$Adder;)Vintermediary method_71841Lnet/minecraft/class_433;method_71841(Lnet/minecraft/class_310;Lnet/minecraft/class_6880;Lnet/minecraft/class_7845$class_7939;)Vofficial aLgeh;a(Lfub;Ljj;Lgbe$b;)V
-
disconnect
private void disconnect()- Mappings:
Namespace Name Mixin selector named disconnectLnet/minecraft/client/gui/screen/GameMenuScreen;disconnect()Vintermediary method_47632Lnet/minecraft/class_433;method_47632()Vofficial FLgeh;F()V
-
tick
public void tick() -
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 aLfyo;a(Lfwx;IIF)V
-
renderBackground
Renders the background of this screen.If the client is in a world, renders the translucent background gradient. Otherwise renders the background texture.
- Overrides:
renderBackgroundin classScreen- Mappings:
Namespace Name Mixin selector named renderBackgroundLnet/minecraft/client/gui/screen/Screen;renderBackground(Lnet/minecraft/client/gui/DrawContext;IIF)Vintermediary method_25420Lnet/minecraft/class_437;method_25420(Lnet/minecraft/class_332;IIF)Vofficial bLgem;b(Lfwx;IIF)V
-
shouldShowNowPlayingToast
public boolean shouldShowNowPlayingToast()- Mappings:
Namespace Name Mixin selector named shouldShowNowPlayingToastLnet/minecraft/client/gui/screen/GameMenuScreen;shouldShowNowPlayingToast()Zintermediary method_71842Lnet/minecraft/class_433;method_71842()Zofficial mLgeh;m()Z
-
createButton
- Mappings:
Namespace Name Mixin selector named createButtonLnet/minecraft/client/gui/screen/GameMenuScreen;createButton(Lnet/minecraft/text/Text;Ljava/util/function/Supplier;)Lnet/minecraft/client/gui/widget/ButtonWidget;intermediary method_47900Lnet/minecraft/class_433;method_47900(Lnet/minecraft/class_2561;Ljava/util/function/Supplier;)Lnet/minecraft/class_4185;official aLgeh;a(Lxm;Ljava/util/function/Supplier;)Lfxk;
-
createUrlButton
- Mappings:
Namespace Name Mixin selector named createUrlButtonLnet/minecraft/client/gui/screen/GameMenuScreen;createUrlButton(Lnet/minecraft/client/gui/screen/Screen;Lnet/minecraft/text/Text;Ljava/net/URI;)Lnet/minecraft/client/gui/widget/ButtonWidget;intermediary method_47899Lnet/minecraft/class_433;method_47899(Lnet/minecraft/class_437;Lnet/minecraft/class_2561;Ljava/net/URI;)Lnet/minecraft/class_4185;official aLgeh;a(Lgem;Lxm;Ljava/net/URI;)Lfxk;
-