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 - official - evm- intermediary - net/minecraft/class_5289- named - net/minecraft/client/gui/screen/GameModeSelectionScreen
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionclassprivate static enumNested classes/interfaces inherited from class net.minecraft.client.gui.screen.ScreenScreen.SelectedElementNarrationData
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final intprivate final GameModeSelectionScreen.GameModeSelectionprivate static final intprivate static final intprivate final List<GameModeSelectionScreen.ButtonWidget>private static final intprivate intprivate intprivate booleanprivate static final Text(package private) static final Identifierprivate static final intprivate static final intprivate static final intFields inherited from class net.minecraft.client.gui.screen.Screenclient, executor, height, OPTIONS_BACKGROUND_TEXTURE, textRenderer, title, widthFields inherited from interface net.minecraft.client.gui.ElementMAX_DOUBLE_CLICK_INTERVAL
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprivate voidapply()private static voidapply(MinecraftClient client, GameModeSelectionScreen.GameModeSelection gameModeSelection) private booleanprivate GameModeprotected voidinit()Called when a screen should be initialized.booleankeyPressed(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured.voidrender(DrawContext context, int mouseX, int mouseY, float delta) booleanMethods inherited from class net.minecraft.client.gui.screen.ScreenaddDrawable, 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, narrateScreenIfNarrationEnabled, onDisplayed, remove, removed, renderBackground, renderBackgroundTexture, renderWithTooltip, resize, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, shouldCloseOnEsc, switchFocus, tick, updateNarrator, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.AbstractParentElementgetFocused, isDragging, setDragging, setFocusedMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.ElementmouseMovedMethods inherited from interface net.minecraft.client.gui.navigation.NavigablegetNavigationOrderMethods inherited from interface net.minecraft.client.gui.ParentElementcharTyped, focusOn, getFocusedPath, getNavigationPath, hoveredElement, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setFocused
- 
Field Details- 
TEXTURE- Mappings:
- Namespace - Name - Mixin selector - official - a- Levm;a:Lacq;- intermediary - field_24566- Lnet/minecraft/class_5289;field_24566:Lnet/minecraft/class_2960;- named - TEXTURE- Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;TEXTURE:Lnet/minecraft/util/Identifier;
 
- 
TEXTURE_WIDTHprivate static final int TEXTURE_WIDTH- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - b- Levm;b:I- intermediary - field_32310- Lnet/minecraft/class_5289;field_32310:I- named - TEXTURE_WIDTH- Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;TEXTURE_WIDTH:I
 
- 
TEXTURE_HEIGHTprivate static final int TEXTURE_HEIGHT- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - c- Levm;c:I- intermediary - field_32311- Lnet/minecraft/class_5289;field_32311:I- named - TEXTURE_HEIGHT- Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;TEXTURE_HEIGHT:I
 
- 
BUTTON_SIZEprivate static final int BUTTON_SIZE- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - k- Levm;k:I- intermediary - field_32312- Lnet/minecraft/class_5289;field_32312:I- named - BUTTON_SIZE- Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;BUTTON_SIZE:I
 
- 
ICON_OFFSETprivate static final int ICON_OFFSET- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - l- Levm;l:I- intermediary - field_32313- Lnet/minecraft/class_5289;field_32313:I- named - ICON_OFFSET- Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;ICON_OFFSET:I
 
- 
field_32314private static final int field_32314- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - m- Levm;m:I- intermediary - field_32314- Lnet/minecraft/class_5289;field_32314:I- named - field_32314- Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;field_32314:I
 
- 
field_32315private static final int field_32315- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - n- Levm;n:I- intermediary - field_32315- Lnet/minecraft/class_5289;field_32315:I- named - field_32315- Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;field_32315:I
 
- 
UI_WIDTHprivate static final int UI_WIDTH- Mappings:
- Namespace - Name - Mixin selector - official - o- Levm;o:I- intermediary - field_24567- Lnet/minecraft/class_5289;field_24567:I- named - UI_WIDTH- Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;UI_WIDTH:I
 
- 
SELECT_NEXT_TEXT- Mappings:
- Namespace - Name - Mixin selector - official - p- Levm;p:Lsw;- intermediary - field_25454- Lnet/minecraft/class_5289;field_25454:Lnet/minecraft/class_2561;- named - SELECT_NEXT_TEXT- Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;SELECT_NEXT_TEXT:Lnet/minecraft/text/Text;
 
- 
currentGameMode- Mappings:
- Namespace - Name - Mixin selector - official - q- Levm;q:Levm$a;- intermediary - field_24568- Lnet/minecraft/class_5289;field_24568:Lnet/minecraft/class_5289$class_5290;- named - currentGameMode- Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;currentGameMode:Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameModeSelection;
 
- 
gameMode- Mappings:
- Namespace - Name - Mixin selector - official - r- Levm;r:Levm$a;- intermediary - field_24569- Lnet/minecraft/class_5289;field_24569:Lnet/minecraft/class_5289$class_5290;- named - gameMode- Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;gameMode:Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameModeSelection;
 
- 
lastMouseXprivate int lastMouseX- Mappings:
- Namespace - Name - Mixin selector - official - s- Levm;s:I- intermediary - field_24570- Lnet/minecraft/class_5289;field_24570:I- named - lastMouseX- Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;lastMouseX:I
 
- 
lastMouseYprivate int lastMouseY- Mappings:
- Namespace - Name - Mixin selector - official - t- Levm;t:I- intermediary - field_24571- Lnet/minecraft/class_5289;field_24571:I- named - lastMouseY- Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;lastMouseY:I
 
- 
mouseUsedForSelectionprivate boolean mouseUsedForSelection- Mappings:
- Namespace - Name - Mixin selector - official - u- Levm;u:Z- intermediary - field_24572- Lnet/minecraft/class_5289;field_24572:Z- named - mouseUsedForSelection- Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;mouseUsedForSelection:Z
 
- 
gameModeButtons- Mappings:
- Namespace - Name - Mixin selector - official - v- Levm;v:Ljava/util/List;- intermediary - field_24573- Lnet/minecraft/class_5289;field_24573:Ljava/util/List;- named - gameModeButtons- Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;gameModeButtons:Ljava/util/List;
 
 
- 
- 
Constructor Details- 
GameModeSelectionScreenpublic GameModeSelectionScreen()
 
- 
- 
Method Details- 
getPreviousGameMode- Mappings:
- Namespace - Name - Mixin selector - official - l- Levm;l()Lcmj;- intermediary - method_30106- Lnet/minecraft/class_5289;method_30106()Lnet/minecraft/class_1934;- named - getPreviousGameMode- Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;getPreviousGameMode()Lnet/minecraft/world/GameMode;
 
- 
initprotected 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.
- 
render- Specified by:
- renderin interface- Drawable
- Overrides:
- renderin class- Screen
- Mappings:
- Namespace - Name - Mixin selector - official - a- Leqh;a(Leox;IIF)V- intermediary - method_25394- Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)V- named - render- Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)V
 
- 
applyprivate void apply()- Mappings:
- Namespace - Name - Mixin selector - official - B- Levm;B()V- intermediary - method_28068- Lnet/minecraft/class_5289;method_28068()V- named - apply- Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;apply()V
 
- 
applyprivate static void apply(MinecraftClient client, GameModeSelectionScreen.GameModeSelection gameModeSelection) - Mappings:
- Namespace - Name - Mixin selector - official - a- Levm;a(Lenn;Levm$a;)V- intermediary - method_28064- Lnet/minecraft/class_5289;method_28064(Lnet/minecraft/class_310;Lnet/minecraft/class_5289$class_5290;)V- named - apply- Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;apply(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameModeSelection;)V
 
- 
checkForCloseprivate boolean checkForClose()- Mappings:
- Namespace - Name - Mixin selector - official - C- Levm;C()Z- intermediary - method_28069- Lnet/minecraft/class_5289;method_28069()Z- named - checkForClose- Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;checkForClose()Z
 
- 
keyPressedpublic 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 inGLFWclass.- Specified by:
- keyPressedin interface- Element
- Specified by:
- keyPressedin interface- ParentElement
- Overrides:
- keyPressedin class- Screen
- Parameters:
- keyCode- the named key code of the event as described in the- GLFWclass
- scanCode- the unique/platform-specific scan code of the keyboard input
- modifiers- a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)
- Returns:
- trueto indicate that the event handling is successful/valid
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Leqt;a(III)Z- intermediary - method_25404- Lnet/minecraft/class_364;method_25404(III)Z- named - keyPressed- Lnet/minecraft/client/gui/Element;keyPressed(III)Z
 
- 
shouldPausepublic boolean shouldPause()- Overrides:
- shouldPausein class- Screen
- Mappings:
- Namespace - Name - Mixin selector - official - az_- Leuq;az_()Z- intermediary - method_25421- Lnet/minecraft/class_437;method_25421()Z- named - shouldPause- Lnet/minecraft/client/gui/screen/Screen;shouldPause()Z
 
 
-