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

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

public abstract class WidgetBuilder<B extends WidgetBuilder<B,T>,T extends AbstractWidget> extends Object
Represents a builder for creating an AbstractWidget type.
  • Method Summary

    Modifier and Type
    Method
    Description
    bounds(int x, int y, int width, int height)
    Sets the bounds of the widget.
    Sets the bounds of the widget.
    abstract T
    Builds the widget.
    height(int height)
    Sets the height of the widget.
    pos(int x, int y)
    Sets the position of the widget.
    size(int width, int height)
    Sets the size of the widget.
    width(int width)
    Sets the width of the widget.
    x(int x)
    Sets the x position of the widget.
    y(int y)
    Sets the y position of the widget.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait