getInput

public void getInput(Player player, Component prompt, Consumer<String> callback, String key, Component title, String defaultValue)

"The util means, the dialog/chat thingy, not to be confused"

Parameters

player

The player to open the util to

prompt

The prompt to give the player

callback

Callback is the piece of code to be executed

key

(Dialog Only) The key, the buttons/dialog should have

title

(Dialog Only) The title in the dialog

defaultValue

(Dialog Only) The value the text prompt should have, useful for editing already defined configs.


public void getInput(Player player, Component prompt, Consumer<String> callback, String key, Component title)

"The util means, the dialog/chat thingy, not to be confused"

Parameters

player

The player to open the util to

prompt

The prompt to give the player

callback

Callback is the piece of code to be executed

key

(Dialog Only) The key, the buttons/dialog should have

title

(Dialog Only) The title in the dialog