title

public T title(JsonElement title)

Sets the title of the dialog. The title is always visible and uses the text component format:contentReference[oaicite:1]{index=1}.

Return

this builder

Parameters

title

text component for the title


public T title(String text)

Convenience overload for plain string titles. The provided string will be wrapped in a simple text component.

Return

this builder

Parameters

text

plain text title