类 TabNavigationBar
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.components.tabs.TabNavigationBar
- 所有已实现的接口:
ContainerEventHandler
,GuiEventListener
,Renderable
,TabOrderedElement
,NarratableEntry
,NarrationSupplier
public class TabNavigationBar
extends AbstractContainerEventHandler
implements Renderable, GuiEventListener, NarratableEntry
-
嵌套类概要
嵌套类从接口继承的嵌套类/接口 net.minecraft.client.gui.narration.NarratableEntry
NarratableEntry.NarrationPriority
-
字段概要
字段修饰符和类型字段说明private static final int
private final GridLayout
private static final int
private static final int
private static final int
private final com.google.common.collect.ImmutableList<TabButton>
private final TabManager
private final com.google.common.collect.ImmutableList<Tab>
private static final Component
private int
从接口继承的字段 net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
static TabNavigationBar.Builder
builder
(TabManager pTabManager, int pWidth) List<? extends GuiEventListener>
children()
private @Nullable TabButton
private int
private int
getNextTabIndex
(int pKeycode) boolean
keyPressed
(int pKeycode) protected void
narrateListElementPosition
(NarrationElementOutput pNarrationElementOutput, TabButton pTabButton) @Nullable ComponentPath
nextFocusPath
(FocusNavigationEvent pEvent) void
render
(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick) void
selectTab
(int pIndex, boolean pPlayClickSound) void
setFocused
(boolean pFocused) void
setFocused
(@Nullable GuiEventListener pListener) void
setWidth
(int pWidth) void
updateNarration
(NarrationElementOutput pNarrationElementOutput) 从类继承的方法 net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging
从类继承的方法 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, keyPressed, keyReleased, magicalSpecialHackyFocus, mouseClicked, mouseDragged, mouseReleased, mouseScrolled
从接口继承的方法 net.minecraft.client.gui.components.events.GuiEventListener
isMouseOver, mouseMoved
从接口继承的方法 net.minecraft.client.gui.narration.NarratableEntry
isActive
从接口继承的方法 net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
字段详细资料
-
构造器详细资料
-
TabNavigationBar
TabNavigationBar(int pWidth, TabManager pTabManager, Iterable<Tab> pTabs)
-
-
方法详细资料
-
builder
-
setWidth
public void setWidth(int pWidth) -
setFocused
public void setFocused(boolean pFocused) - 指定者:
setFocused
在接口中ContainerEventHandler
- 指定者:
setFocused
在接口中GuiEventListener
-
setFocused
- 指定者:
setFocused
在接口中ContainerEventHandler
- 覆盖:
setFocused
在类中AbstractContainerEventHandler
-
children
- 指定者:
children
在接口中ContainerEventHandler
-
narrationPriority
- 指定者:
narrationPriority
在接口中NarratableEntry
-
updateNarration
- 指定者:
updateNarration
在接口中NarrationSupplier
-
narrateListElementPosition
protected void narrateListElementPosition(NarrationElementOutput pNarrationElementOutput, TabButton pTabButton) -
render
- 指定者:
render
在接口中Renderable
-
getRectangle
- 指定者:
getRectangle
在接口中GuiEventListener
-
arrangeElements
public void arrangeElements() -
selectTab
public void selectTab(int pIndex, boolean pPlayClickSound) -
keyPressed
public boolean keyPressed(int pKeycode) -
getNextTabIndex
private int getNextTabIndex(int pKeycode) -
currentTabIndex
private int currentTabIndex() -
currentTabButton
-