类 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
-
- 所有已实现的接口:
Drawable,Element,ParentElement,TickableElement
@Environment(CLIENT) public class GameModeSelectionScreen extends Screen
- Mappings:
Namespace Name official eaaintermediary net/minecraft/class_5289named net/minecraft/client/gui/screen/GameModeSelectionScreen
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 classGameModeSelectionScreen.ButtonWidget(专用程序包) static classGameModeSelectionScreen.GameMode
-
字段概要
字段 修饰符和类型 字段 说明 private Optional<GameModeSelectionScreen.GameMode>currentGameModeprivate static intfield_32310private static intfield_32311private static intfield_32312private static intfield_32313private static intfield_32314private static intfield_32315private Optional<GameModeSelectionScreen.GameMode>gameModeprivate List<GameModeSelectionScreen.ButtonWidget>gameModeButtonsprivate intlastMouseXprivate intlastMouseYprivate booleanmouseUsedForSelectionprivate static TextSELECT_NEXT_TEXTprivate static IdentifierTEXTUREprivate static intUI_WIDTH-
从类继承的字段 net.minecraft.client.gui.screen.Screen
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, width
-
从类继承的字段 net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
-
-
构造器概要
构造器 构造器 说明 GameModeSelectionScreen()
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 private voidapply()private static voidapply(MinecraftClient client, Optional<GameModeSelectionScreen.GameMode> gameMode)private booleancheckForClose()private GameModegetPreviousGameMode()protected voidinit()Called when a screen should be initialized.booleanisPauseScreen()booleankeyPressed(int keyCode, int scanCode, int modifiers)Callback for when a key down event has been captured.voidrender(MatrixStack matrices, int mouseX, int mouseY, float delta)-
从类继承的方法 net.minecraft.client.gui.screen.Screen
addButton, addChild, children, filesDragged, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, onClose, removed, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, shouldCloseOnEsc, tick, wrapScreenError
-
从类继承的方法 net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocused
-
从类继承的方法 net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, method_33284, method_35719, method_35720, setZOffset
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 net.minecraft.client.gui.Element
mouseMoved
-
从接口继承的方法 net.minecraft.client.gui.ParentElement
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
-
-
-
字段详细资料
-
TEXTURE
private static final Identifier TEXTURE
- Mappings:
Namespace Name Mixin selector official aLeaa;a:Lwp;intermediary field_24566Lnet/minecraft/class_5289;field_24566:Lnet/minecraft/class_2960;named TEXTURELnet/minecraft/client/gui/screen/GameModeSelectionScreen;TEXTURE:Lnet/minecraft/util/Identifier;
-
field_32310
private static final int field_32310
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official bLeaa;b:Iintermediary field_32310Lnet/minecraft/class_5289;field_32310:Inamed field_32310Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;field_32310:I
-
field_32311
private static final int field_32311
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official cLeaa;c:Iintermediary field_32311Lnet/minecraft/class_5289;field_32311:Inamed field_32311Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;field_32311:I
-
field_32312
private static final int field_32312
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official pLeaa;p:Iintermediary field_32312Lnet/minecraft/class_5289;field_32312:Inamed field_32312Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;field_32312:I
-
field_32313
private static final int field_32313
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official qLeaa;q:Iintermediary field_32313Lnet/minecraft/class_5289;field_32313:Inamed field_32313Lnet/minecraft/client/gui/screen/GameModeSelectionScreen;field_32313:I
-
field_32314
private static final int field_32314
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official rLeaa;r: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
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official sLeaa;s: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 tLeaa;t:Iintermediary field_24567Lnet/minecraft/class_5289;field_24567:Inamed UI_WIDTHLnet/minecraft/client/gui/screen/GameModeSelectionScreen;UI_WIDTH:I
-
SELECT_NEXT_TEXT
private static final Text SELECT_NEXT_TEXT
- Mappings:
Namespace Name Mixin selector official uLeaa;u:Lon;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
private final Optional<GameModeSelectionScreen.GameMode> currentGameMode
- Mappings:
Namespace Name Mixin selector official vLeaa;v:Ljava/util/Optional;intermediary field_24568Lnet/minecraft/class_5289;field_24568:Ljava/util/Optional;named currentGameModeLnet/minecraft/client/gui/screen/GameModeSelectionScreen;currentGameMode:Ljava/util/Optional;
-
gameMode
private Optional<GameModeSelectionScreen.GameMode> gameMode
- Mappings:
Namespace Name Mixin selector official wLeaa;w:Ljava/util/Optional;intermediary field_24569Lnet/minecraft/class_5289;field_24569:Ljava/util/Optional;named gameModeLnet/minecraft/client/gui/screen/GameModeSelectionScreen;gameMode:Ljava/util/Optional;
-
lastMouseX
private int lastMouseX
- Mappings:
Namespace Name Mixin selector official xLeaa;x: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 yLeaa;y: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 zLeaa;z:Zintermediary field_24572Lnet/minecraft/class_5289;field_24572:Znamed mouseUsedForSelectionLnet/minecraft/client/gui/screen/GameModeSelectionScreen;mouseUsedForSelection:Z
-
gameModeButtons
private final List<GameModeSelectionScreen.ButtonWidget> gameModeButtons
- Mappings:
Namespace Name Mixin selector official ALeaa;A: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;
-
-
方法详细资料
-
getPreviousGameMode
private GameMode getPreviousGameMode()
- Mappings:
Namespace Name Mixin selector official iLeaa;i()Lbvo;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.
-
render
public void render(MatrixStack matrices, int mouseX, int mouseY, float delta)
- 指定者:
render在接口中Drawable- 覆盖:
render在类中Screen- Mappings:
Namespace Name Mixin selector official aLdws;a(Ldpi;IIF)Vintermediary method_25394Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_4587;IIF)Vnamed renderLnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-
apply
private void apply()
- Mappings:
Namespace Name Mixin selector official kLeaa;k()Vintermediary method_28068Lnet/minecraft/class_5289;method_28068()Vnamed applyLnet/minecraft/client/gui/screen/GameModeSelectionScreen;apply()V
-
apply
private static void apply(MinecraftClient client, Optional<GameModeSelectionScreen.GameMode> gameMode)
- Mappings:
Namespace Name Mixin selector official aLeaa;a(Ldum;Ljava/util/Optional;)Vintermediary method_28064Lnet/minecraft/class_5289;method_28064(Lnet/minecraft/class_310;Ljava/util/Optional;)Vnamed applyLnet/minecraft/client/gui/screen/GameModeSelectionScreen;apply(Lnet/minecraft/client/MinecraftClient;Ljava/util/Optional;)V
-
checkForClose
private boolean checkForClose()
- Mappings:
Namespace Name Mixin selector official lLeaa;l()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.- 指定者:
keyPressed在接口中Element- 指定者:
keyPressed在接口中ParentElement- 覆盖:
keyPressed在类中Screen- 参数:
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)- 返回:
trueto indicate that the event handling is successful/valid- 另请参阅:
Keyboard.onKey(long, int, int, int, int),GLFW.GLFW_KEY_Q,GLFWKeyCallbackI.invoke(long, int, int, int, int)- Mappings:
Namespace Name Mixin selector official aLdwv;a(III)Zintermediary method_25404Lnet/minecraft/class_364;method_25404(III)Znamed keyPressedLnet/minecraft/client/gui/Element;keyPressed(III)Z
-
isPauseScreen
public boolean isPauseScreen()
- 覆盖:
isPauseScreen在类中Screen- Mappings:
Namespace Name Mixin selector official aE_Ldzg;aE_()Zintermediary method_25421Lnet/minecraft/class_437;method_25421()Znamed isPauseScreenLnet/minecraft/client/gui/screen/Screen;isPauseScreen()Z
-
-