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 Details

    • owner

      UUID owner()
      Get the owner of the payload
      Returns:
      the id of the owner
    • textValue

      @Nullable @Nullable String textValue(String key)
      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

      @Nullable @Nullable Boolean booleanValue(String key)
      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

      @Nullable @Nullable Number numberValue(String key)
      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

      Map<String,String> map()
      Get the map of all values in the payload
      Returns:
      the map