Class FocusedTextWidgetBuilder
java.lang.Object
xyz.gmitch215.socketmc.screen.builder.WidgetBuilder<FocusedTextWidgetBuilder,FocusedTextWidget>
xyz.gmitch215.socketmc.screen.builder.WidgetWithTextBuilder<FocusedTextWidgetBuilder,FocusedTextWidget>
xyz.gmitch215.socketmc.screen.builder.FocusedTextWidgetBuilder
public final class FocusedTextWidgetBuilder
extends WidgetWithTextBuilder<FocusedTextWidgetBuilder,FocusedTextWidget>
Represents a builder for a
FocusedTextWidget
.-
Method Summary
Modifier and TypeMethodDescriptionalwaysShowBorder
(boolean alwaysShowBorder) Sets whether to always show the border.build()
Builds the widget.static @NotNull FocusedTextWidgetBuilder
builder()
Creates a new FocusedTextWidgetBuilder.padding
(int padding) Sets the padding around the text.Methods inherited from class xyz.gmitch215.socketmc.screen.builder.WidgetWithTextBuilder
message, message, messageJSON
-
Method Details
-
alwaysShowBorder
Sets whether to always show the border.- Parameters:
alwaysShowBorder
- Whether to always show the border.- Returns:
- this class, for chaining
-
padding
Sets the padding around the text.- Parameters:
padding
- The padding around the text.- Returns:
- this class, for chaining
-
build
Description copied from class:WidgetBuilder
Builds the widget.- Specified by:
build
in classWidgetBuilder<FocusedTextWidgetBuilder,
FocusedTextWidget> - Returns:
- The built widget.
-
builder
Creates a new FocusedTextWidgetBuilder.- Returns:
FocusedTextWidget
Builder
-