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
,IAbstractWidgetExtension
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry
NarratableEntry.NarrationPriority
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private static final WidgetSprites
private final Tab
private final TabManager
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
active, alpha, height, isHovered, packedFGColor, UNSET_FG_COLOR, visible, width
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
playDownSound
(SoundManager pHandler) private void
renderFocusUnderline
(GuiGraphics pGuiGraphics, Font pFont, int pColor) protected void
renderMenuBackground
(GuiGraphics pGuiGraphics, int pMinX, int pMinY, int pMaxX, int pMaxY) void
renderString
(GuiGraphics pGuiGraphics, Font pFont, int pColor) void
renderWidget
(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick) tab()
protected void
updateWidgetNarration
(NarrationElementOutput pNarrationElementOutput) Methods inherited from class net.minecraft.client.gui.components.AbstractWidget
clearFGColor, clicked, createNarrationMessage, defaultButtonNarrationText, getBottom, getFGColor, getHeight, getMessage, getRectangle, getRight, getTabOrderGroup, getTooltip, getWidth, getX, getY, isActive, isFocused, isHovered, isHoveredOrFocused, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrationPriority, nextFocusPath, onClick, onDrag, onRelease, render, renderScrollingString, renderScrollingString, renderScrollingString, setAlpha, setFGColor, setFocused, setHeight, setMessage, setRectangle, setSize, 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.neoforged.neoforge.client.extensions.IAbstractWidgetExtension
onClick
Methods inherited from interface net.minecraft.client.gui.layouts.LayoutElement
setPosition
-
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:
renderWidget
in classAbstractWidget
-
renderMenuBackground
protected void renderMenuBackground(GuiGraphics pGuiGraphics, int pMinX, int pMinY, int pMaxX, int pMaxY) -
renderString
-
renderFocusUnderline
-
updateWidgetNarration
- Specified by:
updateWidgetNarration
in classAbstractWidget
-
playDownSound
- Overrides:
playDownSound
in classAbstractWidget
-
tab
-
isSelected
public boolean isSelected()
-