Class WTabPanel.Tab

java.lang.Object
io.github.cottonmc.cotton.gui.widget.WTabPanel.Tab
Enclosing class:
WTabPanel

public static class WTabPanel.Tab extends Object
The data of a tab.
  • Method Details

    • getTitle

      @Nullable public @Nullable Text getTitle()
      Gets the title of this tab.
      Returns:
      the title, or null if there's no title
    • getIcon

      @Nullable public @Nullable Icon getIcon()
      Gets the icon of this tab.
      Returns:
      the icon, or null if there's no title
    • getWidget

      public WWidget getWidget()
      Gets the contained widget of this tab.
      Returns:
      the contained widget
    • addTooltip

      @Environment(CLIENT) public void addTooltip(TooltipBuilder tooltip)
      Adds this widget's tooltip to the tooltip builder.
      Parameters:
      tooltip - the tooltip builder