of

public static DialogManager.TextInput of(String key, JsonElement label)

Creates a new text input with the specified key and label. The key identifies the input in template substitutions and NBT output :contentReference[oaicite:36]{index=36}.

Return

new text input

Parameters

key

unique key for the input

label

text component displayed to the left of the input


public static DialogManager.TextInput of(String key, String label)

Convenience overload for plain string labels.

Return

new text input

Parameters

key

unique key

label

plain text label