getInput
public void getInput(Component title, Player player, String key, Component content, String defaultValue, Consumer<String> callback)
Opens a text input dialog for a player and calls callback with the result when the player confirms, or with null if they discard.
Parameters
title
The title of the dialog
player
The player to open the dialog to
key
The key of the text input, used to retrieve the value
content
The label shown next to the text field
callback
Called with the player's input, or null on discard