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
Modifier and TypeFieldDescriptionprivate static final int
private final Tab
private final TabManager
private static final int
private static final int
private static final int
private static final int
private static final ResourceLocation
private static final int
private static final int
private static final int
private static final int
Fields inherited from class net.minecraft.client.gui.components.AbstractWidget
ACCESSIBILITY_TEXTURE, active, alpha, height, isHovered, packedFGColor, UNSET_FG_COLOR, visible, WIDGETS_LOCATION, width
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
ConstructorDescriptionTabButton
(TabManager p_275399_, Tab p_275391_, int p_275340_, int p_275364_) -
Method Summary
Modifier and TypeMethodDescriptionprotected int
boolean
void
playDownSound
(SoundManager p_276302_) private void
renderFocusUnderline
(GuiGraphics p_282383_, Font p_275475_, int p_275367_) void
renderString
(GuiGraphics p_282917_, Font p_275208_, int p_275293_) void
renderWidget
(GuiGraphics p_283350_, int p_283437_, int p_281595_, float p_282117_) tab()
protected void
updateWidgetNarration
(NarrationElementOutput p_275465_) Methods inherited from class net.minecraft.client.gui.components.AbstractWidget
clearFGColor, clicked, createNarrationMessage, createTooltipPositioner, defaultButtonNarrationText, getFGColor, getHeight, getMessage, getRectangle, getTabOrderGroup, getTooltip, getWidth, getX, getY, isActive, isFocused, isHovered, isHoveredOrFocused, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrationPriority, nextFocusPath, onClick, onDrag, onRelease, render, renderScrollingString, renderScrollingString, renderTexture, setAlpha, setFGColor, setFocused, setHeight, setMessage, setTabOrderGroup, setTooltip, setTooltipDelay, setWidth, setX, setY, updateNarration, visitWidgets, wrapDefaultNarrationMessage
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
charTyped, getCurrentFocusPath, keyPressed, keyReleased, mouseMoved, mouseScrolled
Methods inherited from interface net.minecraft.client.gui.layouts.LayoutElement
setPosition
-
Field Details
-
TEXTURE_LOCATION
-
TEXTURE_WIDTH
private static final int TEXTURE_WIDTH- See Also:
-
TEXTURE_HEIGHT
private static final int TEXTURE_HEIGHT- See Also:
-
TEXTURE_BORDER
private static final int TEXTURE_BORDER- See Also:
-
TEXTURE_BORDER_BOTTOM
private static final int TEXTURE_BORDER_BOTTOM- See Also:
-
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:
renderWidget
in classAbstractWidget
-
renderString
-
renderFocusUnderline
-
getTextureY
protected int getTextureY() -
updateWidgetNarration
- Specified by:
updateWidgetNarration
in classAbstractWidget
-
playDownSound
- Overrides:
playDownSound
in classAbstractWidget
-
tab
-
isSelected
public boolean isSelected()
-