public static final class WTabPanel.Tab.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder(WWidget widget)
Constructs a new tab data builder.
|
| Modifier and Type | Method and Description |
|---|---|
WTabPanel.Tab |
build()
Builds a tab from this builder.
|
WTabPanel.Tab.Builder |
icon(Icon icon)
Sets the tab icon.
|
WTabPanel.Tab.Builder |
title(net.minecraft.text.Text title)
Sets the tab title.
|
WTabPanel.Tab.Builder |
tooltip(java.util.Collection<? extends net.minecraft.text.Text> lines)
Adds lines to the tab's tooltip.
|
WTabPanel.Tab.Builder |
tooltip(net.minecraft.text.Text... lines)
Adds lines to the tab's tooltip.
|
public Builder(WWidget widget)
widget - the contained widgetjava.lang.NullPointerException - if the widget is nullpublic WTabPanel.Tab.Builder title(net.minecraft.text.Text title)
title - the new titlejava.lang.NullPointerException - if the title is nullpublic WTabPanel.Tab.Builder icon(Icon icon)
icon - the new iconjava.lang.NullPointerException - if the icon is nullpublic WTabPanel.Tab.Builder tooltip(net.minecraft.text.Text... lines)
lines - the added linesjava.lang.NullPointerException - if the line array is nullpublic WTabPanel.Tab.Builder tooltip(java.util.Collection<? extends net.minecraft.text.Text> lines)
lines - the added linesjava.lang.NullPointerException - if the line collection is nullpublic WTabPanel.Tab build()