Class SelectStatsTabWidget
java.lang.Object
io.github.thecsdev.tcdcommons.api.client.gui.TElement
io.github.thecsdev.tcdcommons.api.client.gui.widget.TClickableWidget
io.github.thecsdev.tcdcommons.api.client.gui.widget.TButtonWidget
io.github.thecsdev.tcdcommons.api.client.gui.widget.TSelectWidget<SelectStatsTabWidget.StatsTabEntry>
io.github.thecsdev.betterstats.api.client.gui.widget.SelectStatsTabWidget
- All Implemented Interfaces:
io.github.thecsdev.tcdcommons.api.client.gui.TParentElement
,io.github.thecsdev.tcdcommons.api.client.util.interfaces.ITooltipProvider
,io.github.thecsdev.tcdcommons.api.util.interfaces.IEnableStateProvider
,io.github.thecsdev.tcdcommons.api.util.interfaces.IEnableStateProviderSetter
,io.github.thecsdev.tcdcommons.api.util.interfaces.ITextProvider
,io.github.thecsdev.tcdcommons.api.util.interfaces.ITextProviderSetter
,Iterable<SelectStatsTabWidget.StatsTabEntry>
public class SelectStatsTabWidget
extends io.github.thecsdev.tcdcommons.api.client.gui.widget.TSelectWidget<SelectStatsTabWidget.StatsTabEntry>
-
Nested Class Summary
Nested classes/interfaces inherited from class io.github.thecsdev.tcdcommons.api.client.gui.widget.TSelectWidget
io.github.thecsdev.tcdcommons.api.client.gui.widget.TSelectWidget.Entry, io.github.thecsdev.tcdcommons.api.client.gui.widget.TSelectWidget.SimpleEntry, io.github.thecsdev.tcdcommons.api.client.gui.widget.TSelectWidget.TSelectWidgetEvent_SelectionChanged<T extends io.github.thecsdev.tcdcommons.api.client.gui.widget.TSelectWidget.Entry>
Nested classes/interfaces inherited from class io.github.thecsdev.tcdcommons.api.client.gui.widget.TClickableWidget
io.github.thecsdev.tcdcommons.api.client.gui.widget.TClickableWidget.TClickableWidgetEvent_Clicked
Nested classes/interfaces inherited from class io.github.thecsdev.tcdcommons.api.client.gui.TElement
io.github.thecsdev.tcdcommons.api.client.gui.TElement.TElementEvent_ChildAR, io.github.thecsdev.tcdcommons.api.client.gui.TElement.TElementEvent_ContextMenu, io.github.thecsdev.tcdcommons.api.client.gui.TElement.TElementEvent_Moved, io.github.thecsdev.tcdcommons.api.client.gui.TElement.TElementEvent_ParentChanged, io.github.thecsdev.tcdcommons.api.client.gui.TElement.TElementEvent_Resized
-
Field Summary
Fields inherited from class io.github.thecsdev.tcdcommons.api.client.gui.widget.TSelectWidget
contextMenu, DEFAULT_LABEL, ehContextMenu, entries, entryType, eSelectionChanged, selected, TEX_CLOSED, TEX_OPENED
Fields inherited from class io.github.thecsdev.tcdcommons.api.client.gui.widget.TButtonWidget
icon, iconColor, onClick, text
Fields inherited from class io.github.thecsdev.tcdcommons.api.client.gui.widget.TClickableWidget
BUTTON_TEXTURE_SLICE_SIZE, BUTTON_TEXTURES, eClicked, enabled, T_WIDGETS_TEXTURE
Fields inherited from class io.github.thecsdev.tcdcommons.api.client.gui.TElement
alpha, eChildAdded, eChildRemoved, eContextMenu, eMoved, eParentChanged, eResized, height, SP_ALL, SP_INVOKE_EVENT, SP_MOVE_CHILDREN, SP_RELATIVE, SP_UPDATE_TOPMOST, SS_ALL, SS_INVOKE_EVENT, SS_UPDATE_TOPMOST, tooltip, tooltipPositioner, width, x, y, zOffset
Fields inherited from interface io.github.thecsdev.tcdcommons.api.client.gui.TParentElement
MAX_CHILD_NESTING_DEPTH
-
Constructor Summary
ConstructorDescriptionSelectStatsTabWidget
(int x, int y, int width, int height) SelectStatsTabWidget
(int x, int y, int width, int height, net.minecraft.text.Text text) -
Method Summary
Modifier and TypeMethodDescriptionReturns aSelectStatsTabWidget.StatsTabEntry
that is associated with a givenStatsTab
value.final void
setSelected
(StatsTab statsTab) Sets the selectedSelectStatsTabWidget.StatsTabEntry
using itsStatsTab
value.Methods inherited from class io.github.thecsdev.tcdcommons.api.client.gui.widget.TSelectWidget
addEntry, createContextMenu, getEntryType, getSelected, iterator, onClick, onSelectionChanged, removeEntry, render, setSelected, setSelected, tick
Methods inherited from class io.github.thecsdev.tcdcommons.api.client.gui.widget.TButtonWidget
getIcon, getIconColor, getOnClick, getText, renderBackground, renderIcon, setIcon, setIconColor, setIconColor, setOnClick, setText
Methods inherited from class io.github.thecsdev.tcdcommons.api.client.gui.widget.TClickableWidget
click, getEnabled, input, isFocusable, setEnabled
Methods inherited from class io.github.thecsdev.tcdcommons.api.client.gui.TElement
canBeAddedTo, getAlpha, getChildren, getHeight, getItemRenderer, getParent, getParentTElement, getParentTScreen, getTextRenderer, getTooltip, getTooltipPositioner, getWidth, getX, getY, getZIndex, getZOffset, isDragging, isEnabled, isEnabledAndVisible, isFocused, isFocusedOrHovered, isHoverable, isHovered, isVisible, move, moveChildren, next, postRender, previous, setAlpha, setPosition, setPosition, setSize, setSize, setTooltip, setZOffset, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface io.github.thecsdev.tcdcommons.api.client.gui.TParentElement
addChild, addChild, clearChildren, findChild, findLastChild, findParent, findParentTElement, forEachChild, getEndX, getEndY, input, removeChild, removeChild
-
Constructor Details
-
SelectStatsTabWidget
public SelectStatsTabWidget(int x, int y, int width, int height) -
SelectStatsTabWidget
public SelectStatsTabWidget(int x, int y, int width, int height, net.minecraft.text.Text text)
-
-
Method Details
-
entryOf
Returns aSelectStatsTabWidget.StatsTabEntry
that is associated with a givenStatsTab
value. Will returnnull
if no suchSelectStatsTabWidget.StatsTabEntry
exists or was removed. -
setSelected
Sets the selectedSelectStatsTabWidget.StatsTabEntry
using itsStatsTab
value.- Throws:
NoSuchElementException
- If thisSelectStatsTabWidget
does not have aSelectStatsTabWidget.StatsTabEntry
that corresponds with the givenStatsTab
value.- See Also:
-