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,TickableElement
@Environment(CLIENT) public class GameModeSelectionScreen extends Screen
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classGameModeSelectionScreen.ButtonWidget(package private) static classGameModeSelectionScreen.GameMode -
Field Summary
Fields Modifier and Type Field Description private Optional<GameModeSelectionScreen.GameMode>currentGameModeprivate static Textfield_25454private Optional<GameModeSelectionScreen.GameMode>gameModeprivate List<GameModeSelectionScreen.ButtonWidget>gameModeButtonsprivate intlastMouseXprivate intlastMouseYprivate booleanmouseUsedForSelectionprivate static IdentifierTEXTUREprivate static intUI_WIDTHFields inherited from class net.minecraft.client.gui.screen.Screen
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, widthFields inherited from class net.minecraft.client.gui.DrawableHelper
BACKGROUND_TEXTURE, GUI_ICONS_TEXTURE, STATS_ICON_TEXTURE -
Constructor Summary
Constructors Constructor Description GameModeSelectionScreen() -
Method Summary
Modifier and Type Method Description private voidapply()private static voidapply(MinecraftClient client, Optional<GameModeSelectionScreen.GameMode> gameMode)private booleancheckForClose()protected voidinit()booleanisPauseScreen()booleankeyPressed(int keyCode, int scanCode, int modifiers)private GameModemethod_30106()voidrender(MatrixStack matrices, int mouseX, int mouseY, float delta)Methods inherited from class net.minecraft.client.gui.screen.Screen
addButton, addChild, children, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, method_29638, onClose, removed, renderBackground, renderBackground, renderBackgroundTexture, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, shouldCloseOnEsc, tick, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffsetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.ParentElement
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
Field Details
-
TEXTURE
-
UI_WIDTH
private static final int UI_WIDTH -
field_25454
-
currentGameMode
-
gameMode
-
lastMouseX
private int lastMouseX -
lastMouseY
private int lastMouseY -
mouseUsedForSelection
private boolean mouseUsedForSelection -
gameModeButtons
-
-
Constructor Details
-
GameModeSelectionScreen
public GameModeSelectionScreen()
-
-
Method Details
-
method_30106
-
init
protected void init() -
render
-
apply
private void apply() -
apply
private static void apply(MinecraftClient client, Optional<GameModeSelectionScreen.GameMode> gameMode) -
checkForClose
private boolean checkForClose() -
keyPressed
public boolean keyPressed(int keyCode, int scanCode, int modifiers)- Specified by:
keyPressedin interfaceElement- Specified by:
keyPressedin interfaceParentElement- Overrides:
keyPressedin classScreen
-
isPauseScreen
public boolean isPauseScreen()- Overrides:
isPauseScreenin classScreen
-