类 GameModeSwitcherScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.debug.GameModeSwitcherScreen
- 所有已实现的接口:
ContainerEventHandler
,GuiEventListener
,Renderable
,TabOrderedElement
-
嵌套类概要
嵌套类修饰符和类型类说明(专用程序包) static enum
static class
从类继承的嵌套类/接口 net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult
-
字段概要
字段修饰符和类型字段说明private static final int
private int
private int
private static final ResourceLocation
private static final int
private final GameModeSwitcherScreen.GameModeIcon
private static final Component
(专用程序包) static final ResourceLocation
private boolean
private static final int
private static final int
private static final int
(专用程序包) static final ResourceLocation
private final List
<GameModeSwitcherScreen.GameModeSlot> private static final int
private static final int
从类继承的字段 net.minecraft.client.gui.screens.Screen
CUBE_MAP, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, PANORAMA, renderables, screenExecutor, title, width
从接口继承的字段 net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private boolean
private GameType
protected void
init()
boolean
boolean
keyPressed
(int p_97553_, int p_97554_, int p_97555_) void
render
(GuiGraphics p_281834_, int p_283223_, int p_282178_, float p_281339_) void
renderBackground
(GuiGraphics p_300820_, int p_297775_, int p_300982_, float p_298921_) private void
private static void
switchToHoveredGameMode
(Minecraft p_281340_, GameModeSwitcherScreen.GameModeIcon p_281358_) 从类继承的方法 net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearFocus, clearTooltipForNextRenderPass, clearWidgets, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, onClose, onFilesDrop, rebuildWidgets, removed, removeWidget, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, showsActiveEffects, tick, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatus
从类继承的方法 net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocused
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocused
从接口继承的方法 net.minecraft.client.gui.components.events.GuiEventListener
getBorderForArrowNavigation, mouseMoved
从接口继承的方法 net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
字段详细资料
-
SLOT_SPRITE
-
SELECTION_SPRITE
-
GAMEMODE_SWITCHER_LOCATION
-
SPRITE_SHEET_WIDTH
private static final int SPRITE_SHEET_WIDTH- 另请参阅:
-
SPRITE_SHEET_HEIGHT
private static final int SPRITE_SHEET_HEIGHT- 另请参阅:
-
SLOT_AREA
private static final int SLOT_AREA- 另请参阅:
-
SLOT_PADDING
private static final int SLOT_PADDING- 另请参阅:
-
SLOT_AREA_PADDED
private static final int SLOT_AREA_PADDED- 另请参阅:
-
HELP_TIPS_OFFSET_Y
private static final int HELP_TIPS_OFFSET_Y- 另请参阅:
-
ALL_SLOTS_WIDTH
private static final int ALL_SLOTS_WIDTH -
SELECT_KEY
-
previousHovered
-
currentlyHovered
-
firstMouseX
private int firstMouseX -
firstMouseY
private int firstMouseY -
setFirstMousePos
private boolean setFirstMousePos -
slots
-
-
构造器详细资料
-
GameModeSwitcherScreen
public GameModeSwitcherScreen()
-
-
方法详细资料
-
getDefaultSelected
-
init
protected void init() -
render
- 指定者:
render
在接口中Renderable
- 覆盖:
render
在类中Screen
-
renderBackground
- 覆盖:
renderBackground
在类中Screen
-
switchToHoveredGameMode
private void switchToHoveredGameMode() -
switchToHoveredGameMode
private static void switchToHoveredGameMode(Minecraft p_281340_, GameModeSwitcherScreen.GameModeIcon p_281358_) -
checkToClose
private boolean checkToClose() -
keyPressed
public boolean keyPressed(int p_97553_, int p_97554_, int p_97555_) - 指定者:
keyPressed
在接口中ContainerEventHandler
- 指定者:
keyPressed
在接口中GuiEventListener
- 覆盖:
keyPressed
在类中Screen
-
isPauseScreen
public boolean isPauseScreen()- 覆盖:
isPauseScreen
在类中Screen
-