lazyMessage

fun lazyMessage(key: String, vararg params: Component): Supplier<@NotNull TranslatableComponent>

Retrieves a lazily-evaluated message supplier as a TranslatableComponent.

Return

A Supplier that provides the message as a translatable TranslatableComponent.

Parameters

key

The key of the message in the resource bundle.

params

Optional parameters to format the message.