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/GameMenuScreen
intermediary net/minecraft/class_433
official fmz
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Text
private static final int
private static final Identifier
private @Nullable ButtonWidget
private static final Text
private static final int
private static final int
private static final int
private static final Text
private static final Text
private static final Text
private static final Text
private static final Text
private static final Text
private static final Text
private static final Text
private static final Text
private final boolean
private static final Text
private static final int
Fields 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, PANORAMA_RENDERER, ROTATING_PANORAMA_RENDERER, textRenderer, title, width
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate ButtonWidget
createButton
(Text text, Supplier<Screen> screenSupplier) private ButtonWidget
createUrlButton
(Text text, String url) private void
protected void
init()
Called when a screen should be initialized.private void
void
render
(DrawContext context, int mouseX, int mouseY, float delta) void
renderBackground
(DrawContext context, int mouseX, int mouseY, float delta) Renders the background of this screen.boolean
void
tick()
Methods inherited from class net.minecraft.client.gui.screen.Screen
addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyBlur, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, applyNarratorModeChangeDelay, blur, children, clearAndInit, clearChildren, clearTooltip, close, filesDragged, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getPanoramaTickDelta, getTitle, getTooltipFromItem, getUsageNarrationText, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, init, initTabNavigation, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, narrateScreenIfNarrationEnabled, onDisplayed, remove, removed, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderPanoramaBackground, renderWithTooltip, resize, setInitialFocus, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, shouldCloseOnEsc, shouldPause, switchFocus, updateNarrator, wrapScreenError
Methods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocused
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.Element
mouseMoved
Methods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrder
Methods 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_TEXTURE
Lnet/minecraft/client/gui/screen/GameMenuScreen;DRAFT_REPORT_ICON_TEXTURE:Lnet/minecraft/util/Identifier;
intermediary field_45416
Lnet/minecraft/class_433;field_45416:Lnet/minecraft/class_2960;
official a
Lfmz;a:Lalf;
-
GRID_COLUMNS
private static final int GRID_COLUMNS- See Also:
- Mappings:
Namespace Name Mixin selector named GRID_COLUMNS
Lnet/minecraft/client/gui/screen/GameMenuScreen;GRID_COLUMNS:I
intermediary field_41616
Lnet/minecraft/class_433;field_41616:I
official b
Lfmz;b:I
-
BUTTONS_TOP_MARGIN
private static final int BUTTONS_TOP_MARGIN- See Also:
- Mappings:
Namespace Name Mixin selector named BUTTONS_TOP_MARGIN
Lnet/minecraft/client/gui/screen/GameMenuScreen;BUTTONS_TOP_MARGIN:I
intermediary field_41617
Lnet/minecraft/class_433;field_41617:I
official c
Lfmz;c:I
-
GRID_MARGIN
private static final int GRID_MARGIN- See Also:
- Mappings:
Namespace Name Mixin selector named GRID_MARGIN
Lnet/minecraft/client/gui/screen/GameMenuScreen;GRID_MARGIN:I
intermediary field_41618
Lnet/minecraft/class_433;field_41618:I
official d
Lfmz;d:I
-
WIDE_BUTTON_WIDTH
private static final int WIDE_BUTTON_WIDTH- See Also:
- Mappings:
Namespace Name Mixin selector named WIDE_BUTTON_WIDTH
Lnet/minecraft/client/gui/screen/GameMenuScreen;WIDE_BUTTON_WIDTH:I
intermediary field_41619
Lnet/minecraft/class_433;field_41619:I
official r
Lfmz;r:I
-
NORMAL_BUTTON_WIDTH
private static final int NORMAL_BUTTON_WIDTH- See Also:
- Mappings:
Namespace Name Mixin selector named NORMAL_BUTTON_WIDTH
Lnet/minecraft/client/gui/screen/GameMenuScreen;NORMAL_BUTTON_WIDTH:I
intermediary field_41620
Lnet/minecraft/class_433;field_41620:I
official s
Lfmz;s:I
-
RETURN_TO_GAME_TEXT
- Mappings:
Namespace Name Mixin selector named RETURN_TO_GAME_TEXT
Lnet/minecraft/client/gui/screen/GameMenuScreen;RETURN_TO_GAME_TEXT:Lnet/minecraft/text/Text;
intermediary field_41621
Lnet/minecraft/class_433;field_41621:Lnet/minecraft/class_2561;
official u
Lfmz;u:Lxp;
-
ADVANCEMENTS_TEXT
- Mappings:
Namespace Name Mixin selector named ADVANCEMENTS_TEXT
Lnet/minecraft/client/gui/screen/GameMenuScreen;ADVANCEMENTS_TEXT:Lnet/minecraft/text/Text;
intermediary field_41622
Lnet/minecraft/class_433;field_41622:Lnet/minecraft/class_2561;
official v
Lfmz;v:Lxp;
-
STATS_TEXT
- Mappings:
Namespace Name Mixin selector named STATS_TEXT
Lnet/minecraft/client/gui/screen/GameMenuScreen;STATS_TEXT:Lnet/minecraft/text/Text;
intermediary field_41623
Lnet/minecraft/class_433;field_41623:Lnet/minecraft/class_2561;
official w
Lfmz;w:Lxp;
-
SEND_FEEDBACK_TEXT
- Mappings:
Namespace Name Mixin selector named SEND_FEEDBACK_TEXT
Lnet/minecraft/client/gui/screen/GameMenuScreen;SEND_FEEDBACK_TEXT:Lnet/minecraft/text/Text;
intermediary field_41624
Lnet/minecraft/class_433;field_41624:Lnet/minecraft/class_2561;
official x
Lfmz;x:Lxp;
-
REPORT_BUGS_TEXT
- Mappings:
Namespace Name Mixin selector named REPORT_BUGS_TEXT
Lnet/minecraft/client/gui/screen/GameMenuScreen;REPORT_BUGS_TEXT:Lnet/minecraft/text/Text;
intermediary field_41625
Lnet/minecraft/class_433;field_41625:Lnet/minecraft/class_2561;
official y
Lfmz;y:Lxp;
-
OPTIONS_TEXT
- Mappings:
Namespace Name Mixin selector named OPTIONS_TEXT
Lnet/minecraft/client/gui/screen/GameMenuScreen;OPTIONS_TEXT:Lnet/minecraft/text/Text;
intermediary field_41626
Lnet/minecraft/class_433;field_41626:Lnet/minecraft/class_2561;
official z
Lfmz;z:Lxp;
-
SHARE_TO_LAN_TEXT
- Mappings:
Namespace Name Mixin selector named SHARE_TO_LAN_TEXT
Lnet/minecraft/client/gui/screen/GameMenuScreen;SHARE_TO_LAN_TEXT:Lnet/minecraft/text/Text;
intermediary field_41627
Lnet/minecraft/class_433;field_41627:Lnet/minecraft/class_2561;
official A
Lfmz;A:Lxp;
-
PLAYER_REPORTING_TEXT
- Mappings:
Namespace Name Mixin selector named PLAYER_REPORTING_TEXT
Lnet/minecraft/client/gui/screen/GameMenuScreen;PLAYER_REPORTING_TEXT:Lnet/minecraft/text/Text;
intermediary field_41628
Lnet/minecraft/class_433;field_41628:Lnet/minecraft/class_2561;
official B
Lfmz;B:Lxp;
-
RETURN_TO_MENU_TEXT
- Mappings:
Namespace Name Mixin selector named RETURN_TO_MENU_TEXT
Lnet/minecraft/client/gui/screen/GameMenuScreen;RETURN_TO_MENU_TEXT:Lnet/minecraft/text/Text;
intermediary field_41611
Lnet/minecraft/class_433;field_41611:Lnet/minecraft/class_2561;
official C
Lfmz;C:Lxp;
-
SAVING_LEVEL_TEXT
- Mappings:
Namespace Name Mixin selector named SAVING_LEVEL_TEXT
Lnet/minecraft/client/gui/screen/GameMenuScreen;SAVING_LEVEL_TEXT:Lnet/minecraft/text/Text;
intermediary field_41613
Lnet/minecraft/class_433;field_41613:Lnet/minecraft/class_2561;
official D
Lfmz;D:Lxp;
-
GAME_TEXT
- Mappings:
Namespace Name Mixin selector named GAME_TEXT
Lnet/minecraft/client/gui/screen/GameMenuScreen;GAME_TEXT:Lnet/minecraft/text/Text;
intermediary field_41614
Lnet/minecraft/class_433;field_41614:Lnet/minecraft/class_2561;
official E
Lfmz;E:Lxp;
-
PAUSED_TEXT
- Mappings:
Namespace Name Mixin selector named PAUSED_TEXT
Lnet/minecraft/client/gui/screen/GameMenuScreen;PAUSED_TEXT:Lnet/minecraft/text/Text;
intermediary field_41615
Lnet/minecraft/class_433;field_41615:Lnet/minecraft/class_2561;
official F
Lfmz;F:Lxp;
-
showMenu
private final boolean showMenu- Mappings:
Namespace Name Mixin selector named showMenu
Lnet/minecraft/client/gui/screen/GameMenuScreen;showMenu:Z
intermediary field_19319
Lnet/minecraft/class_433;field_19319:Z
official G
Lfmz;G:Z
-
exitButton
- Mappings:
Namespace Name Mixin selector named exitButton
Lnet/minecraft/client/gui/screen/GameMenuScreen;exitButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
intermediary field_40792
Lnet/minecraft/class_433;field_40792:Lnet/minecraft/class_4185;
official H
Lfmz;H:Lfhf;
-
-
Constructor Details
-
GameMenuScreen
public GameMenuScreen(boolean showMenu) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/gui/screen/GameMenuScreen;<init>(Z)V
intermediary <init>
Lnet/minecraft/class_433;<init>(Z)V
official <init>
Lfmz;<init>(Z)V
-
-
Method Details
-
shouldShowMenu
public boolean shouldShowMenu()- Mappings:
Namespace Name Mixin selector named shouldShowMenu
Lnet/minecraft/client/gui/screen/GameMenuScreen;shouldShowMenu()Z
intermediary method_53558
Lnet/minecraft/class_433;method_53558()Z
official m
Lfmz;m()Z
-
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()
to set the element that is initially focused. -
initWidgets
private void initWidgets()- Mappings:
Namespace Name Mixin selector named initWidgets
Lnet/minecraft/client/gui/screen/GameMenuScreen;initWidgets()V
intermediary method_20543
Lnet/minecraft/class_433;method_20543()V
official E
Lfmz;E()V
-
disconnect
private void disconnect()- Mappings:
Namespace Name Mixin selector named disconnect
Lnet/minecraft/client/gui/screen/GameMenuScreen;disconnect()V
intermediary method_47632
Lnet/minecraft/class_433;method_47632()V
official F
Lfmz;F()V
-
tick
public void tick() -
render
- Specified by:
render
in interfaceDrawable
- Overrides:
render
in classScreen
- Mappings:
Namespace Name Mixin selector named render
Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)V
intermediary method_25394
Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)V
official a
Lfii;a(Lfgs;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:
renderBackground
in classScreen
- Mappings:
Namespace Name Mixin selector named renderBackground
Lnet/minecraft/client/gui/screen/Screen;renderBackground(Lnet/minecraft/client/gui/DrawContext;IIF)V
intermediary method_25420
Lnet/minecraft/class_437;method_25420(Lnet/minecraft/class_332;IIF)V
official b
Lfne;b(Lfgs;IIF)V
-
createButton
- Mappings:
Namespace Name Mixin selector named createButton
Lnet/minecraft/client/gui/screen/GameMenuScreen;createButton(Lnet/minecraft/text/Text;Ljava/util/function/Supplier;)Lnet/minecraft/client/gui/widget/ButtonWidget;
intermediary method_47900
Lnet/minecraft/class_433;method_47900(Lnet/minecraft/class_2561;Ljava/util/function/Supplier;)Lnet/minecraft/class_4185;
official a
Lfmz;a(Lxp;Ljava/util/function/Supplier;)Lfhf;
-
createUrlButton
- Mappings:
Namespace Name Mixin selector named createUrlButton
Lnet/minecraft/client/gui/screen/GameMenuScreen;createUrlButton(Lnet/minecraft/text/Text;Ljava/lang/String;)Lnet/minecraft/client/gui/widget/ButtonWidget;
intermediary method_47899
Lnet/minecraft/class_433;method_47899(Lnet/minecraft/class_2561;Ljava/lang/String;)Lnet/minecraft/class_4185;
official a
Lfmz;a(Lxp;Ljava/lang/String;)Lfhf;
-