TextComponent

public final class TextComponent

Utility class for building simple text components. Most dialog fields require text components rather than plain strings. This class provides convenient factory methods for constructing common text structures.

Functions

Link copied to clipboard
public static JsonElement of(String text)
Creates a plain text component with the given string.