Package net.minecraft.client.gui.screen
Class GameModeSelectionScreen
java.lang.Object
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.GameModeSelectionScreen
- All Implemented Interfaces:
Drawable
,Element
,Navigable
,ParentElement
- Mappings:
Namespace Name named net/minecraft/client/gui/screen/GameModeSelectionScreen
intermediary net/minecraft/class_5289
official fuj
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
private static enum
Nested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private final GameModeSelectionScreen.GameModeSelection
private static final int
private static final int
private final List
<GameModeSelectionScreen.ButtonWidget> private static final int
private int
private int
private boolean
private static final Text
(package private) static final Identifier
(package private) static final Identifier
private static final Identifier
private static final int
private static final int
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, narratorToggleButton, 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 void
apply()
private static void
apply
(MinecraftClient client, GameModeSelectionScreen.GameModeSelection gameModeSelection) private boolean
private GameMode
protected void
init()
Called when a screen should be initialized.boolean
keyPressed
(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured.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
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, close, filesDragged, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getTextRenderer, getTitle, getTooltipFromItem, getUsageNarrationText, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrateScreenIfNarrationEnabled, onDisplayed, refreshNarrator, refreshWidgetPositions, remove, removed, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderPanoramaBackground, renderWithTooltip, resize, setInitialFocus, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, shouldCloseOnEsc, shouldHideStatusEffectHud, switchFocus, tick, updateNarrator
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
-
SLOT_TEXTURE
- Mappings:
Namespace Name Mixin selector named SLOT_TEXTURE
Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;SLOT_TEXTURE:Lnet/minecraft/util/Identifier;
intermediary field_45432
Lnet/minecraft/class_5289;field_45432:Lnet/minecraft/class_2960;
official a
Lfuj;a:Lalz;
-
SELECTION_TEXTURE
- Mappings:
Namespace Name Mixin selector named SELECTION_TEXTURE
Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;SELECTION_TEXTURE:Lnet/minecraft/util/Identifier;
intermediary field_45433
Lnet/minecraft/class_5289;field_45433:Lnet/minecraft/class_2960;
official b
Lfuj;b:Lalz;
-
TEXTURE
- Mappings:
Namespace Name Mixin selector named TEXTURE
Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;TEXTURE:Lnet/minecraft/util/Identifier;
intermediary field_24566
Lnet/minecraft/class_5289;field_24566:Lnet/minecraft/class_2960;
official c
Lfuj;c:Lalz;
-
TEXTURE_WIDTH
private static final int TEXTURE_WIDTH- See Also:
- Mappings:
Namespace Name Mixin selector named TEXTURE_WIDTH
Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;TEXTURE_WIDTH:I
intermediary field_32310
Lnet/minecraft/class_5289;field_32310:I
official d
Lfuj;d:I
-
TEXTURE_HEIGHT
private static final int TEXTURE_HEIGHT- See Also:
- Mappings:
Namespace Name Mixin selector named TEXTURE_HEIGHT
Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;TEXTURE_HEIGHT:I
intermediary field_32311
Lnet/minecraft/class_5289;field_32311:I
official s
Lfuj;s:I
-
BUTTON_SIZE
private static final int BUTTON_SIZE- See Also:
- Mappings:
Namespace Name Mixin selector named BUTTON_SIZE
Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;BUTTON_SIZE:I
intermediary field_32312
Lnet/minecraft/class_5289;field_32312:I
official u
Lfuj;u:I
-
ICON_OFFSET
private static final int ICON_OFFSET- See Also:
- Mappings:
Namespace Name Mixin selector named ICON_OFFSET
Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;ICON_OFFSET:I
intermediary field_32313
Lnet/minecraft/class_5289;field_32313:I
official v
Lfuj;v:I
-
field_32314
private static final int field_32314- See Also:
- Mappings:
Namespace Name Mixin selector named field_32314
Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;field_32314:I
intermediary field_32314
Lnet/minecraft/class_5289;field_32314:I
official w
Lfuj;w:I
-
field_32315
private static final int field_32315- See Also:
- Mappings:
Namespace Name Mixin selector named field_32315
Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;field_32315:I
intermediary field_32315
Lnet/minecraft/class_5289;field_32315:I
official x
Lfuj;x:I
-
UI_WIDTH
private static final int UI_WIDTH- Mappings:
Namespace Name Mixin selector named UI_WIDTH
Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;UI_WIDTH:I
intermediary field_24567
Lnet/minecraft/class_5289;field_24567:I
official y
Lfuj;y:I
-
SELECT_NEXT_TEXT
- Mappings:
Namespace Name Mixin selector named SELECT_NEXT_TEXT
Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;SELECT_NEXT_TEXT:Lnet/minecraft/text/Text;
intermediary field_25454
Lnet/minecraft/class_5289;field_25454:Lnet/minecraft/class_2561;
official z
Lfuj;z:Lxv;
-
currentGameMode
- Mappings:
Namespace Name Mixin selector named currentGameMode
Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;currentGameMode:Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameModeSelection;
intermediary field_24568
Lnet/minecraft/class_5289;field_24568:Lnet/minecraft/class_5289$class_5290;
official A
Lfuj;A:Lfuj$a;
-
gameMode
- Mappings:
Namespace Name Mixin selector named gameMode
Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;gameMode:Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameModeSelection;
intermediary field_24569
Lnet/minecraft/class_5289;field_24569:Lnet/minecraft/class_5289$class_5290;
official B
Lfuj;B:Lfuj$a;
-
lastMouseX
private int lastMouseX- Mappings:
Namespace Name Mixin selector named lastMouseX
Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;lastMouseX:I
intermediary field_24570
Lnet/minecraft/class_5289;field_24570:I
official C
Lfuj;C:I
-
lastMouseY
private int lastMouseY- Mappings:
Namespace Name Mixin selector named lastMouseY
Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;lastMouseY:I
intermediary field_24571
Lnet/minecraft/class_5289;field_24571:I
official D
Lfuj;D:I
-
mouseUsedForSelection
private boolean mouseUsedForSelection- Mappings:
Namespace Name Mixin selector named mouseUsedForSelection
Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;mouseUsedForSelection:Z
intermediary field_24572
Lnet/minecraft/class_5289;field_24572:Z
official E
Lfuj;E:Z
-
gameModeButtons
- Mappings:
Namespace Name Mixin selector named gameModeButtons
Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;gameModeButtons:Ljava/util/List;
intermediary field_24573
Lnet/minecraft/class_5289;field_24573:Ljava/util/List;
official F
Lfuj;F:Ljava/util/List;
-
-
Constructor Details
-
GameModeSelectionScreen
public GameModeSelectionScreen()
-
-
Method Details
-
getPreviousGameMode
- Mappings:
Namespace Name Mixin selector named getPreviousGameMode
Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;getPreviousGameMode()Lnet/minecraft/world/GameMode;
intermediary method_30106
Lnet/minecraft/class_5289;method_30106()Lnet/minecraft/class_1934;
official l
Lfuj;l()Ldhe;
-
init
protected void init()Called when a screen should be initialized.This method is called when this screen is opened or resized.
-
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
Lfpi;a(Lfnr;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
Lftx;b(Lfnr;IIF)V
-
apply
private void apply()- Mappings:
Namespace Name Mixin selector named apply
Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;apply()V
intermediary method_28068
Lnet/minecraft/class_5289;method_28068()V
official E
Lfuj;E()V
-
apply
private static void apply(MinecraftClient client, GameModeSelectionScreen.GameModeSelection gameModeSelection) - Mappings:
Namespace Name Mixin selector named apply
Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;apply(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameModeSelection;)V
intermediary method_28064
Lnet/minecraft/class_5289;method_28064(Lnet/minecraft/class_310;Lnet/minecraft/class_5289$class_5290;)V
official a
Lfuj;a(Lfmf;Lfuj$a;)V
-
checkForClose
private boolean checkForClose()- Mappings:
Namespace Name Mixin selector named checkForClose
Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;checkForClose()Z
intermediary method_28069
Lnet/minecraft/class_5289;method_28069()Z
official F
Lfuj;F()Z
-
keyPressed
public boolean keyPressed(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured. The key code is identified by the constants inGLFW
class.- Specified by:
keyPressed
in interfaceElement
- Specified by:
keyPressed
in interfaceParentElement
- Overrides:
keyPressed
in classScreen
- Parameters:
keyCode
- the named key code of the event as described in theGLFW
classscanCode
- the unique/platform-specific scan code of the keyboard inputmodifiers
- a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)- Returns:
true
to indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector named keyPressed
Lnet/minecraft/client/gui/Element;keyPressed(III)Z
intermediary method_25404
Lnet/minecraft/class_364;method_25404(III)Z
official a
Lfqc;a(III)Z
-
shouldPause
public boolean shouldPause()- Overrides:
shouldPause
in classScreen
- Mappings:
Namespace Name Mixin selector named shouldPause
Lnet/minecraft/client/gui/screen/Screen;shouldPause()Z
intermediary method_25421
Lnet/minecraft/class_437;method_25421()Z
official j
Lftx;j()Z
-