GuiTextureTitleBuilder

sealed interface GuiTextureTitleBuilder

A builder for the title of a GuiTexture, consisting of static and dynamic lines. Static lines are defined during registration, while the contents of dynamic lines are supplied to GuiTexture.getTitle in declaration order.

Functions

Link copied to clipboard
abstract fun dynamicLine(alignment: GuiTexture.TitlePosition.Alignment = Alignment.DEFAULT, offset: Vector2ic = Vector2i(0, 0), fonts: Set<Key> = setOf(Key.key("minecraft", "default")))

Adds a dynamic title line whose contents are supplied to GuiTexture.getTitle.

Link copied to clipboard
abstract fun staticLine(text: Component, alignment: GuiTexture.TitlePosition.Alignment = Alignment.DEFAULT, offset: Vector2ic = Vector2i(0, 0))

Adds a static title line whose text is defined during registration.