Supplied Text Widget
A CustomTextWidget that renders text from a supplier of text, not a static text instance
Author
fzzyhmstrs
Since
0.3.1, removed align:direction: methods and now implements TooltipChild in 0.6.0, uses java.util.Supplier instead of googles in 0.6.8 and deprecates constructors with google Supplier. Google supplier constructors removed 0.7.0.
Parameters
Supplier<Text> - supplies text to this widget
TextRenderer - textRenderer instance
Int - width of the widget in pixels
Int - height of the widget in pixels
Functions
Aligns the widget text to the alignment fraction provided
Handles char input events for custom widgets. Override this for handling keyboard inputs.
Handles keyboard events for custom widgets. Override this for handling keyboard inputs.
Handles keyboard release events for custom widgets. Override this for handling keyboard inputs.
Handles mouse click events for custom widgets. Override this or onPress for handling mouse inputs.
Handles mouse drag events for custom widgets. Override this for handling drag inputs
Handles mouse button release events for custom widgets. Override this for handling mouse inputs.
Handles mouse scroll events for custom widgets. Override this for handling mouse inputs.
Provides a list of text for appending into a Narration Hint. By default this will use the same lines passed from provideTooltipLines, with predefined values for the inputs
supplies a text for tooltips if the text overflows the width of the widget.