Package net.minecraft.client.gui.screen
Class GameModeSwitcherScreen
java.lang.Object
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.GameModeSwitcherScreen
- All Implemented Interfaces:
Drawable,Element,Navigable,ParentElement
- Mappings:
Namespace Name named net/minecraft/client/gui/screen/GameModeSwitcherScreenintermediary net/minecraft/class_5289official gac
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classprivate static enumNested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate final GameModeSwitcherScreen.GameModeSelectionprivate static final intprivate static final intprivate final List<GameModeSwitcherScreen.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, 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, 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, GameModeSwitcherScreen.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 deltaTicks) voidrenderBackground(DrawContext context, int mouseX, int mouseY, float deltaTicks) Renders the background of this screen.booleanMethods 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, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getTextRenderer, getTitle, getTooltipFromItem, getUsageNarrationText, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrateScreenIfNarrationEnabled, onDisplayed, onFilesDropped, refreshNarrator, refreshWidgetPositions, remove, removed, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderPanoramaBackground, renderWithTooltip, resize, setInitialFocus, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, shouldCloseOnEsc, shouldHideStatusEffectHud, switchFocus, tick, updateNarratorMethods 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
getBorder, mouseMovedMethods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrderMethods 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_TEXTURELnet/minecraft/client/gui/screen/GameModeSwitcherScreen;SLOT_TEXTURE:Lnet/minecraft/util/Identifier;intermediary field_45432Lnet/minecraft/class_5289;field_45432:Lnet/minecraft/class_2960;official aLgac;a:Lalr;
-
SELECTION_TEXTURE
- Mappings:
Namespace Name Mixin selector named SELECTION_TEXTURELnet/minecraft/client/gui/screen/GameModeSwitcherScreen;SELECTION_TEXTURE:Lnet/minecraft/util/Identifier;intermediary field_45433Lnet/minecraft/class_5289;field_45433:Lnet/minecraft/class_2960;official bLgac;b:Lalr;
-
TEXTURE
- Mappings:
Namespace Name Mixin selector named TEXTURELnet/minecraft/client/gui/screen/GameModeSwitcherScreen;TEXTURE:Lnet/minecraft/util/Identifier;intermediary field_24566Lnet/minecraft/class_5289;field_24566:Lnet/minecraft/class_2960;official cLgac;c:Lalr;
-
TEXTURE_WIDTH
private static final int TEXTURE_WIDTH- See Also:
- Mappings:
Namespace Name Mixin selector named TEXTURE_WIDTHLnet/minecraft/client/gui/screen/GameModeSwitcherScreen;TEXTURE_WIDTH:Iintermediary field_32310Lnet/minecraft/class_5289;field_32310:Iofficial dLgac;d:I
-
TEXTURE_HEIGHT
private static final int TEXTURE_HEIGHT- See Also:
- Mappings:
Namespace Name Mixin selector named TEXTURE_HEIGHTLnet/minecraft/client/gui/screen/GameModeSwitcherScreen;TEXTURE_HEIGHT:Iintermediary field_32311Lnet/minecraft/class_5289;field_32311:Iofficial sLgac;s:I
-
BUTTON_SIZE
private static final int BUTTON_SIZE- See Also:
- Mappings:
Namespace Name Mixin selector named BUTTON_SIZELnet/minecraft/client/gui/screen/GameModeSwitcherScreen;BUTTON_SIZE:Iintermediary field_32312Lnet/minecraft/class_5289;field_32312:Iofficial uLgac;u:I
-
ICON_OFFSET
private static final int ICON_OFFSET- See Also:
- Mappings:
Namespace Name Mixin selector named ICON_OFFSETLnet/minecraft/client/gui/screen/GameModeSwitcherScreen;ICON_OFFSET:Iintermediary field_32313Lnet/minecraft/class_5289;field_32313:Iofficial vLgac;v:I
-
field_32314
private static final int field_32314- See Also:
- Mappings:
Namespace Name Mixin selector named field_32314Lnet/minecraft/client/gui/screen/GameModeSwitcherScreen;field_32314:Iintermediary field_32314Lnet/minecraft/class_5289;field_32314:Iofficial wLgac;w:I
-
field_32315
private static final int field_32315- See Also:
- Mappings:
Namespace Name Mixin selector named field_32315Lnet/minecraft/client/gui/screen/GameModeSwitcherScreen;field_32315:Iintermediary field_32315Lnet/minecraft/class_5289;field_32315:Iofficial xLgac;x:I
-
UI_WIDTH
private static final int UI_WIDTH- Mappings:
Namespace Name Mixin selector named UI_WIDTHLnet/minecraft/client/gui/screen/GameModeSwitcherScreen;UI_WIDTH:Iintermediary field_24567Lnet/minecraft/class_5289;field_24567:Iofficial yLgac;y:I
-
SELECT_NEXT_TEXT
- Mappings:
Namespace Name Mixin selector named SELECT_NEXT_TEXTLnet/minecraft/client/gui/screen/GameModeSwitcherScreen;SELECT_NEXT_TEXT:Lnet/minecraft/text/Text;intermediary field_25454Lnet/minecraft/class_5289;field_25454:Lnet/minecraft/class_2561;official zLgac;z:Lxg;
-
currentGameMode
- Mappings:
Namespace Name Mixin selector named currentGameModeLnet/minecraft/client/gui/screen/GameModeSwitcherScreen;currentGameMode:Lnet/minecraft/client/gui/screen/GameModeSwitcherScreen$GameModeSelection;intermediary field_24568Lnet/minecraft/class_5289;field_24568:Lnet/minecraft/class_5289$class_5290;official ALgac;A:Lgac$a;
-
gameMode
- Mappings:
Namespace Name Mixin selector named gameModeLnet/minecraft/client/gui/screen/GameModeSwitcherScreen;gameMode:Lnet/minecraft/client/gui/screen/GameModeSwitcherScreen$GameModeSelection;intermediary field_24569Lnet/minecraft/class_5289;field_24569:Lnet/minecraft/class_5289$class_5290;official BLgac;B:Lgac$a;
-
lastMouseX
private int lastMouseX- Mappings:
Namespace Name Mixin selector named lastMouseXLnet/minecraft/client/gui/screen/GameModeSwitcherScreen;lastMouseX:Iintermediary field_24570Lnet/minecraft/class_5289;field_24570:Iofficial CLgac;C:I
-
lastMouseY
private int lastMouseY- Mappings:
Namespace Name Mixin selector named lastMouseYLnet/minecraft/client/gui/screen/GameModeSwitcherScreen;lastMouseY:Iintermediary field_24571Lnet/minecraft/class_5289;field_24571:Iofficial DLgac;D:I
-
mouseUsedForSelection
private boolean mouseUsedForSelection- Mappings:
Namespace Name Mixin selector named mouseUsedForSelectionLnet/minecraft/client/gui/screen/GameModeSwitcherScreen;mouseUsedForSelection:Zintermediary field_24572Lnet/minecraft/class_5289;field_24572:Zofficial ELgac;E:Z
-
gameModeButtons
- Mappings:
Namespace Name Mixin selector named gameModeButtonsLnet/minecraft/client/gui/screen/GameModeSwitcherScreen;gameModeButtons:Ljava/util/List;intermediary field_24573Lnet/minecraft/class_5289;field_24573:Ljava/util/List;official FLgac;F:Ljava/util/List;
-
-
Constructor Details
-
GameModeSwitcherScreen
public GameModeSwitcherScreen()
-
-
Method Details
-
getPreviousGameMode
- Mappings:
Namespace Name Mixin selector named getPreviousGameModeLnet/minecraft/client/gui/screen/GameModeSwitcherScreen;getPreviousGameMode()Lnet/minecraft/world/GameMode;intermediary method_30106Lnet/minecraft/class_5289;method_30106()Lnet/minecraft/class_1934;official mLgac;m()Ldkg;
-
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:
renderin interfaceDrawable- Overrides:
renderin classScreen- Mappings:
Namespace Name Mixin selector named renderLnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)Vintermediary method_25394Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)Vofficial aLfvb;a(Lftk;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 named renderBackgroundLnet/minecraft/client/gui/screen/Screen;renderBackground(Lnet/minecraft/client/gui/DrawContext;IIF)Vintermediary method_25420Lnet/minecraft/class_437;method_25420(Lnet/minecraft/class_332;IIF)Vofficial bLfzq;b(Lftk;IIF)V
-
apply
private void apply()- Mappings:
Namespace Name Mixin selector named applyLnet/minecraft/client/gui/screen/GameModeSwitcherScreen;apply()Vintermediary method_28068Lnet/minecraft/class_5289;method_28068()Vofficial ELgac;E()V
-
apply
private static void apply(MinecraftClient client, GameModeSwitcherScreen.GameModeSelection gameModeSelection) - Mappings:
Namespace Name Mixin selector named applyLnet/minecraft/client/gui/screen/GameModeSwitcherScreen;apply(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/client/gui/screen/GameModeSwitcherScreen$GameModeSelection;)Vintermediary method_28064Lnet/minecraft/class_5289;method_28064(Lnet/minecraft/class_310;Lnet/minecraft/class_5289$class_5290;)Vofficial aLgac;a(Lfqq;Lgac$a;)V
-
checkForClose
private boolean checkForClose()- Mappings:
Namespace Name Mixin selector named checkForCloseLnet/minecraft/client/gui/screen/GameModeSwitcherScreen;checkForClose()Zintermediary method_28069Lnet/minecraft/class_5289;method_28069()Zofficial FLgac;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 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 named keyPressedLnet/minecraft/client/gui/Element;keyPressed(III)Zintermediary method_25404Lnet/minecraft/class_364;method_25404(III)Zofficial aLfvv;a(III)Z
-
shouldPause
public boolean shouldPause()- Overrides:
shouldPausein classScreen- Mappings:
Namespace Name Mixin selector named shouldPauseLnet/minecraft/client/gui/screen/Screen;shouldPause()Zintermediary method_25421Lnet/minecraft/class_437;method_25421()Zofficial kLfzq;k()Z
-