Class TabButton
java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.AbstractWidget.WithInactiveMessage
net.minecraft.client.gui.components.TabButton
- All Implemented Interfaces:
GuiEventListener, Renderable, TabOrderedElement, LayoutElement, NarratableEntry, NarrationSupplier
-
Nested Class Summary
Nested 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 WidgetSpritesprivate final Tabprivate final TabManagerprivate static final intprivate static final intprivate static final intprivate static final intFields inherited from class AbstractWidget
active, alpha, height, isHovered, message, packedFGColor, UNSET_FG_COLOR, visible, width -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidplayDownSound(SoundManager soundManager) private voidrenderFocusUnderline(GuiGraphics graphics, Font font, int color) private voidrenderLabel(ActiveTextCollector output) protected voidrenderMenuBackground(GuiGraphics graphics, int x0, int y0, int x1, int y1) voidrenderWidget(GuiGraphics graphics, int mouseX, int mouseY, float a) tab()protected voidMethods inherited from class AbstractWidget.WithInactiveMessage
defaultInactiveMessage, getMessage, setMessageMethods inherited from class AbstractWidget
clearFGColor, createNarrationMessage, defaultButtonNarrationText, getAlpha, getBottom, getFGColor, getHeight, getRectangle, getRight, getTabOrderGroup, getWidth, getX, getY, handleCursor, isActive, isFocused, isHovered, isHoveredOrFocused, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrationPriority, nextFocusPath, onClick, onDrag, onRelease, playButtonClickSound, render, renderScrollingStringOverContents, setAlpha, setFGColor, setFocused, setHeight, 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 GuiEventListener
charTyped, getBorderForArrowNavigation, getCurrentFocusPath, keyPressed, keyReleased, mouseMoved, mouseScrolled, shouldTakeFocusAfterInteractionMethods inherited from interface LayoutElement
setPositionMethods inherited from interface 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
-
renderLabel
-
renderFocusUnderline
-
updateWidgetNarration
- Specified by:
updateWidgetNarrationin classAbstractWidget
-
playDownSound
- Overrides:
playDownSoundin classAbstractWidget
-
tab
-
isSelected
public boolean isSelected()
-