Package net.minecraft.client.gui.screen
Class GameModeSelectionScreen
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.GameModeSelectionScreen
- All Implemented Interfaces:
Drawable
,Element
,ParentElement
- Mappings:
Namespace Name official eer
intermediary net/minecraft/class_5289
named net/minecraft/client/gui/screen/GameModeSelectionScreen
-
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 Optional<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
private static final int
private static final int
private static final int
Fields inherited from class net.minecraft.client.gui.screen.Screen
client, height, itemRenderer, passEvents, textRenderer, title, width
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
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, Optional<GameModeSelectionScreen.GameModeSelection> gameMode) 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
(MatrixStack matrices, int mouseX, int mouseY, float delta) boolean
Methods inherited from class net.minecraft.client.gui.screen.Screen
addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, applyNarratorModeChangeDelay, children, clearChildren, close, filesDragged, findSelectedElementData, getNarratedTitle, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hide, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrateScreenIfNarrationEnabled, remove, removed, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, shouldCloseOnEsc, tick, updateNarrator, wrapScreenError
Methods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredText, drawCenteredText, drawCenteredTextWithShadow, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, drawWithOutline, drawWithShadow, fill, fillGradient, fillGradient, fillGradient, getZOffset, setZOffset
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.ParentElement
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
Field Details
-
TEXTURE
- Mappings:
Namespace Name Mixin selector official a
Leer;a:Lyt;
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_WIDTH
private static final int TEXTURE_WIDTH- See Also:
- Mappings:
Namespace Name Mixin selector official b
Leer;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_HEIGHT
private static final int TEXTURE_HEIGHT- See Also:
- Mappings:
Namespace Name Mixin selector official c
Leer;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_SIZE
private static final int BUTTON_SIZE- See Also:
- Mappings:
Namespace Name Mixin selector official n
Leer;n:I
intermediary field_32312
Lnet/minecraft/class_5289;field_32312:I
named BUTTON_SIZE
Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;BUTTON_SIZE:I
-
ICON_OFFSET
private static final int ICON_OFFSET- See Also:
- Mappings:
Namespace Name Mixin selector official o
Leer;o:I
intermediary field_32313
Lnet/minecraft/class_5289;field_32313:I
named ICON_OFFSET
Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;ICON_OFFSET:I
-
field_32314
private static final int field_32314- See Also:
- Mappings:
Namespace Name Mixin selector official p
Leer;p:I
intermediary field_32314
Lnet/minecraft/class_5289;field_32314:I
named field_32314
Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;field_32314:I
-
field_32315
private static final int field_32315- See Also:
- Mappings:
Namespace Name Mixin selector official q
Leer;q:I
intermediary field_32315
Lnet/minecraft/class_5289;field_32315:I
named field_32315
Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;field_32315:I
-
UI_WIDTH
private static final int UI_WIDTH- Mappings:
Namespace Name Mixin selector official r
Leer;r: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 s
Leer;s:Lqk;
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 t
Leer;t:Ljava/util/Optional;
intermediary field_24568
Lnet/minecraft/class_5289;field_24568:Ljava/util/Optional;
named currentGameMode
Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;currentGameMode:Ljava/util/Optional;
-
gameMode
- Mappings:
Namespace Name Mixin selector official u
Leer;u:Ljava/util/Optional;
intermediary field_24569
Lnet/minecraft/class_5289;field_24569:Ljava/util/Optional;
named gameMode
Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;gameMode:Ljava/util/Optional;
-
lastMouseX
private int lastMouseX- Mappings:
Namespace Name Mixin selector official v
Leer;v:I
intermediary field_24570
Lnet/minecraft/class_5289;field_24570:I
named lastMouseX
Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;lastMouseX:I
-
lastMouseY
private int lastMouseY- Mappings:
Namespace Name Mixin selector official w
Leer;w:I
intermediary field_24571
Lnet/minecraft/class_5289;field_24571:I
named lastMouseY
Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;lastMouseY:I
-
mouseUsedForSelection
private boolean mouseUsedForSelection- Mappings:
Namespace Name Mixin selector official x
Leer;x: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 y
Leer;y: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
-
GameModeSelectionScreen
public GameModeSelectionScreen()
-
-
Method Details
-
getPreviousGameMode
- Mappings:
Namespace Name Mixin selector official h
Leer;h()Lcas;
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;
-
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 official a
Leba;a(Ldtm;IIF)V
intermediary method_25394
Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_4587;IIF)V
named render
Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-
apply
private void apply()- Mappings:
Namespace Name Mixin selector official v
Leer;v()V
intermediary method_28068
Lnet/minecraft/class_5289;method_28068()V
named apply
Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;apply()V
-
apply
private static void apply(MinecraftClient client, Optional<GameModeSelectionScreen.GameModeSelection> gameMode) - Mappings:
Namespace Name Mixin selector official a
Leer;a(Ldyr;Ljava/util/Optional;)V
intermediary method_28064
Lnet/minecraft/class_5289;method_28064(Lnet/minecraft/class_310;Ljava/util/Optional;)V
named apply
Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;apply(Lnet/minecraft/client/MinecraftClient;Ljava/util/Optional;)V
-
checkForClose
private boolean checkForClose()- Mappings:
Namespace Name Mixin selector official w
Leer;w()Z
intermediary method_28069
Lnet/minecraft/class_5289;method_28069()Z
named checkForClose
Lnet/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 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 official a
Lebd;a(III)Z
intermediary method_25404
Lnet/minecraft/class_364;method_25404(III)Z
named keyPressed
Lnet/minecraft/client/gui/Element;keyPressed(III)Z
-
shouldPause
public boolean shouldPause()- Overrides:
shouldPause
in classScreen
- Mappings:
Namespace Name Mixin selector official aj_
Ledw;aj_()Z
intermediary method_25421
Lnet/minecraft/class_437;method_25421()Z
named shouldPause
Lnet/minecraft/client/gui/screen/Screen;shouldPause()Z
-