Interface DialogPayload
- All Known Implementing Classes:
PaperDialogPayload,PEDialogPayload,SpigotDialogPayload
public interface DialogPayload
The payload which is sent back to the server when the player run a custom action in the dialog
-
Method Summary
Modifier and TypeMethodDescription@Nullable BooleanbooleanValue(String key) Get the boolean value from the payloadmap()Get the map of all values in the payload@Nullable NumbernumberValue(String key) Get the number value from the payloadowner()Get the owner of the payload@Nullable StringGet the text value from the payload
-
Method Details
-
owner
UUID owner()Get the owner of the payload- Returns:
- the id of the owner
-
textValue
Get the text value from the payload- Parameters:
key- the key to search for- Returns:
- the text, or null if the key doesn't exist in the payload
-
booleanValue
Get the boolean value from the payload- Parameters:
key- the key to search for- Returns:
- the boolean, or null if the key doesn't exist in the payload
-
numberValue
Get the number value from the payload- Parameters:
key- the key to search for- Returns:
- the number, or null if the key doesn't exist in the payload or the value is not a number
-
map
Get the map of all values in the payload- Returns:
- the map
-