net.minecraft.client.gui.screen

public class GameModeSwitcherScreen

extends Screen

All mapped superinterfaces:

ParentElement, Element, Navigable, Drawable

net.minecraft.client.gui.screens.debug.GameModeSwitcherScreen
net.minecraft.client.gui.screens.debug.GameModeSwitcherScreen
net.minecraft.class_5289
net.minecraft.client.gui.screen.GameModeSwitcherScreen

Field summary

Modifier and TypeField
private static final Identifier
SLOT_SPRITE
SLOT_SPRITE
field_45432
SLOT_TEXTURE
private static final Identifier
SELECTION_SPRITE
SELECTION_SPRITE
field_45433
SELECTION_TEXTURE
private static final Identifier
GAMEMODE_SWITCHER_LOCATION
GAMEMODE_SWITCHER_LOCATION
field_24566
TEXTURE
private static final int
SPRITE_SHEET_WIDTH
SPRITE_SHEET_WIDTH
field_32310
TEXTURE_WIDTH
private static final int
SPRITE_SHEET_HEIGHT
SPRITE_SHEET_HEIGHT
field_32311
TEXTURE_HEIGHT
private static final int
SLOT_AREA
SLOT_AREA
field_32312
BUTTON_SIZE
private static final int
SLOT_PADDING
SLOT_PADDING
field_32313
ICON_OFFSET
private static final int
SLOT_AREA_PADDED
SLOT_AREA_PADDED
field_32314
field_32314
private static final int
HELP_TIPS_OFFSET_Y
HELP_TIPS_OFFSET_Y
field_32315
field_32315
private static final int
ALL_SLOTS_WIDTH
ALL_SLOTS_WIDTH
field_24567
UI_WIDTH
private final GameModeSwitcherScreen$GameModeSelection
previousHovered
previousHovered
field_24568
currentGameMode
private GameModeSwitcherScreen$GameModeSelection
currentlyHovered
currentlyHovered
field_24569
gameMode
private int
firstMouseX
firstMouseX
field_24570
lastMouseX
private int
firstMouseY
firstMouseY
field_24571
lastMouseY
private boolean
setFirstMousePos
setFirstMousePos
field_24572
mouseUsedForSelection
private final List<GameModeSwitcherScreen$ButtonWidget>
slots
slots
field_24573
gameModeButtons

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
private GameMode
getDefaultSelected()
getDefaultSelected()
method_30106()
getPreviousGameMode()
protected void
init()
init()
method_25426()
init()
public void
extractRenderState(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a)
extractRenderState(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a)
method_25394(class_332 arg0, int arg1, int arg2, float arg3)
render(DrawContext arg0, int arg1, int arg2, float arg3)
public void
extractBackground(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a)
extractBackground(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a)
method_25420(class_332 arg0, int arg1, int arg2, float arg3)
renderBackground(DrawContext arg0, int arg1, int arg2, float arg3)
private void
switchToHoveredGameMode()
switchToHoveredGameMode()
method_28068()
apply()
private static void
switchToHoveredGameMode(Minecraft minecraft, GameModeSwitcherScreen$GameModeIcon toGameMode)
switchToHoveredGameMode(Minecraft minecraft, GameModeSwitcherScreen$GameModeIcon toGameMode)
method_28064(class_310 arg0, class_5289$class_5290 arg1)
apply(MinecraftClient client, GameModeSwitcherScreen$GameModeSelection gameModeSelection)
public boolean
keyPressed(KeyEvent event)
keyPressed(KeyEvent event)
method_25404(class_11908 arg0)
keyPressed(KeyInput arg0)
public boolean
keyReleased(KeyEvent event)
keyReleased(KeyEvent event)
method_16803(class_11908 arg0)
keyReleased(KeyInput arg0)
public boolean
mouseReleased(MouseButtonEvent event)
mouseReleased(MouseButtonEvent event)
method_25406(class_11909 arg0)
mouseReleased(Click arg0)
public boolean
isPauseScreen()
isPauseScreen()
method_25421()
shouldPause()