Package net.uku3lig.ukulib.config.option
Interface WidgetCreator
- All Known Implementing Classes:
ColorOption,CyclingOption,InputOption,IntSliderOption,ScreenOpenButton,SimpleButton,SliderOption,TextOption,TypedInputOption,WideWidgetCreator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
An interface used to create clickable widgets
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.client.gui.widget.ClickableWidgetcreateWidget(int x, int y, int width, int height) Creates the widget.default WideWidgetCreatorwide()Makes a widget wide.
-
Method Details
-
createWidget
net.minecraft.client.gui.widget.ClickableWidget createWidget(int x, int y, int width, int height) Creates the widget.- Parameters:
x- The x positiony- The y positionwidth- The widget widthheight- The widget height- Returns:
- The created widget
-
wide
Makes a widget wide.- Returns:
- The wide widget
-