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 fbqintermediary net/minecraft/class_5289named net/minecraft/client/gui/screen/GameModeSelectionScreen
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassprivate static enumNested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData -
Field Summary
FieldsModifier 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 Identifier(package private) static final Identifierprivate static final Identifierprivate static final intprivate static final intprivate 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 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) voidrenderBackground(DrawContext context, int mouseX, int mouseY, float delta) Renders the background of this screen.booleanMethods 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, getUsageNarrationText, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, hide, init, initTabNavigation, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrateScreenIfNarrationEnabled, onDisplayed, remove, removed, renderBackgroundTexture, renderInGameBackground, renderWithTooltip, resize, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, shouldCloseOnEsc, switchFocus, tick, 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
-
SLOT_TEXTURE
- Mappings:
Namespace Name Mixin selector official aLfbq;a:Lagi;intermediary field_45432Lnet/minecraft/class_5289;field_45432:Lnet/minecraft/class_2960;named SLOT_TEXTURELnet/minecraft/client/gui/screen/GameModeSelectionScreen;SLOT_TEXTURE:Lnet/minecraft/util/Identifier;
-
SELECTION_TEXTURE
- Mappings:
Namespace Name Mixin selector official bLfbq;b:Lagi;intermediary field_45433Lnet/minecraft/class_5289;field_45433:Lnet/minecraft/class_2960;named SELECTION_TEXTURELnet/minecraft/client/gui/screen/GameModeSelectionScreen;SELECTION_TEXTURE:Lnet/minecraft/util/Identifier;
-
TEXTURE
- Mappings:
Namespace Name Mixin selector official cLfbq;c:Lagi;intermediary field_24566Lnet/minecraft/class_5289;field_24566:Lnet/minecraft/class_2960;named TEXTURELnet/minecraft/client/gui/screen/GameModeSelectionScreen;TEXTURE:Lnet/minecraft/util/Identifier;
-
TEXTURE_WIDTH
private static final int TEXTURE_WIDTH- See Also:
- Mappings:
Namespace Name Mixin selector official kLfbq;k:Iintermediary field_32310Lnet/minecraft/class_5289;field_32310:Inamed TEXTURE_WIDTHLnet/minecraft/client/gui/screen/GameModeSelectionScreen;TEXTURE_WIDTH:I
-
TEXTURE_HEIGHT
private static final int TEXTURE_HEIGHT- See Also:
- Mappings:
Namespace Name Mixin selector official lLfbq;l:Iintermediary field_32311Lnet/minecraft/class_5289;field_32311:Inamed TEXTURE_HEIGHTLnet/minecraft/client/gui/screen/GameModeSelectionScreen;TEXTURE_HEIGHT:I
-
BUTTON_SIZE
private static final int BUTTON_SIZE- See Also:
- Mappings:
Namespace Name Mixin selector official mLfbq;m:Iintermediary field_32312Lnet/minecraft/class_5289;field_32312:Inamed BUTTON_SIZELnet/minecraft/client/gui/screen/GameModeSelectionScreen;BUTTON_SIZE:I
-
ICON_OFFSET
private static final int ICON_OFFSET- See Also:
- Mappings:
Namespace Name Mixin selector official nLfbq;n:Iintermediary field_32313Lnet/minecraft/class_5289;field_32313:Inamed ICON_OFFSETLnet/minecraft/client/gui/screen/GameModeSelectionScreen;ICON_OFFSET:I
-
field_32314
private static final int field_32314- See Also:
- Mappings:
Namespace Name Mixin selector official oLfbq;o:Iintermediary field_32314Lnet/minecraft/class_5289;field_32314:Inamed field_32314Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;field_32314:I
-
field_32315
private static final int field_32315- See Also:
- Mappings:
Namespace Name Mixin selector official pLfbq;p:Iintermediary field_32315Lnet/minecraft/class_5289;field_32315:Inamed field_32315Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;field_32315:I
-
UI_WIDTH
private static final int UI_WIDTH- Mappings:
Namespace Name Mixin selector official qLfbq;q:Iintermediary field_24567Lnet/minecraft/class_5289;field_24567:Inamed UI_WIDTHLnet/minecraft/client/gui/screen/GameModeSelectionScreen;UI_WIDTH:I
-
SELECT_NEXT_TEXT
- Mappings:
Namespace Name Mixin selector official rLfbq;r:Lur;intermediary field_25454Lnet/minecraft/class_5289;field_25454:Lnet/minecraft/class_2561;named SELECT_NEXT_TEXTLnet/minecraft/client/gui/screen/GameModeSelectionScreen;SELECT_NEXT_TEXT:Lnet/minecraft/text/Text;
-
currentGameMode
- Mappings:
Namespace Name Mixin selector official tLfbq;t:Lfbq$a;intermediary field_24568Lnet/minecraft/class_5289;field_24568:Lnet/minecraft/class_5289$class_5290;named currentGameModeLnet/minecraft/client/gui/screen/GameModeSelectionScreen;currentGameMode:Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameModeSelection;
-
gameMode
- Mappings:
Namespace Name Mixin selector official uLfbq;u:Lfbq$a;intermediary field_24569Lnet/minecraft/class_5289;field_24569:Lnet/minecraft/class_5289$class_5290;named gameModeLnet/minecraft/client/gui/screen/GameModeSelectionScreen;gameMode:Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameModeSelection;
-
lastMouseX
private int lastMouseX- Mappings:
Namespace Name Mixin selector official vLfbq;v:Iintermediary field_24570Lnet/minecraft/class_5289;field_24570:Inamed lastMouseXLnet/minecraft/client/gui/screen/GameModeSelectionScreen;lastMouseX:I
-
lastMouseY
private int lastMouseY- Mappings:
Namespace Name Mixin selector official wLfbq;w:Iintermediary field_24571Lnet/minecraft/class_5289;field_24571:Inamed lastMouseYLnet/minecraft/client/gui/screen/GameModeSelectionScreen;lastMouseY:I
-
mouseUsedForSelection
private boolean mouseUsedForSelection- Mappings:
Namespace Name Mixin selector official xLfbq;x:Zintermediary field_24572Lnet/minecraft/class_5289;field_24572:Znamed mouseUsedForSelectionLnet/minecraft/client/gui/screen/GameModeSelectionScreen;mouseUsedForSelection:Z
-
gameModeButtons
- Mappings:
Namespace Name Mixin selector official yLfbq;y:Ljava/util/List;intermediary field_24573Lnet/minecraft/class_5289;field_24573:Ljava/util/List;named gameModeButtonsLnet/minecraft/client/gui/screen/GameModeSelectionScreen;gameModeButtons:Ljava/util/List;
-
-
Constructor Details
-
GameModeSelectionScreen
public GameModeSelectionScreen()
-
-
Method Details
-
getPreviousGameMode
- Mappings:
Namespace Name Mixin selector official lLfbq;l()Lcrx;intermediary method_30106Lnet/minecraft/class_5289;method_30106()Lnet/minecraft/class_1934;named getPreviousGameModeLnet/minecraft/client/gui/screen/GameModeSelectionScreen;getPreviousGameMode()Lnet/minecraft/world/GameMode;
-
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. -
render
- Specified by:
renderin interfaceDrawable- Overrides:
renderin classScreen- Mappings:
Namespace Name Mixin selector official aLewc;a(Leuo;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, renders the translucent background gradient. Otherwise renders the background texture.
- Overrides:
renderBackgroundin classScreen- Mappings:
Namespace Name Mixin selector official bLfau;b(Leuo;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
-
apply
private void apply()- Mappings:
Namespace Name Mixin selector official CLfbq;C()Vintermediary method_28068Lnet/minecraft/class_5289;method_28068()Vnamed applyLnet/minecraft/client/gui/screen/GameModeSelectionScreen;apply()V
-
apply
private static void apply(MinecraftClient client, GameModeSelectionScreen.GameModeSelection gameModeSelection) - Mappings:
Namespace Name Mixin selector official aLfbq;a(Letd;Lfbq$a;)Vintermediary method_28064Lnet/minecraft/class_5289;method_28064(Lnet/minecraft/class_310;Lnet/minecraft/class_5289$class_5290;)Vnamed applyLnet/minecraft/client/gui/screen/GameModeSelectionScreen;apply(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameModeSelection;)V
-
checkForClose
private boolean checkForClose()- Mappings:
Namespace Name Mixin selector official DLfbq;D()Zintermediary method_28069Lnet/minecraft/class_5289;method_28069()Znamed checkForCloseLnet/minecraft/client/gui/screen/GameModeSelectionScreen;checkForClose()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 inGLFWclass.- Specified by:
keyPressedin interfaceElement- Specified by:
keyPressedin interfaceParentElement- Overrides:
keyPressedin classScreen- Parameters:
keyCode- the named key code of the event as described in theGLFWclassscanCode- 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:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector official aLewu;a(III)Zintermediary method_25404Lnet/minecraft/class_364;method_25404(III)Znamed keyPressedLnet/minecraft/client/gui/Element;keyPressed(III)Z
-
shouldPause
public boolean shouldPause()- Overrides:
shouldPausein classScreen- Mappings:
Namespace Name Mixin selector official jLfau;j()Zintermediary method_25421Lnet/minecraft/class_437;method_25421()Znamed shouldPauseLnet/minecraft/client/gui/screen/Screen;shouldPause()Z
-