Package net.uku3lig.ukulib.config.option
Class TextOption
java.lang.Object
net.uku3lig.ukulib.config.option.TextOption
- All Implemented Interfaces:
WidgetCreator
An option to display text.
-
Constructor Summary
ConstructorsConstructorDescriptionTextOption(String key) Constructor.TextOption(String key, boolean drawLine) Constructor.TextOption(String key, boolean drawLine, int padding) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.client.gui.widget.ClickableWidgetcreateWidget(int x, int y, int width, int height) Creates the widget.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.uku3lig.ukulib.config.option.WidgetCreator
wide
-
Constructor Details
-
TextOption
Constructor.- Parameters:
key- the translation key for the textdrawLine- whether to draw a line on each side of the textpadding- the padding between the text and the line
-
TextOption
Constructor. Equivalent toTextOption(key, drawLine, 5).- Parameters:
key- the translation key for the textdrawLine- whether to draw a line on each side of the text
-
TextOption
Constructor. Equivalent toTextOption(key, false, 5).- Parameters:
key- the translation key for the text
-
-
Method Details
-
createWidget
public net.minecraft.client.gui.widget.ClickableWidget createWidget(int x, int y, int width, int height) Description copied from interface:WidgetCreatorCreates the widget.- Specified by:
createWidgetin interfaceWidgetCreator- Parameters:
x- The x positiony- The y positionwidth- The widget widthheight- The widget height- Returns:
- The created widget
-