Class WidgetWithTextBuilder<B extends WidgetBuilder<B,T>,T extends AbstractWidget>

java.lang.Object
xyz.gmitch215.socketmc.screen.builder.WidgetBuilder<B,T>
xyz.gmitch215.socketmc.screen.builder.WidgetWithTextBuilder<B,T>
Type Parameters:
B - This builder type.
T - The type of widget to build.
Direct Known Subclasses:
FocusedTextWidgetBuilder, TextButtonBuilder, TextWidgetBuilder

public abstract class WidgetWithTextBuilder<B extends WidgetBuilder<B,T>,T extends AbstractWidget> extends WidgetBuilder<B,T>
Represents a builder for creating a widget with a text element (AbstractTextWidget).
  • Method Details

    • messageJSON

      @NotNull public B messageJSON(@NotNull @NotNull String messageJSON)
      Sets the message of the widget.
      Parameters:
      messageJSON - The message in JSON format.
      Returns:
      this class, for chaining
    • message

      @NotNull public B message(@NotNull @NotNull String message)
      Sets the message of the widget.
      Parameters:
      message - The message.
      Returns:
      this class, for chaining
    • message

      @NotNull public B message(@NotNull @NotNull Text message)
      Sets the message of the widget.
      Parameters:
      message - The message.
      Returns:
      this class, for chaining