Skip to content

Label

Extends TextElement.

The label draws text to the screen.

Builder methods:

Example:

Label.builder()
.text(Text.literal("Hello world!"));
.alignLeft()
.build();