Paragraph
Extends Label and implements ScrollableElement.
The paragraph is a scrollable multiline version of the label.
When the paragraph overflows, the right padding will change to the scroller width + the overflow padding, if it is greater.
Builders:
builder: The default builder.
Builder methods:
scrollerWidth: The scroller width.- getter / setter
overflowPadding: The overflow padding.- getter / setter
fitContentHeight: Makes the paragraph fit to its content’s height.- getter / setter
Example
Paragraph.builder() .text(Text.literal("Sushi is very yummy, but its expensive too.")) .fitToContentHeight() .build();