Class MenuTabBar
java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.AbstractScrollArea
net.minecraft.client.gui.components.AbstractContainerWidget
net.minecraft.client.gui.components.tabs.TabNavigationBar
net.minecraft.client.gui.components.tabs.MenuTabBar
- All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement, LayoutElement, NarratableEntry, NarrationSupplier
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from class AbstractScrollArea
AbstractScrollArea.ScrollbarSettingsNested classes/interfaces inherited from class AbstractWidget
AbstractWidget.WithInactiveMessageNested classes/interfaces inherited from interface NarratableEntry
NarratableEntry.NarrationPriority -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intprivate static final intFields inherited from class TabNavigationBar
layout, tabButtons, tabsFields inherited from class AbstractScrollArea
SCROLLBAR_WIDTHFields inherited from class AbstractWidget
active, alpha, height, isHovered, message, packedFGColor, UNSET_FG_COLOR, visible, width -
Constructor Summary
ConstructorsConstructorDescriptionMenuTabBar(int x, int y, int width, int height, TabManager tabManager, ImmutableList<TabButton> tabButtons, ImmutableList<Tab> tabs) -
Method Summary
Modifier and TypeMethodDescriptionvoidarrangeElements(int width) static MenuTabBar.Builderbuilder(TabManager tabManager, int width) protected voidextractWidgetRenderState(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a) Methods inherited from class TabNavigationBar
builder, children, contentHeight, getRectangle, getTabs, isMouseOver, keyPressed, narrateListElementPosition, narrationPriority, nextFocusPath, selectTab, setFocused, setFocused, setTabActiveState, setTabTooltip, updateWidgetNarrationMethods inherited from class AbstractContainerWidget
getFocused, isDragging, isFocused, mouseClicked, mouseDragged, mouseReleased, setDraggingMethods inherited from class AbstractScrollArea
defaultSettings, extractScrollbar, isOverScrollbar, maxScrollAmount, mouseScrolled, onRelease, refreshScrollAmount, scrollable, scrollAmount, scrollbarWidth, scrollBarX, scrollBarY, scrollerHeight, scrollRate, setScrollAmount, updateScrollingMethods inherited from class AbstractWidget
clearFGColor, createNarrationMessage, defaultButtonNarrationText, extractRenderState, extractScrollingStringOverContents, extractTooltipForNextRenderPass, getAlpha, getBottom, getFGColor, getHeight, getMessage, getRight, getTabOrderGroup, getWidth, getX, getY, handleCursor, isActive, isHovered, isHoveredOrFocused, isValidClickButton, onClick, onDrag, playButtonClickSound, playDownSound, setAlpha, setFGColor, setHeight, setMessage, setRectangle, setSize, setTabOrderGroup, setTooltip, setTooltipDelay, setWidth, setX, setY, updateNarration, visitWidgets, wrapDefaultNarrationMessageMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContainerEventHandler
charTyped, getBorderForArrowNavigation, getChildAt, getCurrentFocusPath, keyReleased, mouseScrolled, preeditUpdatedMethods inherited from interface GuiEventListener
mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface LayoutElement
setPositionMethods inherited from interface NarratableEntry
getNarratables, isActiveMethods inherited from interface NarrationSupplier
updateNarrationMethods inherited from interface Renderable
extractRenderStateMethods inherited from interface TabOrderedElement
getTabOrderGroup
-
Field Details
-
HEIGHT
private static final int HEIGHT- See Also:
-
MAX_WIDTH
private static final int MAX_WIDTH- See Also:
-
MARGIN
private static final int MARGIN- See Also:
-
-
Constructor Details
-
MenuTabBar
public MenuTabBar(int x, int y, int width, int height, TabManager tabManager, ImmutableList<TabButton> tabButtons, ImmutableList<Tab> tabs)
-
-
Method Details
-
builder
-
extractWidgetRenderState
protected void extractWidgetRenderState(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a) - Overrides:
extractWidgetRenderStatein classTabNavigationBar
-
arrangeElements
public void arrangeElements(int width) - Overrides:
arrangeElementsin classTabNavigationBar
-