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 official exqintermediary net/minecraft/class_433named net/minecraft/client/gui/screen/GameMenuScreen
-
Nested Class Summary
Nested 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 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 static final Textprivate final booleanprivate static final Textprivate static final intFields inherited from class net.minecraft.client.gui.screen.Screen
client, executor, height, OPTIONS_BACKGROUND_TEXTURE, textRenderer, title, widthFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate ButtonWidgetcreateButton(Text text, Supplier<Screen> screenSupplier) private ButtonWidgetcreateUrlButton(Text text, String url) private voidprotected voidinit()Called when a screen should be initialized.private voidvoidrender(DrawContext context, int mouseX, int mouseY, float delta) voidrenderBackground(DrawContext context, int mouseX, int mouseY, float delta) Renders the background of this screen.voidtick()Methods inherited from class net.minecraft.client.gui.screen.Screen
addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, applyNarratorModeChangeDelay, children, clearAndInit, clearChildren, close, 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, renderBackgroundTexture, renderInGameBackground, renderWithTooltip, resize, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, shouldCloseOnEsc, shouldPause, switchFocus, updateNarrator, wrapScreenErrorMethods 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
mouseMovedMethods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrderMethods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, focusOn, getFocusedPath, getNavigationPath, hoveredElement, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setFocused
-
Field Details
-
DRAFT_REPORT_ICON_TEXTURE
- Mappings:
Namespace Name Mixin selector official aLexq;a:Laep;intermediary field_45416Lnet/minecraft/class_433;field_45416:Lnet/minecraft/class_2960;named DRAFT_REPORT_ICON_TEXTURELnet/minecraft/client/gui/screen/GameMenuScreen;DRAFT_REPORT_ICON_TEXTURE:Lnet/minecraft/util/Identifier;
-
GRID_COLUMNS
private static final int GRID_COLUMNS- See Also:
- Mappings:
Namespace Name Mixin selector official bLexq;b:Iintermediary field_41616Lnet/minecraft/class_433;field_41616:Inamed GRID_COLUMNSLnet/minecraft/client/gui/screen/GameMenuScreen;GRID_COLUMNS:I
-
BUTTONS_TOP_MARGIN
private static final int BUTTONS_TOP_MARGIN- See Also:
- Mappings:
Namespace Name Mixin selector official cLexq;c:Iintermediary field_41617Lnet/minecraft/class_433;field_41617:Inamed BUTTONS_TOP_MARGINLnet/minecraft/client/gui/screen/GameMenuScreen;BUTTONS_TOP_MARGIN:I
-
GRID_MARGIN
private static final int GRID_MARGIN- See Also:
- Mappings:
Namespace Name Mixin selector official kLexq;k:Iintermediary field_41618Lnet/minecraft/class_433;field_41618:Inamed GRID_MARGINLnet/minecraft/client/gui/screen/GameMenuScreen;GRID_MARGIN:I
-
WIDE_BUTTON_WIDTH
private static final int WIDE_BUTTON_WIDTH- See Also:
- Mappings:
Namespace Name Mixin selector official lLexq;l:Iintermediary field_41619Lnet/minecraft/class_433;field_41619:Inamed WIDE_BUTTON_WIDTHLnet/minecraft/client/gui/screen/GameMenuScreen;WIDE_BUTTON_WIDTH:I
-
NORMAL_BUTTON_WIDTH
private static final int NORMAL_BUTTON_WIDTH- See Also:
- Mappings:
Namespace Name Mixin selector official mLexq;m:Iintermediary field_41620Lnet/minecraft/class_433;field_41620:Inamed NORMAL_BUTTON_WIDTHLnet/minecraft/client/gui/screen/GameMenuScreen;NORMAL_BUTTON_WIDTH:I
-
RETURN_TO_GAME_TEXT
- Mappings:
Namespace Name Mixin selector official nLexq;n:Lte;intermediary field_41621Lnet/minecraft/class_433;field_41621:Lnet/minecraft/class_2561;named RETURN_TO_GAME_TEXTLnet/minecraft/client/gui/screen/GameMenuScreen;RETURN_TO_GAME_TEXT:Lnet/minecraft/text/Text;
-
ADVANCEMENTS_TEXT
- Mappings:
Namespace Name Mixin selector official oLexq;o:Lte;intermediary field_41622Lnet/minecraft/class_433;field_41622:Lnet/minecraft/class_2561;named ADVANCEMENTS_TEXTLnet/minecraft/client/gui/screen/GameMenuScreen;ADVANCEMENTS_TEXT:Lnet/minecraft/text/Text;
-
STATS_TEXT
- Mappings:
Namespace Name Mixin selector official pLexq;p:Lte;intermediary field_41623Lnet/minecraft/class_433;field_41623:Lnet/minecraft/class_2561;named STATS_TEXTLnet/minecraft/client/gui/screen/GameMenuScreen;STATS_TEXT:Lnet/minecraft/text/Text;
-
SEND_FEEDBACK_TEXT
- Mappings:
Namespace Name Mixin selector official qLexq;q:Lte;intermediary field_41624Lnet/minecraft/class_433;field_41624:Lnet/minecraft/class_2561;named SEND_FEEDBACK_TEXTLnet/minecraft/client/gui/screen/GameMenuScreen;SEND_FEEDBACK_TEXT:Lnet/minecraft/text/Text;
-
REPORT_BUGS_TEXT
- Mappings:
Namespace Name Mixin selector official sLexq;s:Lte;intermediary field_41625Lnet/minecraft/class_433;field_41625:Lnet/minecraft/class_2561;named REPORT_BUGS_TEXTLnet/minecraft/client/gui/screen/GameMenuScreen;REPORT_BUGS_TEXT:Lnet/minecraft/text/Text;
-
OPTIONS_TEXT
- Mappings:
Namespace Name Mixin selector official tLexq;t:Lte;intermediary field_41626Lnet/minecraft/class_433;field_41626:Lnet/minecraft/class_2561;named OPTIONS_TEXTLnet/minecraft/client/gui/screen/GameMenuScreen;OPTIONS_TEXT:Lnet/minecraft/text/Text;
-
SHARE_TO_LAN_TEXT
- Mappings:
Namespace Name Mixin selector official uLexq;u:Lte;intermediary field_41627Lnet/minecraft/class_433;field_41627:Lnet/minecraft/class_2561;named SHARE_TO_LAN_TEXTLnet/minecraft/client/gui/screen/GameMenuScreen;SHARE_TO_LAN_TEXT:Lnet/minecraft/text/Text;
-
PLAYER_REPORTING_TEXT
- Mappings:
Namespace Name Mixin selector official vLexq;v:Lte;intermediary field_41628Lnet/minecraft/class_433;field_41628:Lnet/minecraft/class_2561;named PLAYER_REPORTING_TEXTLnet/minecraft/client/gui/screen/GameMenuScreen;PLAYER_REPORTING_TEXT:Lnet/minecraft/text/Text;
-
RETURN_TO_MENU_TEXT
- Mappings:
Namespace Name Mixin selector official wLexq;w:Lte;intermediary field_41611Lnet/minecraft/class_433;field_41611:Lnet/minecraft/class_2561;named RETURN_TO_MENU_TEXTLnet/minecraft/client/gui/screen/GameMenuScreen;RETURN_TO_MENU_TEXT:Lnet/minecraft/text/Text;
-
SAVING_LEVEL_TEXT
- Mappings:
Namespace Name Mixin selector official xLexq;x:Lte;intermediary field_41613Lnet/minecraft/class_433;field_41613:Lnet/minecraft/class_2561;named SAVING_LEVEL_TEXTLnet/minecraft/client/gui/screen/GameMenuScreen;SAVING_LEVEL_TEXT:Lnet/minecraft/text/Text;
-
GAME_TEXT
- Mappings:
Namespace Name Mixin selector official yLexq;y:Lte;intermediary field_41614Lnet/minecraft/class_433;field_41614:Lnet/minecraft/class_2561;named GAME_TEXTLnet/minecraft/client/gui/screen/GameMenuScreen;GAME_TEXT:Lnet/minecraft/text/Text;
-
PAUSED_TEXT
- Mappings:
Namespace Name Mixin selector official zLexq;z:Lte;intermediary field_41615Lnet/minecraft/class_433;field_41615:Lnet/minecraft/class_2561;named PAUSED_TEXTLnet/minecraft/client/gui/screen/GameMenuScreen;PAUSED_TEXT:Lnet/minecraft/text/Text;
-
showMenu
private final boolean showMenu- Mappings:
Namespace Name Mixin selector official ALexq;A:Zintermediary field_19319Lnet/minecraft/class_433;field_19319:Znamed showMenuLnet/minecraft/client/gui/screen/GameMenuScreen;showMenu:Z
-
exitButton
- Mappings:
Namespace Name Mixin selector official BLexq;B:Lesi;intermediary field_40792Lnet/minecraft/class_433;field_40792:Lnet/minecraft/class_4185;named exitButtonLnet/minecraft/client/gui/screen/GameMenuScreen;exitButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
-
-
Constructor Details
-
GameMenuScreen
public GameMenuScreen(boolean showMenu) - Mappings:
Namespace Name Mixin selector official <init>Lexq;<init>(Z)Vintermediary <init>Lnet/minecraft/class_433;<init>(Z)Vnamed <init>Lnet/minecraft/client/gui/screen/GameMenuScreen;<init>(Z)V
-
-
Method Details
-
init
protected 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. -
initWidgets
private void initWidgets()- Mappings:
Namespace Name Mixin selector official lLexq;l()Vintermediary method_20543Lnet/minecraft/class_433;method_20543()Vnamed initWidgetsLnet/minecraft/client/gui/screen/GameMenuScreen;initWidgets()V
-
disconnect
private void disconnect()- Mappings:
Namespace Name Mixin selector official BLexq;B()Vintermediary method_47632Lnet/minecraft/class_433;method_47632()Vnamed disconnectLnet/minecraft/client/gui/screen/GameMenuScreen;disconnect()V
-
tick
public void tick() -
render
- Specified by:
renderin interfaceDrawable- Overrides:
renderin classScreen- Mappings:
Namespace Name Mixin selector official aLetj;a(Lerx;IIF)Vintermediary method_25394Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)Vnamed renderLnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)V
-
renderBackground
Renders the background of this screen.If the client is in a world,
. Otherwise renders the background texture.invalid @linkplain
renders the translucent background gradient
- Overrides:
renderBackgroundin classScreen- Mappings:
Namespace Name Mixin selector official bLexv;b(Lerx;IIF)Vintermediary method_25420Lnet/minecraft/class_437;method_25420(Lnet/minecraft/class_332;IIF)Vnamed renderBackgroundLnet/minecraft/client/gui/screen/Screen;renderBackground(Lnet/minecraft/client/gui/DrawContext;IIF)V
-
createButton
- Mappings:
Namespace Name Mixin selector official aLexq;a(Lte;Ljava/util/function/Supplier;)Lesi;intermediary method_47900Lnet/minecraft/class_433;method_47900(Lnet/minecraft/class_2561;Ljava/util/function/Supplier;)Lnet/minecraft/class_4185;named createButtonLnet/minecraft/client/gui/screen/GameMenuScreen;createButton(Lnet/minecraft/text/Text;Ljava/util/function/Supplier;)Lnet/minecraft/client/gui/widget/ButtonWidget;
-
createUrlButton
- Mappings:
Namespace Name Mixin selector official aLexq;a(Lte;Ljava/lang/String;)Lesi;intermediary method_47899Lnet/minecraft/class_433;method_47899(Lnet/minecraft/class_2561;Ljava/lang/String;)Lnet/minecraft/class_4185;named createUrlButtonLnet/minecraft/client/gui/screen/GameMenuScreen;createUrlButton(Lnet/minecraft/text/Text;Ljava/lang/String;)Lnet/minecraft/client/gui/widget/ButtonWidget;
-