Class TabButton
java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.TabButton
- All Implemented Interfaces:
GuiEventListener,Renderable,TabOrderedElement,LayoutElement,NarratableEntry,NarrationSupplier
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry
NarratableEntry.NarrationPriority -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final WidgetSpritesprivate final Tabprivate final TabManagerprivate static final intprivate static final intprivate static final intprivate static final intFields inherited from class net.minecraft.client.gui.components.AbstractWidget
active, alpha, height, isHovered, packedFGColor, UNSET_FG_COLOR, visible, width -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidplayDownSound(SoundManager p_276302_) private voidrenderFocusUnderline(GuiGraphics pGuiGraphics, Font pFont, int pColor) protected voidrenderMenuBackground(GuiGraphics pGuiGraphics, int pMinX, int pMinY, int pMaxX, int pMaxY) voidrenderString(GuiGraphics pGuiGraphics, Font pFont, int pColor) voidrenderWidget(GuiGraphics p_283350_, int p_283437_, int p_281595_, float p_282117_) tab()protected voidupdateWidgetNarration(NarrationElementOutput p_275465_) Methods inherited from class net.minecraft.client.gui.components.AbstractWidget
clearFGColor, createNarrationMessage, defaultButtonNarrationText, getBottom, getFGColor, getHeight, getMessage, getRectangle, getRight, getTabOrderGroup, getWidth, getX, getY, isActive, isFocused, isHovered, isHoveredOrFocused, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrationPriority, nextFocusPath, onClick, onDrag, onRelease, playButtonClickSound, render, renderScrollingString, renderScrollingString, renderScrollingString, setAlpha, setFGColor, setFocused, setHeight, setMessage, setRectangle, setSize, setTabOrderGroup, setTooltip, setTooltipDelay, setWidth, setX, setY, updateNarration, visitWidgets, wrapDefaultNarrationMessageMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
charTyped, getBorderForArrowNavigation, getCurrentFocusPath, keyPressed, keyReleased, mouseMoved, mouseScrolled, shouldTakeFocusAfterInteractionMethods inherited from interface net.minecraft.client.gui.layouts.LayoutElement
setPositionMethods inherited from interface net.minecraft.client.gui.narration.NarratableEntry
getNarratables
-
Field Details
-
SPRITES
-
SELECTED_OFFSET
private static final int SELECTED_OFFSET- See Also:
-
TEXT_MARGIN
private static final int TEXT_MARGIN- See Also:
-
UNDERLINE_HEIGHT
private static final int UNDERLINE_HEIGHT- See Also:
-
UNDERLINE_MARGIN_X
private static final int UNDERLINE_MARGIN_X- See Also:
-
UNDERLINE_MARGIN_BOTTOM
private static final int UNDERLINE_MARGIN_BOTTOM- See Also:
-
tabManager
-
tab
-
-
Constructor Details
-
TabButton
-
-
Method Details
-
renderWidget
- Specified by:
renderWidgetin classAbstractWidget
-
renderMenuBackground
protected void renderMenuBackground(GuiGraphics pGuiGraphics, int pMinX, int pMinY, int pMaxX, int pMaxY) -
renderString
-
renderFocusUnderline
-
updateWidgetNarration
- Specified by:
updateWidgetNarrationin classAbstractWidget
-
playDownSound
- Overrides:
playDownSoundin classAbstractWidget
-
tab
-
isSelected
public boolean isSelected()
-