Package io.papermc.paper.dialog
Interface DialogResponseView
A view for a possible response to a dialog.
There are no guarantees that this is an actual response to a
dialog form. It is on the plugin to validate that the response
is valid.
-
Method Summary
Modifier and TypeMethodDescriptiongetBoolean
(String key) Gets a boolean value at a key.Gets a float value at a key.Gets a text value at a key.payload()
Gets the raw payload of the response.
-
Method Details
-
payload
Gets the raw payload of the response.- Returns:
- the raw payload
-
getText
Gets a text value at a key.- Parameters:
key
- the key- Returns:
- the value (or null if it doesn't exist)
-
getBoolean
Gets a boolean value at a key.- Parameters:
key
- the key- Returns:
- the value (or null if it doesn't exist)
-
getFloat
Gets a float value at a key.- Parameters:
key
- the key- Returns:
- the value (or null if it doesn't exist)
-