public static class WTabPanel.Tab
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
WTabPanel.Tab.Builder
A builder for tab data.
|
| Constructor and Description |
|---|
Tab(@Nullable net.minecraft.text.Text title,
@Nullable Icon icon,
WWidget widget,
@Nullable java.util.function.Consumer<TooltipBuilder> tooltip)
Deprecated.
Use
WTabPanel.Tab.Builder instead. |
| Modifier and Type | Method and Description |
|---|---|
void |
addTooltip(TooltipBuilder tooltip)
Adds this widget's tooltip to the
tooltip builder. |
@Nullable Icon |
getIcon()
Gets the icon of this tab.
|
@Nullable net.minecraft.text.Text |
getTitle()
Gets the title of this tab.
|
WWidget |
getWidget()
Gets the contained widget of this tab.
|
@Deprecated
public Tab(@Nullable
@Nullable net.minecraft.text.Text title,
@Nullable
@Nullable Icon icon,
WWidget widget,
@Nullable
@Nullable java.util.function.Consumer<TooltipBuilder> tooltip)
WTabPanel.Tab.Builder instead.title - the tab titleicon - the tab iconwidget - the widget contained in the tabtooltip - the tab tooltipjava.lang.IllegalArgumentException - if both the title and the icon are nulljava.lang.NullPointerException - if the widget is null@Nullable public @Nullable net.minecraft.text.Text getTitle()
@Nullable public @Nullable Icon getIcon()
public WWidget getWidget()
@Environment(value=CLIENT) public void addTooltip(TooltipBuilder tooltip)
tooltip builder.tooltip - the tooltip builder