Class TooltipBuilder

java.lang.Object
io.github.cottonmc.cotton.gui.widget.TooltipBuilder

@Environment(CLIENT) public final class TooltipBuilder extends Object
A builder for widget tooltips.
Since:
3.0.0
  • Constructor Details

    • TooltipBuilder

      public TooltipBuilder()
  • Method Details

    • add

      public TooltipBuilder add(Text... lines)
      Adds the lines to this builder.
      Parameters:
      lines - the lines
      Returns:
      this builder
    • add

      public TooltipBuilder add(OrderedText... lines)
      Adds the lines to this builder.
      Parameters:
      lines - the lines
      Returns:
      this builder