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 TypeMethodDescriptionprivate voidextractFocusUnderline(GuiGraphicsExtractor graphics, Font font, int color) private voidextractLabel(ActiveTextCollector output) protected voidextractMenuBackground(GuiGraphicsExtractor graphics, int x0, int y0, int x1, int y1) voidextractWidgetRenderState(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a) booleanvoidplayDownSound(SoundManager soundManager) tab()protected voidMethods inherited from class AbstractWidget.WithInactiveMessage
defaultInactiveMessage, getMessage, setMessageMethods inherited from class AbstractWidget
clearFGColor, createNarrationMessage, defaultButtonNarrationText, extractRenderState, extractScrollingStringOverContents, 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, 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, preeditUpdated, 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
-
extractWidgetRenderState
public void extractWidgetRenderState(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a) - Specified by:
extractWidgetRenderStatein classAbstractWidget
-
extractMenuBackground
-
extractLabel
-
extractFocusUnderline
-
updateWidgetNarration
- Specified by:
updateWidgetNarrationin classAbstractWidget
-
playDownSound
- Overrides:
playDownSoundin classAbstractWidget
-
tab
-
isSelected
public boolean isSelected()
-